From b47ee58fb74cf3537e44aeb4876dfaf4a4b00ccb Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Thu, 5 Jun 2014 12:56:36 +0200 Subject: 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. --- tests/data/Makefile.inc | 2 +- tests/data/test1169 | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 tests/data/test1169 (limited to 'tests/data') diff --git a/tests/data/Makefile.inc b/tests/data/Makefile.inc index 6b6f2bc5f..485fd72b6 100644 --- a/tests/data/Makefile.inc +++ b/tests/data/Makefile.inc @@ -136,7 +136,7 @@ test1136 test1137 test1138 test1139 test1140 test1141 test1142 test1143 \ 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 test1170 test1171 test1172 test1173 test1174 test1175 \ +test1168 test1169 test1170 test1171 test1172 test1173 test1174 test1175 \ test1176 test1177 test1178 test1179 test1180 test1181 \ \ test1188 \ diff --git a/tests/data/test1169 b/tests/data/test1169 new file mode 100644 index 000000000..e7f7df466 --- /dev/null +++ b/tests/data/test1169 @@ -0,0 +1,35 @@ + + + +runtests.pl + + + +# +# Client-side + + +none + + +Verify that runtests.pl accepts an -L option + + + +%SRCDIR/runtests.pl -L %SRCDIR/log/test1196-library.pl + +# Create a simple perl snippet that lets runtests.pl +# exit with a code we can check. + +echo 'exit 123' > %SRCDIR/log/test1196-library.pl + + + + + + +123 + + + + -- cgit v1.2.1