chiark / gitweb /
test suite: Test dgit-mirror-ssh-wrap
[dgit.git] / tests / tests / gdr-import-dgit
1 #!/bin/bash
2 set -e
3 . tests/lib
4
5 t-dependencies GDR
6
7 t-tstunt-parsechangelog
8 t-setup-import gdr-convert-gbp
9 t-setup-import http-git-check
10
11 cd $p
12
13 : 'non-dgit upload (but we prepare it with dgit anyway)'
14
15 v=2.0-2+nmu1
16 t-nmu-upload-1 nmu
17 gbp pq import
18 t-nmu-upload-2
19 t-some-changes $numbranch
20 t-nmu-upload-3
21
22 : 'done the nmu, switching back to the maintainer hat'
23
24 nmu-fold () {
25         t-git-next-date
26         t-dgit fetch
27         t-git-next-date
28         git merge --ff-only dgit/dgit/sid
29
30         git diff --exit-code patch-queue/$nmubranch
31
32         git branch unlaundered.$nmubranch
33
34         t-git-debrebase
35         t-gdr-good laundered
36
37         t-git-debrebase stitch
38         t-gdr-good stitched
39 }
40
41 nmu-fold
42
43 v=2.0-3
44 t-dch-commit -v $v -m "incorporate nmu"
45 t-dch-commit-r
46 t-dgit -wgf push-source
47
48 : 'now test a new upstream'
49
50 t-make-new-upstream-tarball 2.1
51
52 git checkout master
53 v=2.1-0+nmu1
54 t-nmu-upload-1 nmu2
55
56 gbp import-orig --upstream-version=2.1 --debian-branch=nmu2 ../$ust
57 t-dch-commit -v $v -m "new upstream $v"
58 gbp pq import
59
60 #t-dgit -wgf build-source
61
62 t-nmu-upload-2
63 t-some-changes $numbranch
64 t-nmu-upload-3
65
66 : 'done the nmu, back to the maintainer'
67
68 nmu-fold
69
70 t-ok