chiark / gitweb /
test suite: gdr-subcommands: Drop obsolete line
[dgit.git] / tests / tests / pbuilder
1 #!/bin/bash
2 set -e
3 . tests/lib
4
5 suitespecs+=' stable'
6
7 t-buildproductsdir-config
8
9 t-prep-newpackage example 1.0
10
11 cd $p
12
13 t-commit "make a commit" 1.1 stable
14
15 t-tstunt pbuilder
16
17 t-expect-fail "dgit: error: you asked for a builder but your debbuildopts didn't ask for any binaries -- is this really what you meant?" \
18 t-dgit -v0 --pbuilder="$troot/pretend-pbuilder" pbuilder -S
19
20 t-expect-fail "dgit: error: we must build a .dsc to pass to the builder but your debbuiltopts forbids the building of a source package; cannot continue" \
21 t-dgit -v0 --pbuilder="$troot/pretend-pbuilder" pbuilder -b
22
23 # it would be nice to try passing -g on the end of the following line
24 # to confirm it gets massaged into -A, but the example package is
25 # RC-buggy in that it doesn't build with -A ..
26 t-dgit -v0 --pbuilder="$troot/pretend-pbuilder" pbuilder
27
28 t-dgit -wgf push --new
29
30 t-pushed-good master stable
31 t-pushed-good-check-changes
32
33 # check we actually built binaries
34 t-push-included example_1.1_all.deb
35
36 # this purpose of this is to check that the _source.changes that was
37 # merged is the one that dgit made, not something pbuilder made (this
38 # works because the -v$v in the above is handled by dgit and not
39 # passed on to pbuilder)
40 grep -F "example (1.0)" $changes_filename
41
42 t-ok