summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/tests/control2
-rw-r--r--tests/lib7
2 files changed, 8 insertions, 1 deletions
diff --git a/debian/tests/control b/debian/tests/control
index 651e118..ea9ea6f 100644
--- a/debian/tests/control
+++ b/debian/tests/control
@@ -1,3 +1,3 @@
Tests: clone-nogit fetch-nogit push-newpackage
Tests-Directory: tests/tests
-Depends: @
+Depends: @, devscripts
diff --git a/tests/lib b/tests/lib
index 94c4c79..fb6059b 100644
--- 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
+}