From dd869ec82e37459dcc52a3843f02c9fcceade085 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 17 Nov 2013 18:19:07 +0000 Subject: [PATCH] autopkgtests: provide t-apply-diff --- debian/tests/control | 2 +- tests/lib | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/debian/tests/control b/debian/tests/control index 651e118f..ea9ea6f1 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 94c4c796..fb6059ba 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 +} -- 2.30.2