!33 [sync] PR-32: enable test

From: @openeuler-sync-bot 
Reviewed-by: @seuzw 
Signed-off-by: @seuzw
This commit is contained in:
openeuler-ci-bot 2022-06-15 09:22:19 +00:00 committed by Gitee
commit ceeb933cb7
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 40 additions and 3 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
Version: 1.18.1
Release: 2
Release: 3
Summary: A C library for asynchronous DNS requests
License: MIT
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
BuildRequires: gcc autoconf automake libtool
BuildRequires: gcc autoconf automake libtool g++
# 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
This is c-ares, an asynchronous resolver library. It is intended for applications
@ -38,6 +39,10 @@ make %{?_smp_mflags}
%delete_la
%ldconfig_scriptlets
%check
%make_build -C test
./test/arestest
%files
%doc CHANGES LICENSE.md
%{_libdir}/*.so.*
@ -53,6 +58,12 @@ make %{?_smp_mflags}
%{_mandir}/man3/*
%changelog
* Thu Jun 09 2022 gaihuiying <eaglegai@163.com> - 1.18.1-3
- Type:bugfix
- Id:NA
- SUG:NA
- DESC:enable test
* Mon Apr 18 2022 quanhongfei <quanhongfei@h-partners.com> - 1.18.1-2
- Type:bugfix
- Id:NA