use variables to support other IPs and port numbers

This commit is contained in:
Daniel Stenberg 2008-05-01 10:52:12 +00:00
Родитель 7b2531da24
Коммит fd31f7e7e5
1 изменённых файлов: 1 добавлений и 5 удалений

Просмотреть файл

@ -30,10 +30,6 @@ HTTP Location: and 'redirect_url' check
<command> <command>
http://%HOSTIP:%HTTPPORT/we/want/our/1029 -w '%{redirect_url}\n' http://%HOSTIP:%HTTPPORT/we/want/our/1029 -w '%{redirect_url}\n'
</command> </command>
# The stdout section doesn't do variable substitution, so we must assert this
<precheck>
perl -e "print 'Test requires default test server host and port' if ( '%HOSTIP' ne '127.0.0.1' || '%HTTPPORT' ne '8990' );"
</precheck>
</client> </client>
# Verify data after the test has been "shot" # Verify data after the test has been "shot"
@ -54,7 +50,7 @@ Content-Length: 62
Connection: close Connection: close
This server reply is for testing a simple Location: following This server reply is for testing a simple Location: following
http://127.0.0.1:8990/we/want/our/data/10290002.txt?coolsite=yes http://%HOSTIP:%HTTPPORT/we/want/our/data/10290002.txt?coolsite=yes
</stdout> </stdout>
</verify> </verify>
</testcase> </testcase>