chiark / gitweb /
Test suite: Provide t-setup-* machinery
[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 t-dgit --quilt=gbp push
27
28 exit 0
29
30 ===
31
32 want to
33
34  t-pushed-good XXX need to do something more subtle than check our branch is in repo now
35
36  check that
37    - we didn't update caller's branch
38
39  do fetch
40  check that this didn't update dgit remote ref
41
42  check that Dgit hash in dsc refers to tree identical
43  to dpkg-source -x
44
45  check that that tree
46   - has patches applied (reuse rules build magic)
47   - has .gitignore edited
48
49 make a new change
50
51 push it
52
53 check that the synthetic fast forward worked