diff options
author | Fabian Keil <fk@fabiankeil.de> | 2012-11-17 12:12:42 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2021-02-09 00:28:28 +0100 |
commit | 3f0bef2b5303fec1a4b483e65d767205efd481b7 (patch) | |
tree | f2527bc59e83113e11c3755cf1fe7645e61c855e /tests/data | |
parent | b47ee58fb74cf3537e44aeb4876dfaf4a4b00ccb (diff) | |
download | curl-3f0bef2b5303fec1a4b483e65d767205efd481b7.tar.gz |
runtests.pl: add an -E option to specify an exclude file
It can contain additional restraints for test numbers,
keywords and tools.
The idea is to let third parties like the Privoxy project
distribute an exclude file with their tarballs that specifies
which curl tests are not expected to work when using Privoxy
as a proxy, without having to fork the whole curl test suite.
The syntax could be changed to be extendable and maybe
more closely reflect the "curl test" syntax. Currently
it's a bunch of lines like these:
test:$TESTNUMBER:Reason why this test with number $TESTNUMBER should be skipped
keyword:$KEYWORD:Reason why tests whose keywords contain the $KEYWORD should be skipped
tool:$TOOL:Reason why tests with tools that contain $TOOL should be skipped
To specify multiple $TESTNUMBERs, $KEYWORDs and $TOOLs
on a single line, split them with commas.
Diffstat (limited to 'tests/data')
-rw-r--r-- | tests/data/DISABLED | 4 | ||||
-rw-r--r-- | tests/data/Makefile.inc | 2 | ||||
-rw-r--r-- | tests/data/test1182 | 36 |
3 files changed, 41 insertions, 1 deletions
diff --git a/tests/data/DISABLED b/tests/data/DISABLED index 1806a5dbe..2ff0fc49a 100644 --- a/tests/data/DISABLED +++ b/tests/data/DISABLED @@ -11,6 +11,10 @@ 836 882 938 +# test 1182 kills the test servers as a side effect +# of running runtests.pl as a child of itself sharing +# some of the directories. +1182 1209 1211 # fnmatch differences are just too common to make testing them sensible diff --git a/tests/data/Makefile.inc b/tests/data/Makefile.inc index 485fd72b6..5b60d1606 100644 --- a/tests/data/Makefile.inc +++ b/tests/data/Makefile.inc @@ -137,7 +137,7 @@ test1144 test1145 test1146 test1147 test1148 test1149 test1150 test1151 \ test1152 test1153 test1154 test1155 test1156 test1157 test1158 test1159 \ test1160 test1161 test1162 test1163 test1164 test1165 test1166 test1167 \ test1168 test1169 test1170 test1171 test1172 test1173 test1174 test1175 \ -test1176 test1177 test1178 test1179 test1180 test1181 \ +test1176 test1177 test1178 test1179 test1180 test1181 test1182 \ \ test1188 \ \ diff --git a/tests/data/test1182 b/tests/data/test1182 new file mode 100644 index 000000000..0e5a672d2 --- /dev/null +++ b/tests/data/test1182 @@ -0,0 +1,36 @@ +<testcase> +<info> +<keywords> +runtests.pl +</keywords> +</info> + +# +# Client-side +<client> +<server> +none +</server> +<name> +Verify that runtests.pl accepts an exclude file with the -E option +</name> + +<command type="perl"> +%SRCDIR/runtests.pl -o TESTDIR=%SRCDIR/log/data -o LOGDIR=%SRCDIR/log/log -E %SRCDIR/log/test1182-exclude-file 1 +</command> +<precheck> +mkdir %SRCDIR/log/data ; mkdir %SRCDIR/log/log; cp %SRCDIR/data/test1 %SRCDIR/log/data; echo 'test:1:Test should not run for unit test 1182' > %SRCDIR/log/test1182-exclude-file +</precheck> +<postcheck> +grep -q "Test should not run for unit test 1182" %SRCDIR/log/stdout1182 +</postcheck> + +</client> + +<verify> +<errorcode> +1 +</errorcode> +</verify> + +</testcase> |