]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
test1140/1173: extend wildcards to find curl.1
authorDaniel Stenberg <daniel@haxx.se>
Thu, 7 Mar 2024 21:30:50 +0000 (22:30 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 8 Mar 2024 07:48:30 +0000 (08:48 +0100)
... in its new build path.

Also update the test scripts to be more precise in error messages to
help us understand CI errors better.

Follow-up to f03c85635f35269f1
Ref: #13029
Closes #13083

tests/data/test1140
tests/data/test1173
tests/test1140.pl
tests/test1173.pl

index aec680ce5bcf2998a0ee88916165dffbf0bb6e43..2e4d8daf2f73138e3efa2bf6b7a9f5cf13ef63b3 100644 (file)
@@ -19,7 +19,7 @@ Verify the nroff of manpages
 </name>
 
 <command type="perl">
-%SRCDIR/test1140.pl %PWD/../docs/ %PWD/../docs/libcurl/*.3 %PWD/../docs/libcurl/opts/*.3 %PWD/../docs/*.1
+%SRCDIR/test1140.pl %PWD/../docs/ %PWD/../docs/libcurl/*.3 %PWD/../docs/libcurl/opts/*.3 %PWD/../docs/*.1 %PWD/../docs/cmdline-opts/*.1
 </command>
 </client>
 
index 97d338df309eebe17c598845ccc45074ebf7c80f..ff786c44bd43c4e2261d6750eabc378ed80f5578 100644 (file)
@@ -19,7 +19,7 @@ Man page syntax checks
 </name>
 
 <command type="perl">
-%SRCDIR/test1173.pl %SRCDIR/../docs/libcurl/symbols-in-versions %PWD/../docs/*.1  %PWD/../docs/libcurl/*.3 %PWD/../docs/libcurl/opts/*.3
+%SRCDIR/test1173.pl %SRCDIR/../docs/libcurl/symbols-in-versions %PWD/../docs/*.1  %PWD/../docs/cmdline-opts/*.1 %PWD/../docs/libcurl/*.3 %PWD/../docs/libcurl/opts/*.3
 </command>
 </client>
 
index 6ad346ea6714883cde7f986344eb451ac8a84480..8e1f12298585f78db44963625e52b3385b694383 100755 (executable)
@@ -57,7 +57,7 @@ sub manpresent {
 sub file {
     my ($f) = @_;
     open(my $fh, "<", "$f") ||
-        die "no file";
+        die "test1140.pl could not open $f";
     my $line = 1;
     while(<$fh>) {
         chomp;
index 7457c7d44cb8d2caefe2d8e429010350823fce45..bf03c98cd83d6a415ca7c18b00f812ce344fcd21 100755 (executable)
@@ -132,7 +132,8 @@ sub scanmanpage {
     my @separators;
     my @sepline;
 
-    open(my $m, "<", "$file") || die "no such file: $file";
+    open(my $m, "<", "$file") ||
+        die "test1173.pl could not open $file";
     if($file =~ /[\/\\](CURL|curl_)[^\/\\]*.3/) {
         # This is a man page for libcurl. It requires an example!
         $reqex = 1;