summaryrefslogtreecommitdiff
path: root/tests/tests/tagupl
blob: 8e0fc8d91c6c6cdab098cd977ebcc6087045ffe9 (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#!/bin/bash
set -e
. tests/lib

t-dependencies DEBORIG

t-debpolicy

t-archive-none example
t-git-none
t-worktree 1.0

v=1.0-1

cd $p
git checkout --orphan upstream quilt-tip-2
git rm -rf debian
git commit -m 'pseudo-upstream'
git tag upstream/1.0

git checkout -B master quilt-tip-2

#git-deborig
#t-dgit --quilt=gbp --dgit-view-save=split.b1 push-source --new --overwrite
#xxx

upstream=$(git rev-parse upstream/1.0~0)

tagmessage="example release 1.0-1 for unstable

wibble wibble

[dgit distro=test-dummy split --quilt=gbp]
[dgit please-upload upstream-tag=upstream/1.0 upstream=$upstream]"

tagname=test-dummy/$v

git tag -u Senatus  -s -m "$tagmessage" $tagname

cd ..
mkdir tagupl
cd tagupl

export DGIT_DRS_EMAIL_NOREPLY=noreply@example.org
export DGIT_DRS_SENDMAIL=$troot/tstunt/sendmail
export DGIT_DRS_DGIT=$troot/tstunt/dgit
t-chain-test-somehow

DGIT_DRS_ANY_URL=1 \
DGIT_DRS_MODE="tag2upload $tmp/$p $tagname" \
 $troot/drs-git-ext 

# todo: test each miss/rejection

cd $tmp/$p

t-dgit fetch
t-pushed-good master

t-ok