diff options
author | David Kalnischkies <david@kalnischkies.de> | 2016-01-06 00:05:24 +0100 |
---|---|---|
committer | David Kalnischkies <david@kalnischkies.de> | 2016-01-08 15:40:01 +0100 |
commit | 4e3c5633b1e74b4f58b95f339cfbbf4cbf21ab3e (patch) | |
tree | 1e96d3fe037b4ee841f79bcec859443f6eebc459 /test/integration/test-pdiff-usage | |
parent | 1866240123a57de8f693b0ba01d8b709f027282d (diff) |
allow pdiff bootstrap from all supported compressors
There is no reason to enforce that the file we start the bootstrap with
is compressed with a compressor which is available online. This allows
us to change the on-disk format as well as deals with repositories
adding/removing support for a specific compressor.
Diffstat (limited to 'test/integration/test-pdiff-usage')
-rwxr-xr-x | test/integration/test-pdiff-usage | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/test/integration/test-pdiff-usage b/test/integration/test-pdiff-usage index f451e0558..547242cad 100755 --- a/test/integration/test-pdiff-usage +++ b/test/integration/test-pdiff-usage @@ -15,7 +15,7 @@ changetowebserver -o aptwebserver::support::modified-since=false PKGFILE="${TESTDIR}/$(echo "$(basename $0)" | sed 's#^test-#Packages-#')" wasmergeused() { - testsuccess aptget update "$@" + testsuccess apt update "$@" msgtest 'No intermediate patch files' 'still exist' local EDS="$(find rootdir/var/lib/apt/lists -name '*.ed' -o -name '*.ed.*')" @@ -42,6 +42,7 @@ wasmergeused() { } testrun() { + configcompression '.' 'xz' msgmsg "Testcase: setup the base with: $*" local DOWNLOADHASH=true if [ "$1" = 'nohash' ]; then DOWNLOADHASH=false; shift; fi @@ -56,8 +57,10 @@ testrun() { testnopackage newstuff testsuccessequal "$(cat "${PKGFILE}") " aptcache show apt oldstuff + configcompression '.' 'gz' msgmsg "Testcase: apply with one patch: $*" + find aptarchive -name 'Packages*' -type f -delete cp "${PKGFILE}-new" aptarchive/Packages compressfile 'aptarchive/Packages' mkdir -p aptarchive/Packages.diff @@ -194,9 +197,9 @@ SHA256-Download: cat "$PATCHFILE" | gzip > "${PATCHFILE}.gz" generatereleasefiles '+1hour' signreleasefiles - testsuccess aptget update "$@" - cp -f rootdir/tmp/testsuccess.output rootdir/tmp/aptgetupdate.output - testsuccess grep 'Hash Sum mismatch' rootdir/tmp/aptgetupdate.output + testsuccess apt update "$@" + cp -f rootdir/tmp/testsuccess.output rootdir/tmp/aptupdate.output + testsuccess grep 'Hash Sum mismatch' rootdir/tmp/aptupdate.output testnopackage oldstuff testsuccessequal "$(cat "${PKGFILE}-new") " aptcache show apt newstuff @@ -235,10 +238,9 @@ SHA256-Download: fi generatereleasefiles '+1hour' signreleasefiles - #find aptarchive -name 'Packages*' -type f -delete - testsuccess aptget update -o Debug::pkgAcquire::Diffs=1 "$@" - cp -f rootdir/tmp/testsuccess.output rootdir/tmp/aptgetupdate.output - testsuccess grep 'bytes (Limit is' rootdir/tmp/aptgetupdate.output + testsuccess apt update -o Debug::pkgAcquire::Diffs=1 "$@" + cp -f rootdir/tmp/testsuccess.output rootdir/tmp/aptupdate.output + testsuccess grep 'bytes (Limit is' rootdir/tmp/aptupdate.output testnopackage oldstuff testsuccessequal "$(cat "${PKGFILE}-new") " aptcache show apt newstuff @@ -270,5 +272,7 @@ testcase() { testrun -o Acquire::PDiffs::Merge=1 -o Acquire::ForceHash=SHA256 "$@" unset -f sha1sum } -testcase -o Acquire::GzipIndexes=0 -testcase -o Acquire::GzipIndexes=1 +aptautotest_apt_update() { aptautotest_aptget_update "$@"; testsuccess test -e "rootdir/var/lib/apt/lists/localhost:${APTHTTPPORT}_Packages"; } +testcase -o Acquire::IndexTargets::deb::Packages::KeepCompressed=false +aptautotest_apt_update() { aptautotest_aptget_update "$@"; testsuccess test -e "rootdir/var/lib/apt/lists/localhost:${APTHTTPPORT}_Packages.gz"; } +testcase -o Acquire::IndexTargets::deb::Packages::KeepCompressed=true |