diff options
author | dominique.leuenberger <dominique.leuenberger@c587cffe-e639-0410-9787-d7902ae8ed56> | 2009-06-27 21:35:50 +0000 |
---|---|---|
committer | dominique.leuenberger <dominique.leuenberger@c587cffe-e639-0410-9787-d7902ae8ed56> | 2009-06-27 21:35:50 +0000 |
commit | 23b22eea15846988d919a2acde0d8d5aecde4982 (patch) | |
tree | 6c097b58847768fd52f3070b33e49bfcd14cfd94 | |
parent | 3e438e695ec99f5f3b78d9464db42409cf37a71b (diff) | |
download | libproxy-23b22eea15846988d919a2acde0d8d5aecde4982.tar.gz |
testsuite: if no plugin can be found, libproxy should still 'do something'
git-svn-id: http://libproxy.googlecode.com/svn/trunk@401 c587cffe-e639-0410-9787-d7902ae8ed56
-rwxr-xr-x | test.d/libproxy_test_nomodule_directfallback.test | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test.d/libproxy_test_nomodule_directfallback.test b/test.d/libproxy_test_nomodule_directfallback.test new file mode 100755 index 0000000..770b704 --- /dev/null +++ b/test.d/libproxy_test_nomodule_directfallback.test @@ -0,0 +1,20 @@ +#!/bin/sh +# $Id: libproxy_test_envvar.test 386 2009-06-07 20:15:13Z dominique.leuenberger $ + +result_ok="direct://" +testurl="http://www.google.com" +proxy_bin="src/bin/proxy" + +if [ -x $proxy_bin ]; then + result=$(PX_MODULE_BLACKLIST="*" PX_CONFIG_ORDER=config_envvar http_proxy="http://proxy:1234" $proxy_bin $testurl) +else + result="N/A" +fi + +echo 'name="test_nomodule_directfallback"' +if [ "$result" = "$result_ok" ]; then + echo pass=True +else + echo pass=False + echo "reason='$proxy_bin returned $result instead of $result_ok'" +fi |