]> git.saurik.com Git - apt.git/blob - test/integration/test-handle-redirect-as-used-mirror-change
link DependencyData structs together
[apt.git] / test / integration / test-handle-redirect-as-used-mirror-change
1 #!/bin/sh
2 set -e
3
4 TESTDIR=$(readlink -f $(dirname $0))
5 . $TESTDIR/framework
6 setupenvironment
7 configarchitecture 'amd64'
8 configcompression '.' 'gz'
9
10 buildsimplenativepackage 'unrelated' 'all' '0.5~squeeze1' 'unstable'
11
12 setupaptarchive --no-update
13 changetowebserver -o 'aptwebserver::redirect::replace::/redirectme/=http://0.0.0.0:8080/'
14 rewritesourceslist 'http://localhost:8080/redirectme'
15
16 testsuccessequal "Get:1 http://0.0.0.0:8080 unstable InRelease [$(stat -c %s aptarchive/dists/unstable/InRelease) B]
17 Get:2 http://0.0.0.0:8080 unstable/main Sources [$(stat -c %s aptarchive/dists/unstable/main/source/Sources.gz) B]
18 Get:3 http://0.0.0.0:8080 unstable/main amd64 Packages [$(stat -c %s aptarchive/dists/unstable/main/binary-amd64/Packages.gz) B]
19 Get:4 http://0.0.0.0:8080 unstable/main Translation-en [$(stat -c %s aptarchive/dists/unstable/main/i18n/Translation-en.gz) B]
20 Reading package lists..." aptget update
21
22 testsuccessequal 'Hit:1 http://0.0.0.0:8080 unstable InRelease
23 Reading package lists...' aptget update