chiark / gitweb /
test suite: tagupl: New test case for new dgit-repos-server mode
[dgit.git] / tests / tests / tagupl
1 #!/bin/bash
2 set -e
3 . tests/lib
4
5 t-dependencies DEBORIG
6
7 t-debpolicy
8
9 t-archive-none example
10 t-git-none
11 t-worktree 1.0
12
13 v=1.0-1
14
15 cd $p
16 git checkout --orphan upstream quilt-tip-2
17 git rm -rf debian
18 git commit -m 'pseudo-upstream'
19 git tag upstream/1.0
20
21 git checkout -B master quilt-tip-2
22
23 #git-deborig
24 #t-dgit --quilt=gbp --dgit-view-save=split.b1 push-source --new --overwrite
25 #xxx
26
27 upstream=$(git rev-parse upstream/1.0~0)
28
29 tagmessage="example release 1.0-1 for unstable
30
31 wibble wibble
32
33 [dgit distro=test-dummy split --quilt=gbp]
34 [dgit please-upload upstream-tag=upstream/1.0 upstream=$upstream]"
35
36 tagname=test-dummy/$v
37
38 git tag -u Senatus  -s -m "$tagmessage" $tagname
39
40 cd ..
41 mkdir tagupl
42 cd tagupl
43
44 export DGIT_DRS_EMAIL_NOREPLY=noreply@example.org
45 export DGIT_DRS_SENDMAIL=$troot/tstunt/sendmail
46 export DGIT_DRS_DGIT=$troot/tstunt/dgit
47 t-chain-test-somehow
48
49 DGIT_DRS_ANY_URL=1 \
50 DGIT_DRS_MODE="tag2upload $tmp/$p $tagname" \
51  $troot/drs-git-ext 
52
53 # todo: test each miss/rejection
54
55 cd $tmp/$p
56
57 t-dgit fetch
58 t-pushed-good master
59
60 t-ok