mirror of
https://github.com/curl/curl.git
synced 2026-08-25 12:33:35 +03:00
tests: add and use %PERL variable to refer to the Perl binary
To ensure Perl invocations within tests call the same Perl binary used for running the tests, as specified or auto-detected via `PERL` env (autotools) or `PERL_EXECUTABLE` setting (cmake). Instead of the first `perl` executable found in `PATH`.) Cherry-picked from #14949 Closes #15097
This commit is contained in:
parent
f6cb707b6a
commit
31a29fc6bd
30 changed files with 44 additions and 41 deletions
|
|
@ -32,7 +32,7 @@ Multipart formposting with backslash-escaping filename containing '"'
|
|||
http://%HOSTIP:%HTTPPORT/we/want/%TESTNUMBER --form-escape -F "file=@\"%LOGDIR/test%TESTNUMBER\\\".txt\";type=mo/foo;filename=\"test%TESTNUMBER\\\".txt\"" -F 'file2=@"%LOGDIR/test%TESTNUMBER\".txt"' -F 'file3=@"%LOGDIR/test%TESTNUMBER\".txt";type=m/f,"%LOGDIR/test%TESTNUMBER\".txt"'
|
||||
</command>
|
||||
<precheck>
|
||||
perl -e "print 'Test requires a system supporting double quotes in file names' if ($^O eq 'msys');"
|
||||
%PERL -e "print 'Test requires a system supporting double quotes in file names' if ($^O eq 'msys');"
|
||||
</precheck>
|
||||
# We create this file before the command is invoked!
|
||||
<file name=%LOGDIR/test%TESTNUMBER".txt>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue