mirror of
https://github.com/curl/curl.git
synced 2026-08-24 22:13:33 +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
|
|
@ -33,7 +33,7 @@ curl --help
|
|||
# Search for these two sentinel lines in the help output; if they are found,
|
||||
# then chances are good the entire help is there.
|
||||
<postcheck>
|
||||
perl -e 'open(IN,$ARGV[0]); my $lines=grep(/(Usage: curl )|(--version\s*Show version)/, <IN>); exit ($lines != 2); # Let this file pass an XML syntax check: </IN>' %LOGDIR/stdout%TESTNUMBER
|
||||
%PERL -e 'open(IN,$ARGV[0]); my $lines=grep(/(Usage: curl )|(--version\s*Show version)/, <IN>); exit ($lines != 2); # Let this file pass an XML syntax check: </IN>' %LOGDIR/stdout%TESTNUMBER
|
||||
</postcheck>
|
||||
</verify>
|
||||
</testcase>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue