summaryrefslogtreecommitdiff
path: root/tests/tests/push-source-with-changes
blob: f15ef30038597b272f496e255cf2799481f4e952 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/bash
set -e
. tests/lib

t-tstunt-parsechangelog

t-prep-newpackage example 1.0

cd $p

t-refs-same-start
t-ref-head

# (1) try pushing a changes file containing binaries

t-dgit --dpkg-buildpackage:-d build -F

t-expect-push-fail 'user-specified changes file is not source-only' \
t-dgit -C ../${p}_1.0_multi.changes push-source --new

# (2) try pushing a source-only changes file

t-expect-fail F:'tree contains uncommitted files' \
t-dgit --dpkg-buildpackage:-d build-source

t-dgit -wddn --dpkg-buildpackage:-d build-source
t-dgit -C ../${p}_1.0_source.changes push-source --new

t-pushed-good master
t-push-was-source-only

t-ok