chiark / gitweb /
27dd973d7c0259911c01e930278429e16c99d1c3
[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 #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 tagname=test-dummy/$v
29
30 ${DGIT_DEBPUSH_TEST-git debpush} \
31         --distro=test-dummy --quilt=gbp --no-push -u Senatus
32
33 # xxx test pushing
34
35 cd ..
36 mkdir tagupl
37 cd tagupl
38
39 export DGIT_DRS_EMAIL_NOREPLY=noreply@example.org
40 export DGIT_DRS_SENDMAIL=$troot/tstunt/sendmail
41 export DGIT_DRS_DGIT=$troot/tstunt/dgit
42 t-chain-test-somehow
43
44 DGIT_DRS_ANY_URL=1 \
45 DGIT_DRS_MODE="tag2upload $tmp/$p $tagname" \
46  $troot/drs-git-ext 
47
48 # todo: test each miss/rejection
49
50 cd $tmp/$p
51
52 t-dgit fetch
53 t-pushed-good master
54
55 t-ok