chiark / gitweb /
d3624e9ee6f5183350b10a586c3beab2724513b1
[dgit.git] / tests / tests / quilt-gbp
1 #!/bin/bash
2 set -e
3 . tests/lib
4
5 t-gbp-example-prep
6
7 t-expect-fail 'quilt fixup cannot be linear' \
8   t-dgit build-source
9
10 t-dgit --quilt=gbp build-source
11
12 t-dgit --quilt=gbp --gbp=no-such-command-gbp build-source
13
14 echo spong >debian/pointless-for-dgit-test
15 git add debian/pointless-for-dgit-test
16 git commit -m Pointless
17
18 t-expect-fail no-such-command-gbp \
19 t-dgit --quilt=gbp --clean=git --gbp=no-such-command-gbp build-source
20
21 t-dgit --quilt=gbp --clean=git build-source
22
23 t-expect-fail 'specifies a different tree to your HEAD commit' \
24   t-dgit push
25
26 exit 0
27
28 ===
29
30 want to
31
32  do push
33  t-pushed-good
34  check that
35    - we didn't update caller's branch
36
37  do fetch
38  check that this didn't update dgit remote ref
39
40  check that Dgit hash in dsc refers to tree identical
41  to dpkg-source -x
42
43  check that that tree
44   - has patches applied (reuse rules build magic)
45   - has .gitignore edited
46