chiark / gitweb /
test suite: baredebian: Break out baredebian-test-minimum
[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 t-select-package example
11 cd example
12
13 suite=stable
14
15 t-commit 'No changes, just send to stable' '' stable
16
17 t-refs-same-start
18 t-ref-head
19
20 try () {
21         t-dgit -wgf --split-view "$@" --dgit-view-save=split.p \
22                 push-source stable
23 }
24
25 t-expect-fail E:'maintainer view tag.*not fast forward' \
26 try
27
28 t-expect-fail F:'debian/changelog does not mention 1.2' \
29 try --overwrite
30
31 try --overwrite=1.2
32 git branch -f split.b split.p
33
34 t-ref-head
35 t-split-unchanged-pushed-good $suite
36
37 t-ok