diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2017-02-12 16:55:21 -0700 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2018-01-07 19:31:59 +0000 |
commit | a2f4a0b0b1f1eb286c16586af072cd419fbbf51e (patch) | |
tree | dda7411ba13ffa9a26e183c444de3a89371507c3 /tests | |
parent | e02f981fe5cf91cecebccd004d033a5edd9b4af8 (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')
-rw-r--r-- | tests/lib | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -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} |