chiark / gitweb /
git-debrebase: test suite: gdr-import-dgit: extend
[dgit.git] / tests / tests / gdr-import-dgit
1 #!/bin/bash
2 set -e
3 . tests/lib
4
5 t-dependencies git-buildpackage libfile-fnmatch-perl
6
7 t-setup-import gbp2gdr
8
9 cd $p
10
11 : 'non-dgit upload (but we prepare it with dgit anyway)'
12
13 git checkout -b nmu
14
15 v=2.0-2+num1
16 t-dch-commit -v $v -m nmu
17
18 t-some-changes nmu
19
20 t-dch-commit -r sid
21
22 t-dgit -wgf build-source
23
24 cd ..
25 c=${p}_${v}_source.changes
26 debsign -kBCD22CD83243B79D3DFAC33EA3DBCBC039B13D8A $c
27 dput -c $tmp/dput.cf test-dummy $c
28
29 t-archive-process-incoming sid
30
31 : 'done the nmu, switching back to the maintainer hat'
32
33 cd $p
34 git checkout master
35 t-dgit pull
36
37 git diff --exit-code nmu
38
39 git branch t.before
40
41 t-git-debrebase
42 t-gdr-good laundered
43
44 t-git-debrebase stitch
45 t-gdr-good stitched
46
47 t-ok