diff options
author | Fabian Keil <fk@fabiankeil.de> | 2014-06-05 12:56:36 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2021-02-09 00:28:28 +0100 |
commit | b47ee58fb74cf3537e44aeb4876dfaf4a4b00ccb (patch) | |
tree | 16030352ebbcdf35724a66415b1d9dc7b8d038e1 /tests/runtests.pl | |
parent | 4421359e7787712bd3c55933e8478d864f11a4cb (diff) | |
download | curl-b47ee58fb74cf3537e44aeb4876dfaf4a4b00ccb.tar.gz |
runtests.pl: add -L parameter to require additional perl libraries
This is useful to change the behaviour of the script without
having to modify the file itself, for example to use a custom
compareparts() function that ignores header differences that
are expected to occur when an external proxy is being used.
Such differences are proxy-specific and thus the modifications
should be maintained together with the proxy.
Diffstat (limited to 'tests/runtests.pl')
-rwxr-xr-x | tests/runtests.pl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/runtests.pl b/tests/runtests.pl index 57aa7394a..27800d817 100755 --- a/tests/runtests.pl +++ b/tests/runtests.pl @@ -5389,6 +5389,11 @@ while(@ARGV) { $use_external_proxy=1; $proxy_address=$ARGV[0]; } + elsif($ARGV[0] eq "-L") { + # require additional library file + shift @ARGV; + require $ARGV[0]; + } elsif($ARGV[0] eq "-l") { # lists the test case names only $listonly=1; @@ -5438,6 +5443,7 @@ Usage: runtests.pl [options] [test selection(s)] -gw run the test case with gdb as a windowed application -h this help text -k keep stdout and stderr files present after tests + -L path require an additional perl library file to replace certain functions -l list all test case names/descriptions -n no valgrind -P proxy use the specified proxy |