mirror of
https://github.com/curl/curl.git
synced 2026-08-25 17:03:31 +03:00
libtests: make test 1503,1504,1505 use the 1502 binary
Adjust the differences at runtime instead of build-time, to avoid extra buillds. Set the `CURL_TESTNUM` env variable to pass test numbers to tests. Make libtest/first.c use that env variable to set the `testnum` global variable to allow tests to differ based on which test that runs it. Closes #17591
This commit is contained in:
parent
aea336aa23
commit
02dd471bbf
8 changed files with 46 additions and 49 deletions
|
|
@ -756,6 +756,9 @@ sub singletest_prepare {
|
|||
# write the instructions to file
|
||||
writearray("$LOGDIR/$SERVERCMD", \@ftpservercmd);
|
||||
|
||||
# provide an environment variable
|
||||
$ENV{'CURL_TESTNUM'} = $testnum;
|
||||
|
||||
# create (possibly-empty) files before starting the test
|
||||
for my $partsuffix (('', '1', '2', '3', '4')) {
|
||||
my @inputfile=getpart("client", "file".$partsuffix);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue