4 TESTDIR
=$(readlink -f $(dirname $0))
7 configarchitecture
'amd64'
9 buildsimplenativepackage
'unrelated' 'all' '0.5~squeeze1' 'unstable'
14 testsuccess aptget update
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
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