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