chiark / gitweb /
dgit: Test suite: quilt-gbp test: More
[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-dgit --quilt=gbp build-source
13
14 t-dgit --quilt=gbp --gbp=no-such-command-gbp build-source
15
16 echo spong >debian/pointless-for-dgit-test
17 git add debian/pointless-for-dgit-test
18 git commit -m Pointless
19
20 t-expect-fail no-such-command-gbp \
21 t-dgit --quilt=gbp --clean=git --gbp=no-such-command-gbp build-source
22
23 t-dgit --quilt=gbp --clean=git build-source
24
25 t-expect-fail 'specifies a different tree to your HEAD commit' \
26   t-dgit push
27
28 t-refs-same-start
29 t-ref-head
30
31 t-dgit --quilt=gbp push
32
33 t-ref-head
34
35 exit 0
36
37 ===
38
39 want to
40
41  t-pushed-good XXX need to do something more subtle than check our branch is in repo now:
42
43     # check that:
44     # working tree is still clean
45     # DEP-14 tag refers to our HEAD, unchanged
46     # New dgit tag refers to a descendant
47     # New dgit tag and archive tag and .dsc hash are same
48     # dgit tree can be made by
49     #    - dpkg-source -x on the pushed .dsc
50     #    - modulo .pc
51     # Maintainer tree can be made by
52     #    - dpkg-source -x --skip-patches on the pushed .dsc
53     #    - deleting any auto-gitignore patch and removing it from series
54     #    - modulo .pc
55     # dgit tree can be made by
56     #    - as above, and then dpkg-source --before-build
57     #    - modulo .pc and non-debian/ .gitignores
58
59 make a new change
60
61 push it
62
63 check that the synthetic fast forward worked