!25 enable test

From: @chengyechun 
Reviewed-by: @zengwefeng 
Signed-off-by: @zengwefeng
This commit is contained in:
openeuler-ci-bot 2022-02-24 09:38:15 +00:00 committed by Gitee
commit 7171e6c30f
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 42 additions and 2 deletions

View File

@ -0,0 +1,26 @@
Conflict:NA
Reference:https://build.opensuse.org/package/view_file/openSUSE:Factory/c-ares/disable-live-tests.patch?expand=1
From 5b3d9a337dbf0cf990ebc5639c950e092de86539 Mon Sep 17 00:00:00 2001
From: chengyechun <chengyechun1@huawei.com>
Date: Tue, 8 Feb 2022 19:57:57 +0800
Subject: [PATCH] disable live test
---
test/Makefile.inc | 1 -
1 file changed, 1 deletion(-)
diff --git a/test/Makefile.inc b/test/Makefile.inc
index 820afdb..c625a68 100644
--- a/test/Makefile.inc
+++ b/test/Makefile.inc
@@ -16,7 +16,6 @@ TESTSOURCES = ares-test-main.cc \
ares-test-parse-txt.cc \
ares-test-parse-uri.cc \
ares-test-misc.cc \
- ares-test-live.cc \
ares-test-mock.cc \
ares-test-mock-ai.cc \
ares-test-internal.cc \
--
1.8.3.1

View File

@ -1,15 +1,16 @@
Name: c-ares Name: c-ares
Version: 1.18.1 Version: 1.18.1
Release: 1 Release: 2
Summary: A C library for asynchronous DNS requests Summary: A C library for asynchronous DNS requests
License: MIT License: MIT
URL: https://github.com/c-ares/c-ares URL: https://github.com/c-ares/c-ares
Source0: https://github.com/c-ares/c-ares/releases/download/cares-1_18_1/%{name}-%{version}.tar.gz Source0: https://github.com/c-ares/c-ares/releases/download/cares-1_18_1/%{name}-%{version}.tar.gz
BuildRequires: gcc autoconf automake libtool BuildRequires: gcc autoconf automake libtool g++
# Patch0 from Redhat is applied for stopping overriding AC_CONFIG_MACRO_DIR # Patch0 from Redhat is applied for stopping overriding AC_CONFIG_MACRO_DIR
Patch0: 0000-Use-RPM-compiler-options.patch Patch0: 0000-Use-RPM-compiler-options.patch
Patch1: backport-disable-live-tests.patch
%description %description
This is c-ares, an asynchronous resolver library. It is intended for applications This is c-ares, an asynchronous resolver library. It is intended for applications
@ -38,6 +39,13 @@ make %{?_smp_mflags}
%delete_la %delete_la
%ldconfig_scriptlets %ldconfig_scriptlets
%check
cd test
./configure
cd ../
%make_build -C test
./test/arestest
%files %files
%doc CHANGES LICENSE.md %doc CHANGES LICENSE.md
%{_libdir}/*.so.* %{_libdir}/*.so.*
@ -52,6 +60,12 @@ make %{?_smp_mflags}
%{_mandir}/man3/* %{_mandir}/man3/*
%changelog %changelog
* Wed Feb 9 2022 chengyechun <chengyechun1@huawei.com> - 1.18.1-2
- Type:bugfix
- Id:NA
- SUG:NA
- DESC:enable test and disable live tests
* Wed Jan 12 2022 gaihuiying <gaihuiying1@huawei.com> - 1.18.1-1 * Wed Jan 12 2022 gaihuiying <gaihuiying1@huawei.com> - 1.18.1-1
- Type:requirement - Type:requirement
- Id:NA - Id:NA