]> git.saurik.com Git - apt.git/blame - test/integration/test-handle-redirect-as-used-mirror-change
Support tabs in sources.list files
[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
13changetowebserver -o 'aptwebserver::redirect::replace::/redirectme/=http://0.0.0.0:8080/'
14rewritesourceslist 'http://localhost:8080/redirectme'
15
16testsuccessequal "Get:1 http://0.0.0.0:8080 unstable InRelease [$(stat -c %s aptarchive/dists/unstable/InRelease) B]
17Get:2 http://0.0.0.0:8080 unstable/main Sources [$(stat -c %s aptarchive/dists/unstable/main/source/Sources.gz) B]
18Get:3 http://0.0.0.0:8080 unstable/main amd64 Packages [$(stat -c %s aptarchive/dists/unstable/main/binary-amd64/Packages.gz) B]
19Get:4 http://0.0.0.0:8080 unstable/main Translation-en [$(stat -c %s aptarchive/dists/unstable/main/i18n/Translation-en.gz) B]
20Reading package lists..." aptget update
21
22testsuccessequal 'Hit:1 http://0.0.0.0:8080 unstable InRelease
23Reading package lists...' aptget update