~ubuntu-branches/ubuntu/precise/libproxy/precise

« back to all changes in this revision

Viewing changes to test.d/libproxy_test_pac_http.test

  • Committer: Package Import Robot
  • Author(s): Iain Lane, Iain Lane, Ken VanDine
  • Date: 2012-02-15 14:42:54 UTC
  • mfrom: (1.2.2)
  • Revision ID: package-import@ubuntu.com-20120215144254-j6n30mds0s3solv3
Tags: 0.4.7-0ubuntu1
[ Iain Lane ]
* New upstream release.
* Convert to dh7.
* SONAME bump, rename packages accordingly
* Remove obsolete patches
* Add CLI/Vala bindings.
* Also install vala bindings (in -dev package)
* Update Standards-Version to 3.9.2
* Split modules into individual packages
* Link with --as-needed to avoid unnecessary deps
* Update copyright
* Make library multiarch compatible

[ Ken VanDine ]
* Build against libmozjs185.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh
2
 
# $Id: libproxy_test_envvar.test 298 2008-12-17 05:34:50Z jeffschroed $
3
 
 
4
 
result1_ok="http://1.2.3.4:1234"
5
 
result2_ok="direct://"
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"
10
 
 
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)
14
 
else
15
 
    result="N/A"
16
 
fi
17
 
 
18
 
echo 'name="test_pac_http"'
19
 
if [ "$result1" = "$result1_ok" -a "$result2" = "$result2_ok" ]; then
20
 
  echo pass=True
21
 
else
22
 
  echo pass=False
23
 
  echo "reason='$proxy_bin returned $result1 and $result2 instead of $result1_ok and $result2_ok'"
24
 
fi