public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Kamil Dudka <kdudka@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/curl] curl-v8.23.0-3: attempt to improve test suite coverage
Date: Tue, 03 Nov 2026 12:33:39 GMT [thread overview]
Message-ID: <179370921955.1.16116545914752007366.rpms-curl-caf63a251a13@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/curl
Branch : curl-v8.23.0-3
Commit : caf63a251a1390afbe3730e26a1c28b686f5e219
Author : Kamil Dudka <kdudka@fedoraproject.org>
Date : 2009-12-05T19:48:31+00:00
Stats : +68/-19 in 3 file(s)
URL : https://src.fedoraproject.org/rpms/curl/c/caf63a251a1390afbe3730e26a1c28b686f5e219?branch=curl-v8.23.0-3
Log:
attempt to improve test suite coverage
---
diff --git a/curl-7.19.7-localhost6.patch b/curl-7.19.7-localhost6.patch
new file mode 100644
index 0000000..4f664d3
--- /dev/null
+++ b/curl-7.19.7-localhost6.patch
@@ -0,0 +1,51 @@
+diff --git a/tests/data/test1083 b/tests/data/test1083
+index e441278..b0958b6 100644
+--- a/tests/data/test1083
++++ b/tests/data/test1083
+@@ -33,13 +33,13 @@ ipv6
+ http-ipv6
+ </server>
+ <name>
+-HTTP-IPv6 GET with ip6-localhost --interface
++HTTP-IPv6 GET with localhost6 --interface
+ </name>
+ <command>
+--g "http://%HOST6IP:%HTTP6PORT/1083" --interface ip6-localhost
++-g "http://%HOST6IP:%HTTP6PORT/1083" --interface localhost6
+ </command>
+ <precheck>
+-perl -e "if ('%CLIENT6IP' ne '[::1]') {print 'Test requires default test server host address';} else {exec './server/resolve --ipv6 ip6-localhost'; print 'Cannot run precheck resolve';}"
++perl -e "if ('%CLIENT6IP' ne '[::1]') {print 'Test requires default test server host address';} else {exec './server/resolve --ipv6 localhost6'; print 'Cannot run precheck resolve';}"
+ </precheck>
+ </client>
+
+diff --git a/tests/data/test241 b/tests/data/test241
+index 46eae1f..4e1632c 100644
+--- a/tests/data/test241
++++ b/tests/data/test241
+@@ -30,13 +30,13 @@ ipv6
+ http-ipv6
+ </server>
+ <name>
+-HTTP-IPv6 GET (using ip6-localhost)
++HTTP-IPv6 GET (using localhost6)
+ </name>
+ <command>
+--g "http://ip6-localhost:%HTTP6PORT/241"
++-g "http://localhost6:%HTTP6PORT/241"
+ </command>
+ <precheck>
+-./server/resolve --ipv6 ip6-localhost
++./server/resolve --ipv6 localhost6
+ </precheck>
+ </client>
+
+@@ -48,7 +48,7 @@ HTTP-IPv6 GET (using ip6-localhost)
+ </strip>
+ <protocol>
+ GET /241 HTTP/1.1
+-Host: ip6-localhost:%HTTP6PORT
++Host: localhost6:%HTTP6PORT
+ Accept: */*
+
+ </protocol>
diff --git a/curl-7.19.7-s390-sleep.patch b/curl-7.19.7-s390-sleep.patch
index 3ddd320..684402f 100644
--- a/curl-7.19.7-s390-sleep.patch
+++ b/curl-7.19.7-s390-sleep.patch
@@ -1,20 +1,13 @@
-diff --git a/tests/libtest/lib513.c b/tests/libtest/lib513.c
-index b06a3c6..bf14650 100644
---- a/tests/libtest/lib513.c
-+++ b/tests/libtest/lib513.c
-@@ -12,12 +12,15 @@
+diff --git a/tests/runtests.pl b/tests/runtests.pl
+index a6597b9..c900ad8 100755
+--- a/tests/runtests.pl
++++ b/tests/runtests.pl
+@@ -209,7 +209,7 @@ my $sshdverstr; # for socks server, ssh daemon version string
+ my $sshderror; # for socks server, ssh daemon version error
- #include "memdebug.h"
+ my $defserverlogslocktimeout = 20; # timeout to await server logs lock removal
+-my $defpostcommanddelay = 0; # delay between command and postcheck sections
++my $defpostcommanddelay = 1; # delay between command and postcheck sections
-+#include <unistd.h>
-+
- static size_t read_callback(void *ptr, size_t size, size_t nmemb, void *userp)
- {
- (void)ptr;
- (void)size;
- (void)nmemb;
- (void)userp;
-+ sleep(2);
- return CURL_READFUNC_ABORT;
- }
+ my $testnumcheck; # test number, set in singletest sub.
diff --git a/curl.spec b/curl.spec
index 7d09ff7..1bf69ba 100644
--- a/curl.spec
+++ b/curl.spec
@@ -14,6 +14,7 @@ Patch101: curl-7.15.3-multilib.patch
Patch102: curl-7.16.0-privlibs.patch
Patch103: curl-7.19.4-debug.patch
Patch104: curl-7.19.7-s390-sleep.patch
+Patch105: curl-7.19.7-localhost6.patch
Provides: webclient
URL: http://curl.haxx.se/
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -96,6 +97,9 @@ use cURL's capabilities internally.
# http://curl.haxx.se/mail/lib-2009-12/0031.html
%patch104 -p1
+# we have localhost6 instead of ip6-localhost as name for ::1
+%patch105 -p1
+
autoconf
# Convert docs to UTF-8
@@ -120,8 +124,9 @@ make %{?_smp_mflags}
%check
export LD_LIBRARY_PATH=$RPM_BUILD_ROOT%{_libdir}
-make %{?_smp_mflags} -C tests
-cd tests && ./runtests.pl -a -k -p -v
+cd tests
+make %{?_smp_mflags}
+./runtests.pl -a -p -v
%install
rm -rf $RPM_BUILD_ROOT
reply other threads:[~2026-11-03 12:33 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179370921955.1.16116545914752007366.rpms-curl-caf63a251a13@fedoraproject.org \
--to=kdudka@fedoraproject.org \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox