2
# $Id: libproxy_test_envvar.test 298 2008-12-17 05:34:50Z jeffschroed $
4
result1_ok="http://1.2.3.4:1234"
6
testurl1="http://code.google.com"
7
testurl2="http://www.google.com"
8
proxy_bin="$( test -x src/bin/proxy && echo src/bin/proxy || which proxy)"
9
pac_url="http://libproxy.googlecode.com/files/proxy.pac"
11
if [ -x $proxy_bin ]; then
12
result1=$(PX_CONFIG_ORDER=config_envvar http_proxy="pac+$pac_url" $proxy_bin $testurl1)
13
result2=$(PX_CONFIG_ORDER=config_envvar http_proxy="pac+$pac_url" $proxy_bin $testurl2)
18
echo 'name="test_pac_http"'
19
if [ "$result1" = "$result1_ok" -a "$result2" = "$result2_ok" ]; then
23
echo "reason='$proxy_bin returned $result1 and $result2 instead of $result1_ok and $result2_ok'"