aboutsummaryrefslogtreecommitdiff
path: root/tests/data/test1105
diff options
context:
space:
mode:
authorFabian Keil <fk@fabiankeil.de>2012-11-18 14:55:29 +0100
committerDaniel Stenberg <daniel@haxx.se>2012-11-19 10:58:14 +0100
commit276452ca1096c40c886eee3ea461d462b7bcdadc (patch)
treecf0bd8c0873aee827b3df183d47e8af570036c76 /tests/data/test1105
parent1b10dd7aaecae14003c26445d2f36af053ca373d (diff)
Add a HOSTIP precheck for tests 31 and 1105
They currently only work for 127.0.0.1 which is hardcoded and can't be easily changed.
Diffstat (limited to 'tests/data/test1105')
-rw-r--r--tests/data/test11053
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/data/test1105 b/tests/data/test1105
index 1b2bf564a..922346ff0 100644
--- a/tests/data/test1105
+++ b/tests/data/test1105
@@ -34,6 +34,9 @@ HTTP with cookie parser and header recording
<command>
"http://%HOSTIP:%HTTPPORT/we/want/1105?parm1=this*that/other/thing&parm2=foobar/1105" -c log/cookie1105.txt -d "userid=myname&password=mypassword"
</command>
+<precheck>
+perl -e 'if ("%HOSTIP" !~ /127\.0\.0\.1$/) {print "Test only works for HOSTIP 127.0.0.1"; exit(1)}'
+</precheck>
</client>
# Verify data after the test has been "shot"