summaryrefslogtreecommitdiff
path: root/tests/lib
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2017-02-12 16:55:21 -0700
committerIan Jackson <ijackson@chiark.greenend.org.uk>2018-01-07 19:31:59 +0000
commita2f4a0b0b1f1eb286c16586af072cd419fbbf51e (patch)
treedda7411ba13ffa9a26e183c444de3a89371507c3 /tests/lib
parente02f981fe5cf91cecebccd004d033a5edd9b4af8 (diff)
test suite: Add library function t-push-was-source-only
No functional change. Signed-off-by: Sean Whitton <spwhitton@spwhitton.name> Acked-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Diffstat (limited to 'tests/lib')
-rw-r--r--tests/lib15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/lib b/tests/lib
index fcc2a69..e4554e3 100644
--- a/tests/lib
+++ b/tests/lib
@@ -635,6 +635,21 @@ t-check-pushed-master () {
if [ x$mbase = x$master ]; then fail "failed to ff master"; fi
}
+t-push-was-source-only () {
+ local f
+ t-files-notexist $tmp/incoming/${p}_${v}_*.deb \
+ $tmp/incoming/${p}_${v}_*.udeb
+ # we permit _source.buildinfo files; see test_changes_source_only()
+ for f in $tmp/incoming/${p}_${v}_*.buildinfo; do
+ if [ -e $f ]; then
+ case "$f" in
+ *_source.buildinfo) ;;
+ *) fail "non-source-only file $f exists!" ;;
+ esac
+ fi
+ done
+}
+
t-pushed-good () {
local branch=$1
local suite=${2:-sid}