]> git.saurik.com Git - apt.git/blobdiff - test/integration/test-method-rred
treat .ddeb files like .deb, especially for dpkg
[apt.git] / test / integration / test-method-rred
index 721aa5cdc632e2f73107f1e1c7a34a3fac97ee4a..5a885e9d2751a76e28b5e40464e4834d57c306f5 100755 (executable)
@@ -38,6 +38,8 @@ testrred() {
                cat Packages | runapt "${METHODSDIR}/rred" "$@"
        }
        testsuccessequal "$4" --nomsg rred -f Packages.ed
+       testsuccess runapt "${METHODSDIR}/rred" -t Packages Packages-patched Packages.ed
+       testfileequal Packages-patched "$4"
 }
 
 testrred 'Remove' 'first line' '1d' "$(tail -n +2 ./Packages)"
@@ -152,6 +154,7 @@ failrred() {
                cat Packages | runapt "${METHODSDIR}/rred" "$@"
        }
        testfailure --nomsg rred -f Packages.ed
+       testfailure runapt "${METHODSDIR}/rred" -t Packages Packages-patched Packages.ed
 }
 
 failrred 'Bogus content' '<html>