chiark / gitweb /
changelog: start 9.14
[dgit.git] / tests / tests / gbp-orig
1 #!/bin/bash
2 set -e
3 . tests/lib
4
5 t-setup-import gbp
6
7 cd $p
8
9 t-tstunt-parsechangelog
10 t-tstunt-debuild
11 t-tstunt-lintian
12
13 : '----- let gbp build a .orig for comparison -----'
14
15 gbp buildpackage --git-no-sign-tags -us -uc
16
17 mkdir ../gbp-output
18 mv ../*1.0* ../gbp-output/.
19 rm -f ../*.changes
20
21 : '----- now do it ourselves -----'
22
23 t-dgit -wgf --dgit-view-save=split.b gbp-build --git-ignore-branch
24
25 t-dgit -wgf --quilt=gbp clean # gbp leaves dirty trees :-/
26
27 t-dgit -wgf --dgit-view-save=split.p --quilt=gbp push --new
28
29 t-gbp-pushed-good
30
31 : '----- check .origs are the same -----'
32
33 # if gbp weren't weird about .gitignore we could just debdiff the .dscs
34
35 for d in . gbp-output; do
36         cd $tmp/$d
37         mkdir tar-x
38         cd tar-x
39         tar zxf ../${p}_${v%-*}.orig.tar.gz
40 done
41
42 cd $tmp
43 diff -ruN gbp-output/tar-x tar-x
44
45 t-ok