]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
tests: fixup `tests/data/Makefile.am` references
authorViktor Szakats <commit@vsz.me>
Sun, 4 Aug 2024 10:25:45 +0000 (12:25 +0200)
committerViktor Szakats <commit@vsz.me>
Sun, 4 Aug 2024 13:28:29 +0000 (15:28 +0200)
Follow-up to f5b826532f2c564ef240df0ba2f3287d521df711 #14357
Reported-by: Stefan Eissing
Fixes #14371
Closes #14372

tests/README.md
tests/runtests.pl
tests/unit/README.md

index d758d976352c826f06d61b998da6a097e8a3de8a..03744ede7d92a7b70dd7ba34fddc0a8d03cedb2d 100644 (file)
@@ -222,7 +222,7 @@ SPDX-License-Identifier: curl
   up. Subsets of tests can now be selected by passing keywords to the
   runtests.pl script via the make `TFLAGS` variable.
 
-  New tests are added by finding a free number in `tests/data/Makefile.inc`.
+  New tests are added by finding a free number in `tests/data/Makefile.am`.
 
 ## Write tests
 
index e5d8e3da04a306be4e0a1442f79212c0798196b6..fec94f337a8d827259bf43092471d5ae6bcb089c 100755 (executable)
@@ -329,8 +329,8 @@ if ($ENV{"NGHTTPX"}) {
 my $disttests = "";
 sub get_disttests {
     # If a non-default $TESTDIR is being used there may not be any
-    # Makefile.inc in which case there's nothing to do.
-    open(my $dh, "<", "$TESTDIR/Makefile.inc") or return;
+    # Makefile.am in which case there's nothing to do.
+    open(my $dh, "<", "$TESTDIR/Makefile.am") or return;
     while(<$dh>) {
         chomp $_;
         if(($_ =~ /^#/) ||($_ !~ /test/)) {
@@ -1034,7 +1034,7 @@ sub singletest_shouldrun {
     my @what;  # what features are needed
 
     if($disttests !~ /test$testnum(\W|\z)/ ) {
-        logmsg "Warning: test$testnum not present in tests/data/Makefile.inc\n";
+        logmsg "Warning: test$testnum not present in tests/data/Makefile.am\n";
     }
     if($disabled{$testnum}) {
         if(!$run_disabled) {
index f11119005085637896de9b7313541a5d0931594c..38462902dbc63d679db69bfc67b2152e285b68d3 100644 (file)
@@ -37,7 +37,7 @@ source file. The source file should be named `unitNNNN.c` where `NNNN` is a
 previously unused number.
 
 Add your test to `tests/unit/Makefile.inc` (if it is a unit test). Add your
-test data file name to `tests/data/Makefile.inc`
+test data file name to `tests/data/Makefile.am`
 
 You also need a separate file called `tests/data/testNNNN` (using the same
 number) that describes your test case. See the test1300 file for inspiration