]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
runtests: log the required minimum number of tests in CI master
authorViktor Szakats <commit@vsz.me>
Mon, 15 Dec 2025 22:26:34 +0000 (23:26 +0100)
committerViktor Szakats <commit@vsz.me>
Tue, 16 Dec 2025 12:43:31 +0000 (13:43 +0100)
For Test Clutch.

If set (via env or tflags), include the minimum number of tests required
in runtests' log output:
```
* Min tests: 1750
```

Follow-up to 3f1cd809eeae05f39fec72fe780f3a69d21972fb #19942

Closes #19987

tests/runtests.pl

index babec70858fd7a72b66ca47b088db67df7abca99..24fd3516dc467ba70fcd8ab42242db9a205239b7 100755 (executable)
@@ -885,6 +885,9 @@ sub checksystemfeatures {
     if(system("diff $TESTDIR/DISABLED $TESTDIR/DISABLED 2>$dev_null") != 0) {
         logmsg "* diff: missing\n";
     }
+    if($mintotal) {
+        logmsg "* Min tests: $mintotal\n";
+    }
 }
 
 #######################################################################
@@ -2711,6 +2714,10 @@ if(!$jobs) {
     setlogfunc(\&logmsg);
 }
 
+if(!$mintotal && $ENV{"CURL_TEST_MIN"}) {
+    $mintotal = $ENV{"CURL_TEST_MIN"};
+}
+
 #######################################################################
 # Output curl version and host info being tested
 #
@@ -3332,9 +3339,6 @@ else {
     }
 }
 
-if(!$mintotal && $ENV{"CURL_TEST_MIN"}) {
-    $mintotal = $ENV{"CURL_TEST_MIN"};
-}
 if($mintotal) {
     if($total < $mintotal) {
         logmsg "TESTFAIL: number of tests run was below the minimum of: $mintotal\n";