chiark / gitweb /
test suite: Drop all testing of old tag formats, and compatibility
[dgit.git] / tests / tests / push-source-with-changes
1 #!/bin/bash
2 set -e
3 . tests/lib
4
5 t-tstunt-parsechangelog
6
7 t-prep-newpackage example 1.0
8
9 cd $p
10
11 t-refs-same-start
12 t-ref-head
13
14 # (1) try pushing a changes file containing binaries
15
16 t-dgit build -F
17
18 t-expect-push-fail 'user-specified changes file is not source-only' \
19 t-dgit -C ../${p}_1.0_multi.changes push-source --new
20
21 # (2) try pushing a source-only changes file
22
23 t-expect-fail F:'tree contains uncommitted files' \
24 t-dgit build-source
25
26 cp debian/rules{,~}
27 git clean -df
28 ls debian/rules~
29
30 t-expect-fail F:'tree contains uncommitted files' \
31 t-dgit -wdda build-source
32
33 t-dgit build-source
34 t-dgit -C ../${p}_1.0_source.changes push-source --new
35
36 t-pushed-good master
37 t-push-was-source-only
38
39 t-ok