]>
Commit | Line | Data |
---|---|---|
f2380a78 DK |
1 | #!/bin/sh |
2 | set -e | |
3 | ||
4 | TESTDIR=$(readlink -f $(dirname $0)) | |
5 | . $TESTDIR/framework | |
6 | setupenvironment | |
7 | configarchitecture 'amd64' | |
8 | ||
9 | buildsimplenativepackage 'unrelated' 'all' '0.5~squeeze1' 'unstable' | |
10 | ||
11 | setupaptarchive | |
12 | changetowebserver --request-absolute='uri' | |
13 | ||
14 | msgtest 'Check that absolute paths are' 'not accepted' | |
0440d936 | 15 | testfailure --nomsg aptget update |
f2380a78 DK |
16 | |
17 | echo 'Acquire::http::Proxy "http://localhost:8080";' > rootdir/etc/apt/apt.conf.d/99proxy | |
18 | ||
19 | msgtest 'Check that requests to proxies are' 'absolute uris' | |
0440d936 | 20 | testsuccess --nomsg aptget update |
f2380a78 DK |
21 | |
22 | testequal 'Reading package lists... | |
23 | Building dependency tree... | |
24 | The following NEW packages will be installed: | |
25 | unrelated | |
26 | 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. | |
27 | Inst unrelated (0.5~squeeze1 unstable [all]) | |
28 | Conf unrelated (0.5~squeeze1 unstable [all])' aptget install unrelated -s |