]>
Commit | Line | Data |
---|---|---|
a4b8112b DK |
1 | #!/bin/sh |
2 | set -e | |
3 | ||
3abb6a6a DK |
4 | TESTDIR="$(readlink -f "$(dirname "$0")")" |
5 | . "$TESTDIR/framework" | |
a4b8112b DK |
6 | setupenvironment |
7 | configarchitecture 'amd64' | |
8 | configcompression '.' 'gz' | |
9 | ||
10 | buildsimplenativepackage 'unrelated' 'all' '0.5~squeeze1' 'unstable' | |
11 | ||
12 | setupaptarchive --no-update | |
6c0765c0 DK |
13 | changetowebserver |
14 | webserverconfig 'aptwebserver::redirect::replace::/redirectme/' "http://0.0.0.0:${APTHTTPPORT}/" | |
15 | rewritesourceslist "http://localhost:${APTHTTPPORT}/redirectme" | |
a4b8112b | 16 | |
6c0765c0 DK |
17 | testsuccessequal "Get:1 http://0.0.0.0:${APTHTTPPORT} unstable InRelease [$(stat -c %s aptarchive/dists/unstable/InRelease) B] |
18 | Get:2 http://0.0.0.0:${APTHTTPPORT} unstable/main Sources [$(stat -c %s aptarchive/dists/unstable/main/source/Sources.gz) B] | |
19 | Get:3 http://0.0.0.0:${APTHTTPPORT} unstable/main amd64 Packages [$(stat -c %s aptarchive/dists/unstable/main/binary-amd64/Packages.gz) B] | |
1dd20368 DK |
20 | Get:4 http://0.0.0.0:${APTHTTPPORT} unstable/main all Packages [$(stat -c %s aptarchive/dists/unstable/main/binary-all/Packages.gz) B] |
21 | Get:5 http://0.0.0.0:${APTHTTPPORT} unstable/main Translation-en [$(stat -c %s aptarchive/dists/unstable/main/i18n/Translation-en.gz) B] | |
a4b8112b DK |
22 | Reading package lists..." aptget update |
23 | ||
6c0765c0 DK |
24 | testsuccessequal "Hit:1 http://0.0.0.0:${APTHTTPPORT} unstable InRelease |
25 | Reading package lists..." aptget update |