mirror of
https://github.com/curl/curl.git
synced 2026-08-24 20:23:40 +03:00
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.
This commit is contained in:
parent
4421359e77
commit
b47ee58fb7
3 changed files with 42 additions and 1 deletions
35
tests/data/test1169
Normal file
35
tests/data/test1169
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
<testcase>
|
||||
<info>
|
||||
<keywords>
|
||||
runtests.pl
|
||||
</keywords>
|
||||
</info>
|
||||
|
||||
#
|
||||
# Client-side
|
||||
<client>
|
||||
<server>
|
||||
none
|
||||
</server>
|
||||
<name>
|
||||
Verify that runtests.pl accepts an -L option
|
||||
</name>
|
||||
|
||||
<command type="perl">
|
||||
%SRCDIR/runtests.pl -L %SRCDIR/log/test1196-library.pl
|
||||
</command>
|
||||
# Create a simple perl snippet that lets runtests.pl
|
||||
# exit with a code we can check.
|
||||
<precheck>
|
||||
echo 'exit 123' > %SRCDIR/log/test1196-library.pl
|
||||
</precheck>
|
||||
|
||||
</client>
|
||||
|
||||
<verify>
|
||||
<errorcode>
|
||||
123
|
||||
</errorcode>
|
||||
</verify>
|
||||
|
||||
</testcase>
|
||||
Loading…
Add table
Add a link
Reference in a new issue