tests: rename tests scripts to the test number

It is hard to name the scripts sensibly. Lots of them are similarly
named and the name did not tell which test that used them.

The new approach is rather to name them based on the test number that
runs them. Also helps us see which scripts are for individual tests
rather than for general test infra.

 - badsymbols.pl -> test1167.pl
 - check-deprecated.pl -> test1222.pl
 - check-translatable-options.pl -> test1544.pl
 - disable-scan.pl -> test1165.pl
 - error-codes.pl -> test1175.pl
 - errorcodes.pl -> test1477.pl
 - extern-scan.pl -> test1135.pl
 - manpage-scan.pl -> test1139.pl
 - manpage-syntax.pl -> test1173.pl
 - markdown-uppercase.pl -> test1275.pl
 - mem-include-scan.pl -> test1132.pl
 - nroff-scan.pl -> test1140.pl
 - option-check.pl -> test1276.pl
 - options-scan.pl -> test971.pl
 - symbol-scan.pl -> test1119.pl
 - version-scan.pl -> test1177.pl

Closes #12487
This commit is contained in:
Daniel Stenberg 2023-12-08 09:34:05 +01:00
parent 13a1d1ace8
commit c386065878
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2
34 changed files with 44 additions and 30 deletions

View File

@ -22,21 +22,35 @@
#
###########################################################################
HTMLPAGES = testcurl.html runtests.html
PDFPAGES = testcurl.pdf runtests.pdf
MANDISTPAGES = runtests.1.dist testcurl.1.dist
EXTRA_DIST = appveyor.pm azure.pm badsymbols.pl check-deprecated.pl \
CMakeLists.txt devtest.pl dictserver.py directories.pm disable-scan.pl \
error-codes.pl extern-scan.pl FILEFORMAT.md processhelp.pm ftpserver.pl \
getpart.pm globalconfig.pm http-server.pl http2-server.pl http3-server.pl \
manpage-scan.pl manpage-syntax.pl markdown-uppercase.pl mem-include-scan.pl \
memanalyze.pl negtelnetserver.py nroff-scan.pl option-check.pl \
options-scan.pl pathhelp.pm README.md rtspserver.pl runner.pm runtests.1 \
runtests.pl secureserver.pl serverhelp.pm servers.pm smbserver.py sshhelp.pm \
sshserver.pl stunnel.pem symbol-scan.pl testcurl.1 testcurl.pl testutil.pm \
tftpserver.pl util.py valgrind.pm valgrind.supp version-scan.pl \
check-translatable-options.pl errorcodes.pl
# scripts used in test cases
TESTSCRIPTS = \
test1119.pl \
test1132.pl \
test1135.pl \
test1139.pl \
test1140.pl \
test1165.pl \
test1167.pl \
test1173.pl \
test1175.pl \
test1177.pl \
test1222.pl \
test1275.pl \
test1276.pl \
test1477.pl \
test1544.pl \
test971.pl
EXTRA_DIST = appveyor.pm azure.pm CMakeLists.txt devtest.pl \
dictserver.py directories.pm FILEFORMAT.md processhelp.pm ftpserver.pl \
getpart.pm globalconfig.pm http-server.pl http2-server.pl \
http3-server.pl memanalyze.pl negtelnetserver.py pathhelp.pm README.md \
rtspserver.pl runner.pm runtests.1 runtests.pl secureserver.pl \
serverhelp.pm servers.pm smbserver.py sshhelp.pm sshserver.pl \
stunnel.pem testcurl.1 testcurl.pl testutil.pm tftpserver.pl util.py \
valgrind.pm valgrind.supp $(TESTSCRIPTS)
DISTCLEANFILES = configurehelp.pm

View File

@ -18,7 +18,7 @@ Verify that symbols-in-versions and headers are in sync
</name>
<command type="perl">
%SRCDIR/symbol-scan.pl %SRCDIR/.. ../include/curl
%SRCDIR/test1119.pl %SRCDIR/.. ../include/curl
</command>
</client>

View File

@ -18,7 +18,7 @@ Verify memory #include files in libcurl's C source files
</name>
<command type="perl">
%SRCDIR/mem-include-scan.pl %SRCDIR/../lib
%SRCDIR/test1132.pl %SRCDIR/../lib
</command>
</client>

View File

@ -22,7 +22,7 @@ Verify CURL_EXTERN order
</name>
<command type="perl">
%SRCDIR/extern-scan.pl %SRCDIR/..
%SRCDIR/test1135.pl %SRCDIR/..
</command>
</client>

View File

@ -20,7 +20,7 @@ Verify that all libcurl options have man pages
</name>
<command type="perl">
%SRCDIR/manpage-scan.pl %SRCDIR/.. %PWD/..
%SRCDIR/test1139.pl %SRCDIR/.. %PWD/..
</command>
</client>

