summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDavid Kalnischkies <david@kalnischkies.de>2020-11-07 22:52:20 +0100
committerDavid Kalnischkies <david@kalnischkies.de>2020-11-07 22:52:20 +0100
commite5bb443cf58cec23503ad0deeeb06a080053da8a (patch)
tree205b5e302efa372ca1a8a703252f82d18afbe879 /test
parent418f9272606857e312f485778a1ef1b263236463 (diff)
Support compressed output from rred similar to apt-helper cat-filefeature/rred
Diffstat (limited to 'test')
-rwxr-xr-xtest/integration/test-method-rred15
1 files changed, 13 insertions, 2 deletions
diff --git a/test/integration/test-method-rred b/test/integration/test-method-rred
index bef1a35e0..fcadac146 100755
--- a/test/integration/test-method-rred
+++ b/test/integration/test-method-rred
@@ -198,9 +198,13 @@ failrred 'End before start' '7,6d'
# deal correctly with patch merging
mergepatches() {
- testsuccess runapt "${METHODSDIR}/rred" Packages.ed-*
+ local CONTENT="$1"
+ shift
+ testsuccess runapt "${METHODSDIR}/rred" Packages.ed-* "$@"
cp -a rootdir/tmp/testsuccess.output patch.ed
- testfileequal 'patch.ed' "$1"
+ if [ "$#" = '0' ]; then
+ testfileequal 'patch.ed' "$CONTENT"
+ fi
}
createpatch() {
echo "$2"
@@ -223,7 +227,14 @@ mergepatches '11,19c
Package: extra-kittens
Version: unavailable
.
+6d' -C 'gzip'
+mv patch.ed patch.ed.gz
+mergepatches '11,19c
+Package: extra-kittens
+Version: unavailable
+.
6d'
+testfileequal patch.ed "$(apt-helper cat-file patch.ed.gz)"
testrred 'Apply' 'merged patch' "$(cat patch.ed)" 'Package: coolstuff
Version: 0.8.15
Description: collection of stuff