chiark / gitweb /
Test suite: Test that we pass correct -v to genchanges
[dgit.git] / tests / tests / version-opt
diff --git a/tests/tests/version-opt b/tests/tests/version-opt
new file mode 100755 (executable)
index 0000000..93c6a45
--- /dev/null
@@ -0,0 +1,32 @@
+#!/bin/bash
+set -e
+. tests/lib
+
+# NOT t-tstunt-parsechangelog
+# because that doesn't honour the perl option corresponding to -v
+
+t-debpolicy
+t-prep-newpackage example 1.0
+
+cd $p
+revision=1
+git tag start
+t-dgit setup-mergechangelogs
+
+t-dgit build-source
+t-dgit push --new
+
+t-archive-process-incoming sid
+
+for v in 1.1 1.2; do
+       dch -v $v -D unstable -m "Update to version $v"
+
+       git add debian/changelog
+       git commit -m "Commit changelog for $v"
+
+       t-dgit build-source
+done
+
+fgrep 'Update to version 1.1' ../${p}_${v}_source.changes
+
+echo ok.