5 t-dependencies DEBORIG git-debpush
16 git checkout -b native
18 git checkout --orphan upstream quilt-tip-2
20 git commit -m 'pseudo-upstream'
21 upstreamtag=UPSTREAM/RELEASE/1.0
24 git checkout -B master quilt-tip-2
30 t-expect-fail "upstream tag $upstreamtag is not an ancestor of refs/heads/master" \
31 t-tagupl-test --quilt=gbp --upstream=$upstreamtag
32 t-tagupl-test --quilt=gbp --force --upstream=$upstreamtag
35 # todo: test each miss/rejection
39 git cat-file tag $tagname >../basetag
58 mv-ident tagupl/overall.log
65 perl <../basetag >../badtag-$ident -pe "$perl"
66 git tag -u Senatus -f -s -m "$(cat ../badtag-$ident)" "$tagname"
68 t-tagupl-run-drs $tmp/$p
76 grep ": $mstring" ../tagupl/overall.log
84 grep 'Was not successful' ../sendmail.log
85 grep "$mstring" ../sendmail.log
86 grep ": failed, emailed" ../tagupl/overall.log
90 git update-ref refs/tags/$tagname \
91 $(git hash-object -w -t tag ../tagobj-$ident)
92 t-tagupl-run-drs $tmp/$p
95 tagname=test-dummy/1.2
96 t-expect-fail E:'failed command: git fetch' \
97 t-tagupl-run-drs $tmp/$p
99 tagname=splorf/$v ; expect-quit baddistro '' 'tag name not for us'
100 tagname=test-dummy/1,2; expect-quit badver '' 'tag name not for us'
101 tagname=test-dummy/$v
103 expect-quit noplease s/please-upload/plunk/ 'tag missing please-upload'
105 expect-email vermatch 's/^example release /$&3/' 'reject: version mismatch'
107 expect-email unkinfo 's/^\[dgit please-upload/$& Rejectme/' \
108 'unknown dgit info in tag'
110 expect-quit unkdistro 's/test-dummy/ubuntu/ if m/^\[dgit/' \
111 'not for this distro'
113 expect-email notsplit 's/ split / no-split /' 'reject: missing "split"'
115 expect-email upsnot1 's/ upstream=/ uxstream=/' \
116 'reject: upstream tag and not commitish'
118 expect-email upsnot2 's/ upstream-tag=/ uxstream-tag=/' \
119 'reject: upstream tag and not commitish'
121 expect-email bupstag1 's/ upstream-tag=/$&:/' \
122 "failed command: git check-ref-format"
124 expect-email bupstag2 's/ upstream-tag=/$&x/' \
125 "Couldn't find remote ref refs/tags/xUPSTREAM"
127 expect-email wrongver '' 'mismatch: changelog Version'
131 t-dch-commit -v $v -m bump
133 expect-email upsmism 's/ upstream=/$&3/' \
136 expect-email wrongpkg 's/^example /explosive /' 'mismatch: changelog Source'
138 # we are going to trash $p because it will contain corrupted objects
139 # which makes our end-of-test fsck fail
140 cp -al ../$p ../$p.save
143 git cat-file tag $tagname >../raw-base
146 perl -pe <../raw-base >../tagobj-$ident 's/ split / split ignoreme /'
148 grep 'gpgv: BAD signature' ../sendmail.log
151 perl -ne <../raw-base >../tagobj-$ident 'print unless m/^-----/..0'
153 grep 'missing signature' ../sendmail.log
155 git cat-file tag test-dummy/1.0-1 >../raw-base
157 next-mangle badtagger
158 perl -pe <../raw-base '
159 s/\+\d+$/xyz/ if m/^tagger /;
162 echo >>../tagobj-$ident
163 cat ../basetag >>../tagobj-$ident
165 grep 'failed to fish tagger out of tag' ../tagupl/overall.log