From: Ian Jackson Date: Sun, 10 Aug 2014 20:31:56 +0000 (+0100) Subject: Add a test for dgit rpush. X-Git-Tag: debian/0.22~3 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=commitdiff_plain;h=5e285bfc964440be1bc5dc3325b84eca7f210f28 Add a test for dgit rpush. --- diff --git a/debian/changelog b/debian/changelog index d89b41ee..ecee9525 100644 --- a/debian/changelog +++ b/debian/changelog @@ -45,6 +45,7 @@ dgit (0.22~experimental1) experimental; urgency=low * Fixed a manpage typo. * When tests invoke dgit, use --dgit= so that subprocesses use our dgit rather than system one. + * Add a test for dgit rpush. Major new feature, currently stalled awaiting server infrastructure: * dgit-repos-server: New program for receiving signed-tag-based diff --git a/tests/tests/rpush b/tests/tests/rpush new file mode 100755 index 00000000..c627788f --- /dev/null +++ b/tests/tests/rpush @@ -0,0 +1,31 @@ +#!/bin/bash +set -e +. tests/lib + +t-archive pari-extra 3-1 +t-git pari-extra 3-1 + +t-dgit clone $p + +cd $p +t-cloned-fetched-good + +v=3-2~dummy1 +t-apply-diff 3-1 $v +debcommit -a + +t-refs-same-start +t-ref-head + +t-dgit --dpkg-buildpackage:-d build + +mkdir $tmp/empty +cd $tmp/empty +#t-dgit --ssh=$troot/ssh rpush somehost:$troot/$p +#echo $? +t-dgit --ssh=$troot/ssh rpush somehost:$tmp/$p + +cd $tmp/$p +t-pushed-good dgit/sid + +echo ok.