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 11:37:29 +0000 (12:37 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
debian/tests/control
tests/tests/baredebian-tarball [new file with mode: 0755]

index 9a6348fa7848cc38bec7c28456999a3fb8cb7107..cc88e5f51e08a3885a67a8caf427de6306caba76 100644 (file)
@@ -20,7 +20,7 @@ Tests: gdr-merge-conflicts
 Tests-Directory: tests/tests
 Depends: chiark-utils-bin, faketime, git-debrebase, git-buildpackage, quilt
 
-Tests: baredebian-push gdr-diverge-nmu gdr-diverge-nmu-dgit gdr-edits gdr-fresh gdr-import-dgit gdr-import-dgitview gdr-import-nostitch gdr-makepatches7 gdr-merge gdr-subcommands gdr-unprocessable gdr-unprocessable-hints
+Tests: baredebian-push baredebian-tarball gdr-diverge-nmu gdr-diverge-nmu-dgit gdr-edits gdr-fresh gdr-import-dgit gdr-import-dgitview gdr-import-nostitch gdr-makepatches7 gdr-merge gdr-subcommands gdr-unprocessable gdr-unprocessable-hints
 Tests-Directory: tests/tests
 Depends: dgit, dgit-infrastructure, devscripts, debhelper (>=8), fakeroot, build-essential, chiark-utils-bin, bc, faketime, git-debrebase, git-buildpackage
 
diff --git a/tests/tests/baredebian-tarball b/tests/tests/baredebian-tarball
new file mode 100755 (executable)
index 0000000..1ab5fce
--- /dev/null
@@ -0,0 +1,23 @@
+#!/bin/bash
+set -e
+. tests/lib
+. $troot/lib-baredebian
+
+t-dependencies GDR
+
+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