From: Daniel Stenberg Date: Mon, 8 Jul 2024 21:33:10 +0000 (+0200) Subject: test1139: scan .md files instead of .3 ones X-Git-Tag: curl-8_9_0~84 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3f8066bf7c06003b54bdf92254ed015e2cf5b538;p=thirdparty%2Fcurl.git test1139: scan .md files instead of .3 ones As they are the canonical sources. It still uses the curl.1 for command line option info. Closes #14132 --- diff --git a/tests/test1139.pl b/tests/test1139.pl index 2c56c3a726..42c286e916 100755 --- a/tests/test1139.pl +++ b/tests/test1139.pl @@ -64,14 +64,14 @@ my %alias = ( 'CURLINFO_TEXT' => 'none' ); -sub scanmanpage { +sub scanmdpage { my ($file, @words) = @_; open(my $mh, "<", "$file") || die "could not open $file"; my @m; while(<$mh>) { - if($_ =~ /^\.IP (.*)/) { + if($_ =~ /^## (.*)/) { my $w = $1; # "unquote" minuses $w =~ s/\\-/-/g; @@ -129,8 +129,8 @@ while(<$r>) { elsif($type eq "MOPT") { push @curlmopt, $opt, } - if(! -f "$buildroot/docs/libcurl/opts/$opt.3") { - print STDERR "Missing $opt.3\n"; + if(! -f "$root/docs/libcurl/opts/$opt.md") { + print STDERR "Missing $opt.md\n"; $errors++; } } @@ -138,9 +138,9 @@ while(<$r>) { } close($r); -scanmanpage("$buildroot/docs/libcurl/curl_easy_setopt.3", @curlopt); -scanmanpage("$buildroot/docs/libcurl/curl_easy_getinfo.3", @curlinfo); -scanmanpage("$buildroot/docs/libcurl/curl_multi_setopt.3", @curlmopt); +scanmdpage("$root/docs/libcurl/curl_easy_setopt.md", @curlopt); +scanmdpage("$root/docs/libcurl/curl_easy_getinfo.md", @curlinfo); +scanmdpage("$root/docs/libcurl/curl_multi_setopt.md", @curlmopt); # using this hash array, we can skip specific options my %opts = (