]> git.saurik.com Git - apt.git/blobdiff - test/integration/test-pdiff-usage
add more parsing error checking for rred
[apt.git] / test / integration / test-pdiff-usage
index 5e759e50e4bc477482a44147a5090a4a856fb239..7a9f6496b5c8beda81363b02acce08661a03ae84 100755 (executable)
@@ -47,7 +47,7 @@ testrun() {
        compressfile 'aptarchive/Packages'
        generatereleasefiles
        signreleasefiles
-       rm -rf aptarchive/Packages.diff rootdir/var/lib/apt/lists
+       rm -rf aptarchive/Packages.diff rootdir/var/lib/apt/lists rootdir/var/lib/apt/lists-bak
        testsuccess aptget update "$@"
        cp -a rootdir/var/lib/apt/lists rootdir/var/lib/apt/lists-bak
        testnopackage newstuff
@@ -165,11 +165,14 @@ SHA256-History:
 SHA256-Patches:
  e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 19722 2010-08-18-2013.28
  $(sha256sum $PATCHFILE | cut -d' ' -f 1) $(stat -c%s $PATCHFILE) $(basename $PATCHFILE)" > $PATCHINDEX
-       echo 'I am Mallory and I change files' >> $PATCHFILE
+       # needs to look like a valid command, otherwise the parser will fail before hashes are checked
+       echo '1d' >> $PATCHFILE
        cat $PATCHFILE | gzip > ${PATCHFILE}.gz
        generatereleasefiles '+1hour'
        signreleasefiles
        testsuccess aptget update "$@"
+       cp -f rootdir/tmp/testsuccess.output rootdir/tmp/aptgetupdate.output
+       testsuccess grep 'have the expected hashsum' rootdir/tmp/aptgetupdate.output
        testnopackage oldstuff
        testsuccessequal "$(cat ${PKGFILE}-new)
 " aptcache show apt newstuff