chiark / gitweb /
c53367f49daa367a4f2dcb2a22fc906c9b5448d7
[dgit.git] / tests / tests / tagupl
1 #!/bin/bash
2 set -e
3 . tests/lib
4
5 t-dependencies DEBORIG git-debpush
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 upstream=$(git rev-parse upstream/1.0~0)
24 tagname=test-dummy/$v
25
26 ${DGIT_DEBPUSH_TEST-git debpush} \
27         --distro=test-dummy --quilt=gbp --no-push -u Senatus
28
29 # xxx test pushing
30
31 cd ..
32 mkdir tagupl
33 cd tagupl
34
35 export DGIT_DRS_EMAIL_NOREPLY=noreply@example.org
36 export DGIT_DRS_SENDMAIL=$troot/tstunt/sendmail
37 export DGIT_DRS_DGIT=$troot/tstunt/dgit
38 t-chain-test-somehow
39
40 DGIT_DRS_ANY_URL=1 \
41 DGIT_DRS_MODE="tag2upload $tmp/$p $tagname" \
42  $troot/drs-git-ext 
43
44 # todo: test each miss/rejection
45
46 cd $tmp/$p
47
48 t-dgit fetch
49 t-pushed-good master
50
51 t-ok