]> git.saurik.com Git - apt.git/blame - test/integration/test-apt-update-ims
add ims check verify
[apt.git] / test / integration / test-apt-update-ims
CommitLineData
63d0f853
MV
1#!/bin/sh
2set -e
3
4TESTDIR=$(readlink -f $(dirname $0))
5. $TESTDIR/framework
6setupenvironment
7configarchitecture 'amd64'
8
9buildsimplenativepackage 'unrelated' 'all' '0.5~squeeze1' 'unstable'
10
11setupaptarchive
12changetowebserver
13
14testsuccess aptget update
15
16# check that I-M-S header is kept in redirections
17testequal "Hit http://localhost:8080 unstable InRelease
18Hit http://localhost:8080 unstable/main Sources
19Hit http://localhost:8080 unstable/main amd64 Packages
20Hit http://localhost:8080 unstable/main Translation-en
21Reading package lists..." aptget update
22
63b7249e
MV
23# ensure that we still do a hash check on ims hit
24msgtest 'Test I-M-S reverify'
25aptget update -o Debug::pkgAcquire::Auth=1 2>&1 | grep -A1 'RecivedHash:' | grep -q -- '- SHA' && msgpass || msgfail