X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/245dde96193702f7f51389d3583dee547f8ba366..1dd20368486820efb6ef4476ad739e967174bec4:/test/integration/test-apt-update-file diff --git a/test/integration/test-apt-update-file b/test/integration/test-apt-update-file index 94b604f0e..c6e07f8b6 100755 --- a/test/integration/test-apt-update-file +++ b/test/integration/test-apt-update-file @@ -11,6 +11,7 @@ TESTDIR=$(readlink -f $(dirname $0)) setupenvironment configarchitecture "amd64" configcompression 'bz2' 'gz' +confighashes 'SHA512' insertpackage 'unstable' 'foo' 'all' '1' insertsource 'unstable' 'foo' 'all' '1' @@ -18,8 +19,8 @@ insertsource 'unstable' 'foo' 'all' '1' setupaptarchive --no-update # ensure the archive is not writable -addtrap 'prefix' 'chmod 750 aptarchive/dists/unstable/main/binary-amd64;' -chmod 550 aptarchive/dists/unstable/main/binary-amd64 +addtrap 'prefix' 'chmod 750 aptarchive/dists/unstable/main/binary-all;' +chmod 550 aptarchive/dists/unstable/main/binary-all testsuccess aptget update @@ -30,7 +31,7 @@ redatereleasefiles '+1 hour' testsuccess aptget update -o Debug::pkgAcquire::Auth=1 # file:/ isn't shown in the log, so see if it was downloaded anyhow cp -a rootdir/tmp/testsuccess.output rootdir/tmp/update.output -canary="SHA512:$(bzcat aptarchive/dists/unstable/main/binary-amd64/Packages.bz2 | sha512sum |cut -f1 -d' ')" +canary="SHA512:$(bzcat aptarchive/dists/unstable/main/binary-all/Packages.bz2 | sha512sum |cut -f1 -d' ')" testfailure grep -- "$canary" rootdir/tmp/update.output testfoo() { @@ -48,7 +49,7 @@ find rootdir/var/lib/apt/lists -name '*_Packages*' -delete testsuccess aptget update -o Debug::pkgAcquire::Auth=1 # file:/ isn't shown in the log, so see if it was downloaded anyhow cp -a rootdir/tmp/testsuccess.output rootdir/tmp/update.output -canary="SHA512:$(bzcat aptarchive/dists/unstable/main/binary-amd64/Packages.bz2 | sha512sum |cut -f1 -d' ')" +canary="SHA512:$(bzcat aptarchive/dists/unstable/main/binary-all/Packages.bz2 | sha512sum |cut -f1 -d' ')" testsuccess grep -- "$canary" rootdir/tmp/update.output testfoo