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
33 t-expect-fail "upstream tag $upstreamtag is not an ancestor of refs/heads/master" \
34 t-tagupl-test --quilt=gbp --force=suite --force=no-such-force-option --upstream=$upstreamtag
36 t-tagupl-test --quilt=gbp --force=suite --force=no-such-force-option-1 \
37 --force=upstream-nonancestor,no-such-force-option-2 \
38 --upstream=$upstreamtag
41 # todo: test each miss/rejection
45 git cat-file tag $tagname >../basetag
64 mv-ident tagupl/overall.log
71 perl <../basetag >../badtag-$ident -pe "$perl"
72 git tag -u Senatus -f -s -m "$(cat ../badtag-$ident)" "$tagname"
75 t-tagupl-run-drs $tmp/$p
83 egrep ": $mregexp" ../tagupl/overall.log
91 egrep 'Was not successful' ../sendmail.log
92 egrep "$mregexp" ../sendmail.log
93 egrep ": failed, emailed" ../tagupl/overall.log
97 git update-ref refs/tags/$tagname \
98 $(git hash-object -w -t tag ../tagobj-$ident)
99 t-tagupl-run-drs $tmp/$p
102 tagname=test-dummy/1.2
103 t-expect-fail E:'failed command: git fetch' \
104 t-tagupl-run-drs $tmp/$p
106 tagname=splorf/$v ; expect-quit baddistro '' 'tag name not for us'
107 tagname=test-dummy/1,2; expect-quit badver '' 'tag name not for us'
108 tagname=test-dummy/$v
110 expect-quit noplease s/please-upload/plunk/ 'tag missing please-upload'
112 expect-email vermatch 's/^example release /$&3/' 'reject: version mismatch'
114 expect-email unkinfo 's/^\[dgit please-upload/$& Rejectme/' \
115 'unknown dgit info in tag'
117 expect-quit unkdistro 's/test-dummy/ubuntu/ if m/^\[dgit/' \
118 'not for this distro'
120 expect-email notsplit 's/ split / no-split /' 'reject: missing "split"'
122 expect-email upsnot1 's/ upstream=/ uxstream=/' \
123 'reject: upstream tag and not commitish'
125 expect-email upsnot2 's/ upstream-tag=/ uxstream-tag=/' \
126 'reject: upstream tag and not commitish'
128 expect-email bupstag1 's/ upstream-tag=/$&:/' \
129 "failed command: git check-ref-format"
131 expect-email bupstag2 's/ upstream-tag=/$&x/' \
132 "[Cc]ouldn't find remote ref refs/tags/xUPSTREAM"
134 expect-email wrongver '' 'mismatch: changelog Version'
138 t-dch-commit -v $v -m bump
140 expect-email upsmism 's/ upstream=/$&3/' \
143 expect-email wrongpkg 's/^example /explosive /' 'mismatch: changelog Source'
145 # we are going to trash $p because it will contain corrupted objects
146 # which makes our end-of-test fsck fail
147 cp -al ../$p ../$p.save
150 git cat-file tag $tagname >../raw-base
153 perl -pe <../raw-base >../tagobj-$ident 's/ split / split ignoreme /'
155 grep 'gpgv: BAD signature' ../sendmail.log
158 perl -ne <../raw-base >../tagobj-$ident 'print unless m/^-----/..0'
160 grep 'missing signature' ../sendmail.log
162 git cat-file tag test-dummy/1.0-1 >../raw-base
164 next-mangle badtagger
165 perl -pe <../raw-base '
166 s/\+\d+$/xyz/ if m/^tagger /;
169 echo >>../tagobj-$ident
170 cat ../basetag >>../tagobj-$ident
172 grep 'failed to fish tagger out of tag' ../tagupl/overall.log