chiark / gitweb /
test suite: tagupl-native: New test
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 6 Jul 2019 15:44:49 +0000 (16:44 +0100)
committerSean Whitton <spwhitton@spwhitton.name>
Sun, 7 Jul 2019 08:54:19 +0000 (09:54 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
debian/tests/control
tests/tests/tagupl-native [new file with mode: 0755]

index 30fba46acfc320b363e39529a3bb9d2c8a11466f..9bdce9d952708a683f558aa21e16e7c1b74eef3a 100644 (file)
@@ -68,6 +68,10 @@ Tests: tagupl
 Tests-Directory: tests/tests
 Depends: dgit, dgit-infrastructure, devscripts, debhelper (>=8), fakeroot, build-essential, chiark-utils-bin, bc, faketime, libdpkg-perl, libgit-wrapper-perl, liblist-compare-perl, libstring-shellquote-perl, libtry-tiny-perl, git-debpush
 
+Tests: tagupl-native
+Tests-Directory: tests/tests
+Depends: dgit, dgit-infrastructure, devscripts, debhelper (>=8), fakeroot, build-essential, chiark-utils-bin, bc, faketime, git-debpush
+
 Tests: test-list-uptodate
 Tests-Directory: tests/tests
 Depends: git
diff --git a/tests/tests/tagupl-native b/tests/tests/tagupl-native
new file mode 100755 (executable)
index 0000000..7d79f06
--- /dev/null
@@ -0,0 +1,32 @@
+#!/bin/bash
+set -e
+. tests/lib
+
+t-dependencies git-debpush
+
+t-debpolicy
+
+t-archive-none example
+t-git-none
+t-worktree 1.1
+
+v=1.0-1
+
+t-tagupl-settings
+
+cd $p
+git checkout -B master
+
+printf '%s\n' -sn >debian/source/options
+git add debian/source/options
+git rm -f debian/source/format
+git commit -m 'convert to 1.0 native'
+
+tagname=test-dummy/$v
+
+t-tagupl-test --no-push
+
+# xxx test pushing
+# todo: test each miss/rejection
+
+t-ok