chiark / gitweb /
autopkgtests: provide t-apply-diff
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 17 Nov 2013 18:19:07 +0000 (18:19 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 24 Nov 2013 17:45:27 +0000 (17:45 +0000)
debian/tests/control
tests/lib

index 651e118..ea9ea6f 100644 (file)
@@ -1,3 +1,3 @@
 Tests: clone-nogit fetch-nogit push-newpackage
 Tests-Directory: tests/tests
-Depends: @
+Depends: @, devscripts
index 94c4c79..fb6059b 100644 (file)
--- a/tests/lib
+++ b/tests/lib
@@ -158,3 +158,10 @@ t-ref-dsc-dgit () {
                print $ref,"\n";
        ' <$tmp/incoming/${p}_${v}.dsc >$tmp/t.ref1
 }
+
+t-apply-diff () {
+       local v1=$1
+       local v2=$2
+       (cd $troot/pkg-srcs; debdiff ${p}_${v1}.dsc ${p}_${v2}.dsc) \
+               | patch -p1 -u
+}