chiark / gitweb /
Test suite: Rename mismatches-dscchanges
[dgit.git] / tests / tests / quilt-gbp
1 #!/bin/bash
2 set -e
3 . tests/lib
4
5 t-tstunt-parsechangelog
6
7 t-gbp-example-prep
8
9 t-expect-fail 'quilt fixup cannot be linear' \
10   t-dgit build-source
11
12 t-git-config dgit-distro.test-dummy.dgit-tag-format new
13 t-expect-fail 'requires split view so server needs to support' \
14 t-dgit -wgf --quilt=gbp build-source
15 t-newtag
16
17 t-dgit --quilt=gbp build-source
18
19 t-dgit --quilt=gbp --gbp-pq=no-such-command-gbp build-source
20
21 echo spong >debian/pointless-for-dgit-test
22 git add debian/pointless-for-dgit-test
23 git commit -m Pointless
24
25 t-expect-fail no-such-command-gbp \
26 t-dgit --quilt=gbp --clean=git --gbp-pq=no-such-command-gbp build-source
27
28 t-dgit --quilt=gbp --clean=git build-source
29
30 t-expect-fail 'specifies a different tree to your HEAD commit' \
31   t-dgit push
32
33 test-push () {
34         t-refs-same-start
35         t-ref-head
36
37         t-dgit --quilt=gbp push
38
39         t-gbp-pushed-good
40 }
41
42 test-push
43
44 echo wombat >>debian/pointless-for-dgit-test
45 git add debian/pointless-for-dgit-test
46 git commit -m 'Pointless 2'
47
48 t-commit 'Check pseudomerge' 1.0-3
49
50 t-dgit --quilt=gbp --clean=git build-source
51
52 test-push
53
54 echo ok.