chiark / gitweb /
Merge branch 'buster'
[dgit.git] / tests / tests / forcesplit-overwrite
index 0afb5cedbee7301782cfc9f2612fb956791d01c6..9600d3a8887d1d424e4b65e1562fc2172c82db2c 100755 (executable)
@@ -2,14 +2,36 @@
 set -e
 . tests/lib
 
+# This tests a native package with split view, including that the
+# pseudomerges end up in the right place.
+
 t-setup-import examplegit
 
+t-select-package example
 cd example
 
 suite=stable
 
 t-commit 'No changes, just send to stable' '' stable
 
-t-dgit -wgf --split-view --overwrite=1.2 push-source stable
+t-refs-same-start
+t-ref-head
+
+try () {
+       t-dgit -wgf --split-view "$@" --dgit-view-save=split.p \
+               push-source stable
+}
+
+t-expect-fail E:'maintainer view tag.*not fast forward' \
+try
+
+t-expect-fail F:'debian/changelog does not mention 1.2' \
+try --overwrite
+
+try --overwrite=1.2
+git branch -f split.b split.p
+
+t-ref-head
+t-split-unchanged-pushed-good $suite
 
 t-ok