chiark / gitweb /
Split brain: TODOs
[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 XXX need to do something more subtle than check our branch is in repo now
34
35  check that
36    - we didn't update caller's branch
37
38  do fetch
39  check that this didn't update dgit remote ref
40
41  check that Dgit hash in dsc refers to tree identical
42  to dpkg-source -x
43
44  check that that tree
45   - has patches applied (reuse rules build magic)
46   - has .gitignore edited
47
48 make a new change
49
50 push it
51
52 check that the synthetic fast forward worked