blob: b0569c30b34deb551b45e772ef95557428dda919 (
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
33
34
35
36
37
38
|
#!/bin/bash
set -e
. tests/lib
t-tstunt-parsechangelog
t-prep-newpackage example 1.0
cd $p
revision=1
dgit-with-policy () {
local policy=$1; shift
t-dgit -cdgit-distro.test-dummy.source-only-uploads=$policy "$@"
}
t-expect-fail E:'source-only.*entirely NEW' \
dgit-with-policy not-wholly-new push-source --new
t-expect-fail E:'source-only.*requires \.debs' \
dgit-with-policy never push-source --new
dgit-with-policy always push-source --new
t-archive-process-incoming sid
t-commit 'Now with binaries'
t-dgit -wgf build
t-expect-fail E:'uploading binaries.*source only' \
dgit-with-policy always push --new
t-commit 'Source-only not NEW'
dgit-with-policy not-wholly-new push-source --new
t-ok
|