]> git.saurik.com Git - apt.git/blobdiff - test/integration/test-compressed-indexes
Add new configallowinsecurerepositories to the test framework
[apt.git] / test / integration / test-compressed-indexes
index 805ed5964c9298e1f2b78ea78c0bdec19d25a278..f6707797373d2bd4b432a235893a563f357a9baf 100755 (executable)
@@ -39,10 +39,10 @@ testrun() {
                test -e rootdir/var/lib/apt/lists/*_Translation-en.${COMPRESS} || F=1
                # there is no point in trying pdiff if we have compressed indexes
                # as we can't patch compressed files (well, we can, but what is the point?)
-               ! test -e rootdir/var/lib/apt/lists/*.IndexDiff || F=1
+               ! test -e rootdir/var/lib/apt/lists/*diff_Index || F=1
        else
                # clear the faked pdiff indexes so the glob below works
-               rm -f rootdir/var/lib/apt/lists/*.IndexDiff
+               rm -f rootdir/var/lib/apt/lists/*diff_Index
                test -e rootdir/var/lib/apt/lists/*_Packages || F=1
                test -e rootdir/var/lib/apt/lists/*_Sources || F=1
                test -e rootdir/var/lib/apt/lists/*_Translation-en || F=1
@@ -51,6 +51,7 @@ testrun() {
                ! test -e rootdir/var/lib/apt/lists/*_Translation-en.* || F=1
        fi
        if [ -n "$F" ]; then
+               cat rootdir/tmp/testsuccess.output
                ls -laR rootdir/var/lib/apt/lists/
                msgfail
        else
@@ -103,15 +104,15 @@ testovermethod() {
                        INDCOMP='compressed'
                fi
 
-               testsuccess aptget update
+               testsuccess aptget update -o Debug::Acquire::http=1
                msgmsg "${1}: ${COMPRESSOR}: Test with $INDCOMP indexes"
                testrun "$INDCOMP"
 
-               testsuccess aptget update -o Acquire::Pdiffs=1
+               testsuccess aptget update -o Acquire::Pdiffs=1 -o Debug::Acquire::http=1
                msgmsg "${1}: ${COMPRESSOR}: Test with $INDCOMP indexes (update unchanged with pdiffs)"
                testrun "$INDCOMP"
 
-               testsuccess aptget update -o Acquire::Pdiffs=0
+               testsuccess aptget update -o Acquire::Pdiffs=0 -o Debug::Acquire::http=1
                msgmsg "${1}: ${COMPRESSOR}: Test with $INDCOMP indexes (update unchanged without pdiffs)"
                testrun "$INDCOMP"