chiark / gitweb /
test suite: push-source: new tests
[dgit.git] / tests / tests / push-source-with-changes
1 #!/bin/bash
2 set -e
3 . tests/lib
4
5 arch=$(dpkg-architecture -qDEB_BUILD_ARCH)
6
7 t-tstunt-parsechangelog
8
9 t-prep-newpackage example 1.0
10
11 cd $p
12
13 t-refs-same-start
14 t-ref-head
15
16 # (1) try pushing a changes file containing binaries
17
18 t-dgit --dpkg-buildpackage:-d build -F
19
20 t-expect-push-fail 'user-specified changes file is not source-only' \
21 t-dgit -C ../${p}_1.0_${arch}.changes push-source --new
22
23 # (2) try pushing a source-only changes file
24
25 t-dgit --dpkg-buildpackage:-d build-source
26 t-dgit -C ../${p}_1.0_source.changes push-source --new
27
28 t-pushed-good master
29 t-push-was-source-only
30
31 t-ok