runtests: log the required minimum number of tests in CI

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 3f1cd809ee #19942

Closes #19987
This commit is contained in:
Viktor Szakats 2025-12-15 23:26:34 +01:00
parent 5431b3dd6b
commit 74a2828279
No known key found for this signature in database
GPG Key ID: B5ABD165E2AEF201

View File

@ -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";