chiark / gitweb /
badcommit-fixup: Merge from a filtered view of my personal playground
[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 --dgit-view-save=split.b1 build-source
18 git rev-parse split.b1
19
20 t-dgit --quilt=gbp --gbp-pq=no-such-command-gbp build-source
21
22 echo spong >debian/pointless-for-dgit-test
23 git add debian/pointless-for-dgit-test
24 git commit -m Pointless
25
26 t-expect-fail no-such-command-gbp \
27 t-dgit --quilt=gbp --clean=git --gbp-pq=no-such-command-gbp build-source
28
29 test-push-1 () {
30         t-refs-same-start
31         t-ref-head
32 }
33
34 test-push-2 () {
35         t-dgit --quilt=gbp --dgit-view-save=split.p push
36
37         t-gbp-pushed-good
38 }
39
40 test-push-1
41
42 t-dgit --quilt=gbp --clean=git --dgit-view-save=split.b build-source
43
44 t-expect-fail "HEAD specifies a different tree to $p" \
45   t-dgit push
46
47 test-push-2
48
49 echo wombat >>debian/pointless-for-dgit-test
50 git add debian/pointless-for-dgit-test
51 git commit -m 'Pointless 2'
52
53 t-commit 'Check pseudomerge' 1.0-3
54
55 test-push-1
56
57 t-dgit --quilt=gbp --clean=git --dgit-view-save=split.b build-source
58
59 test-push-2
60
61 t-ok