chiark / gitweb /
Test suite: oldnewtagalt: New test
[dgit.git] / tests / tests / oldnewtagalt
diff --git a/tests/tests/oldnewtagalt b/tests/tests/oldnewtagalt
new file mode 100755 (executable)
index 0000000..cb270b2
--- /dev/null
@@ -0,0 +1,25 @@
+#!/bin/bash
+set -e
+. tests/lib
+
+t-setup-import examplegit
+t-tstunt-parsechangelog
+
+cd $p
+
+test-push () {
+       t-commit "$1"
+       t-dgit build-source
+       t-dgit push
+}
+
+for count in 1 2; do
+       t-oldtag
+       test-push "oldtag $count"
+
+       t-newtag
+       test-push "newtag $count"
+done
+
+echo ok.
+