chiark / gitweb /
2d77d43017e33d33a49e4e25241720c326253d6e
[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 gdr-convert-gbp
8
9 cd $p
10
11 : 'non-dgit upload (but we prepare it with dgit anyway)'
12
13 git checkout -b nmu
14
15 nmu-upload () {
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
32 v=2.0-2+num1
33 nmu-upload
34
35 : 'done the nmu, switching back to the maintainer hat'
36
37 cd $p
38 git checkout master
39 t-dgit fetch
40 git merge --ff-only dgit/dgit/sid
41
42 git diff --exit-code nmu
43
44 git branch t.before
45
46 t-git-debrebase
47 t-gdr-good laundered
48
49 t-git-debrebase stitch
50 t-gdr-good stitched
51
52 t-ok