]>
Commit | Line | Data |
---|---|---|
63d0f853 MV |
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 | |
13 | ||
14 | testsuccess aptget update | |
15 | ||
16 | # check that I-M-S header is kept in redirections | |
17 | testequal "Hit http://localhost:8080 unstable InRelease | |
18 | Hit http://localhost:8080 unstable/main Sources | |
19 | Hit http://localhost:8080 unstable/main amd64 Packages | |
20 | Hit http://localhost:8080 unstable/main Translation-en | |
21 | Reading package lists..." aptget update | |
22 | ||
63b7249e MV |
23 | # ensure that we still do a hash check on ims hit |
24 | msgtest 'Test I-M-S reverify' | |
25 | aptget update -o Debug::pkgAcquire::Auth=1 2>&1 | grep -A1 'RecivedHash:' | grep -q -- '- SHA' && msgpass || msgfail |