View File

@ -19,7 +19,7 @@ Verify the nroff of man pages
</name>
<command type="perl">
%SRCDIR/nroff-scan.pl %SRCDIR/../docs/ %SRCDIR/../docs/libcurl/*.3 %SRCDIR/../docs/libcurl/opts/*.3 %SRCDIR/../docs/*.1
%SRCDIR/test1140.pl %SRCDIR/../docs/ %SRCDIR/../docs/libcurl/*.3 %SRCDIR/../docs/libcurl/opts/*.3 %SRCDIR/../docs/*.1
</command>
</client>

View File

@ -18,7 +18,7 @@ Verify configure.ac and source code CURL_DISABLE_-sync
</name>
<command type="perl">
%SRCDIR/disable-scan.pl %SRCDIR/..
%SRCDIR/test1165.pl %SRCDIR/..
</command>
</client>

View File

@ -17,7 +17,7 @@ Verify curl prefix of public symbols in header files
</name>
<command type="perl">
%SRCDIR/badsymbols.pl %SRCDIR/..
%SRCDIR/test1167.pl %SRCDIR/..
</command>
</client>

View File

@ -19,7 +19,7 @@ Man page syntax checks
</name>
<command type="perl">
%SRCDIR/manpage-syntax.pl %SRCDIR/../docs/libcurl/symbols-in-versions %SRCDIR/../docs/*.1 %SRCDIR/../docs/libcurl/*.3 %SRCDIR/../docs/libcurl/opts/*.3
%SRCDIR/test1173.pl %SRCDIR/../docs/libcurl/symbols-in-versions %SRCDIR/../docs/*.1 %SRCDIR/../docs/libcurl/*.3 %SRCDIR/../docs/libcurl/opts/*.3
</command>
</client>

View File

@ -18,7 +18,7 @@ Verify that symbols-in-versions and libcurl-errors.3 are in sync
</name>
<command type="perl">
%SRCDIR/error-codes.pl %SRCDIR
%SRCDIR/test1175.pl %SRCDIR
</command>
</client>

View File

@ -18,7 +18,7 @@ Verify that feature names and CURL_VERSION_* in lib and docs are in sync
</name>
<command type="perl">
%SRCDIR/version-scan.pl %SRCDIR/../docs/libcurl/curl_version_info.3 %SRCDIR/../include/curl/curl.h %SRCDIR/../lib/version.c
%SRCDIR/test1177.pl %SRCDIR/../docs/libcurl/curl_version_info.3 %SRCDIR/../include/curl/curl.h %SRCDIR/../lib/version.c
</command>
</client>

View File

@ -17,7 +17,7 @@ Verify deprecation statuses and versions
</name>
<command type="perl">
%SRCDIR/check-deprecated.pl %SRCDIR/..
%SRCDIR/test1222.pl %SRCDIR/..
</command>
</client>

View File

@ -18,7 +18,7 @@ Verify capital letters after period in markdown files
</name>
<command type="perl">
%SRCDIR/markdown-uppercase.pl %SRCDIR/..
%SRCDIR/test1275.pl %SRCDIR/..
</command>
</client>

View File

@ -18,7 +18,7 @@ Verify lib/optiontable.pl
</name>
<command type="perl">
%SRCDIR/option-check.pl %SRCDIR/..
%SRCDIR/test1276.pl %SRCDIR/..
</command>
</client>

View File

@ -19,7 +19,7 @@ Verify libcurl.def against CURL_EXTERN declarations
</name>
<command type="perl">
%SRCDIR/extern-scan.pl --heading=EXPORTS --sort %SRCDIR/..
%SRCDIR/test1135.pl --heading=EXPORTS --sort %SRCDIR/..
</command>
</client>

View File

@ -17,7 +17,7 @@ Verify that error codes in headers and libcurl-errors.3 are in sync
</name>
<command type="perl">
%SRCDIR/errorcodes.pl %SRCDIR/..
%SRCDIR/test1477.pl %SRCDIR/..
</command>
</client>

View File

@ -17,7 +17,7 @@ Verify all string options are translated by OS/400 wrapper
</name>
<command type="perl">
%SRCDIR/check-translatable-options.pl %SRCDIR/..
%SRCDIR/test1544.pl %SRCDIR/..
</command>
</client>

View File

@ -18,7 +18,7 @@ Verify that options-in-versions and docs/cmdline-opts are in sync
</name>
<command type="perl">
%SRCDIR/options-scan.pl %SRCDIR/../docs/options-in-versions %SRCDIR/../docs/cmdline-opts
%SRCDIR/test971.pl %SRCDIR/../docs/options-in-versions %SRCDIR/../docs/cmdline-opts
</command>
</client>