]> git.saurik.com Git - apt.git/blame - test/integration/test-handle-redirect-as-used-mirror-change
support arch:all data e.g. in separate Packages file
[apt.git] / test / integration / test-handle-redirect-as-used-mirror-change
CommitLineData
a4b8112b
DK
1#!/bin/sh
2set -e
3
4TESTDIR=$(readlink -f $(dirname $0))
5. $TESTDIR/framework
6setupenvironment
7configarchitecture 'amd64'
8configcompression '.' 'gz'
9
10buildsimplenativepackage 'unrelated' 'all' '0.5~squeeze1' 'unstable'
11
12setupaptarchive --no-update
6c0765c0
DK
13changetowebserver
14webserverconfig 'aptwebserver::redirect::replace::/redirectme/' "http://0.0.0.0:${APTHTTPPORT}/"
15rewritesourceslist "http://localhost:${APTHTTPPORT}/redirectme"
a4b8112b 16
6c0765c0
DK
17testsuccessequal "Get:1 http://0.0.0.0:${APTHTTPPORT} unstable InRelease [$(stat -c %s aptarchive/dists/unstable/InRelease) B]
18Get:2 http://0.0.0.0:${APTHTTPPORT} unstable/main Sources [$(stat -c %s aptarchive/dists/unstable/main/source/Sources.gz) B]
19Get: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
20Get:4 http://0.0.0.0:${APTHTTPPORT} unstable/main all Packages [$(stat -c %s aptarchive/dists/unstable/main/binary-all/Packages.gz) B]
21Get: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
22Reading package lists..." aptget update
23
6c0765c0
DK
24testsuccessequal "Hit:1 http://0.0.0.0:${APTHTTPPORT} unstable InRelease
25Reading package lists..." aptget update