chiark / gitweb /
test suite: baredebian-tarball: New test
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 29 Jun 2019 14:59:45 +0000 (15:59 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 30 Jun 2019 20:11:18 +0000 (21:11 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
debian/tests/control
tests/tests/baredebian-tarball [new file with mode: 0755]

index 575b070cb0ae4dd7ad88cf7c5248d5305ae3ba74..882f38bf9e4a85c615e72db5ffbe73e252d35a0a 100644 (file)
@@ -1,4 +1,4 @@
-Tests: baredebian-push
+Tests: baredebian-push baredebian-tarball
 Tests-Directory: tests/tests
 Depends: dgit, dgit-infrastructure, devscripts, debhelper (>=8), fakeroot, build-essential, chiark-utils-bin, bc, faketime, git-debrebase, git-buildpackage, devscripts, libdpkg-perl, libgit-wrapper-perl, liblist-compare-perl, libstring-shellquote-perl, libtry-tiny-perl, quilt
 
diff --git a/tests/tests/baredebian-tarball b/tests/tests/baredebian-tarball
new file mode 100755 (executable)
index 0000000..6b1a1b6
--- /dev/null
@@ -0,0 +1,23 @@
+#!/bin/bash
+set -e
+. tests/lib
+. $troot/lib-baredebian
+
+t-dependencies GDR DEBORIG quilt
+
+t-setup-import baredebian
+t-tstunt-parsechangelog
+
+cd $p
+baredebian-test-vars
+
+quiltmode=baredebian+tarball
+git tag -d $uvtag
+uvtag=''
+
+t-expect-fail 'Could not determine appropriate upstream commitish' \
+t-dgit -wn --dgit-view-save=split.g --baredebian quilt-fixup
+
+baredebian-test-core
+
+t-ok