chiark / gitweb /
Provide t-archive-process-incoming and t-archive-query subroutines for regression...
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 3 Aug 2014 23:50:45 +0000 (00:50 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 4 Aug 2014 00:05:00 +0000 (01:05 +0100)
debian/changelog
tests/lib

index 84d835b..e6764a4 100644 (file)
@@ -27,6 +27,8 @@ dgit (0.22~experimental1) experimental; urgency=low
   * Document that dgit rpush needs gnupg and your public key on the build
     host.  Closes:#736529.
   * Fix a manpage reference to `--dget=' where `--dgit=' was intended.
   * Document that dgit rpush needs gnupg and your public key on the build
     host.  Closes:#736529.
   * Fix a manpage reference to `--dget=' where `--dgit=' was intended.
+  * Provide t-archive-process-incoming and t-archive-query subroutines for
+    regression test scripts to use.
 
   Major new feature, currently stalled awaiting server infrastructure:
   * dgit-repos-server: New program for receiving signed-tag-based
 
   Major new feature, currently stalled awaiting server infrastructure:
   * dgit-repos-server: New program for receiving signed-tag-based
index bba49a3..5e64b99 100644 (file)
--- a/tests/lib
+++ b/tests/lib
@@ -82,13 +82,23 @@ t-archive-none () {
        echo sid >$tmp/aq/suite.unstable
 }
 
        echo sid >$tmp/aq/suite.unstable
 }
 
+t-archive-process-incoming () {
+       mv incoming/${p}_${v}[._]* mirror/
+       t-archive-query
+}
+
+t-archive-query () {
+       local dscf=${p}_${v}.dsc
+       echo "${v} $dscf" >>$tmp/aq/package.sid.${p}
+}
+
 t-archive () {
        t-archive-none $1
        v=$2
        local dscf=${p}_$2.dsc
        rm -f $tmp/mirror/${p}_*
        ln $troot/pkg-srcs/${p}_${2%-*}* $tmp/mirror/
 t-archive () {
        t-archive-none $1
        v=$2
        local dscf=${p}_$2.dsc
        rm -f $tmp/mirror/${p}_*
        ln $troot/pkg-srcs/${p}_${2%-*}* $tmp/mirror/
-       echo "$2 $dscf" >>$tmp/aq/package.sid.${p}
+       t-archive-query
        rm -rf $tmp/extract
        mkdir $tmp/extract
        (set -e; cd $tmp/extract; dpkg-source -x ../mirror/$dscf)
        rm -rf $tmp/extract
        mkdir $tmp/extract
        (set -e; cd $tmp/extract; dpkg-source -x ../mirror/$dscf)