From 5e285bfc964440be1bc5dc3325b84eca7f210f28 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 10 Aug 2014 21:31:56 +0100 Subject: [PATCH] Add a test for dgit rpush. --- debian/changelog | 1 + tests/tests/rpush | 31 +++++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100755 tests/tests/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. -- 2.30.2