chiark / gitweb /
test suite: Check that archive skew machinery succeeds
[dgit.git] / tests / tests / forcesplit-overwrite
1 #!/bin/bash
2 set -e
3 . tests/lib
4
5 # This tests a native package with split view, including that the
6 # pseudomerges end up in the right place.
7
8 t-setup-import examplegit
9
10 cd $p
11
12 suite=stable
13
14 t-commit 'No changes, just send to stable' '' stable
15
16 t-refs-same-start
17 t-ref-head
18
19 try () {
20         t-dgit -wgf --split-view "$@" --dgit-view-save=split.p \
21                 push-source stable
22 }
23
24 t-expect-fail E:'maintainer view tag.*not fast forward' \
25 try
26
27 t-expect-fail F:'debian/changelog does not mention 1.2' \
28 try --overwrite
29
30 try --overwrite=1.2
31 git branch -f split.b split.p
32
33 t-ref-head
34 t-split-unchanged-pushed-good $suite
35
36 t-ok