chiark / gitweb /
Merge remote-tracking branch 'spwhitton/wip.tutorials-new' into wip.tutorials
[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 test-push-1 () {
29         t-refs-same-start
30         t-ref-head
31 }
32
33 test-push-2 () {
34         t-dgit --quilt=gbp push
35
36         t-gbp-pushed-good
37 }
38
39 test-push-1
40
41 t-dgit --quilt=gbp --clean=git build-source
42
43 t-expect-fail "HEAD specifies a different tree to $p" \
44   t-dgit push
45
46 test-push-2
47
48 echo wombat >>debian/pointless-for-dgit-test
49 git add debian/pointless-for-dgit-test
50 git commit -m 'Pointless 2'
51
52 t-commit 'Check pseudomerge' 1.0-3
53
54 test-push-1
55
56 t-dgit --quilt=gbp --clean=git build-source
57
58 test-push-2
59
60 echo ok.