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
28 git commit -m"corrupt the upstream source to test upstream-nonidentical check"
34 t-expect-fail "the upstream source in tag $upstreamtag is not identical to the upstream source in refs/heads/master" \
35 t-tagupl-test --quilt=gbp --upstream=$upstreamtag
37 git reset --hard HEAD~1
39 t-expect-fail "upstream tag $upstreamtag is not an ancestor of refs/heads/master" \
40 t-tagupl-test --quilt=gbp --upstream=$upstreamtag
42 t-expect-fail "upstream tag $upstreamtag is not an ancestor of refs/heads/master" \
43 t-tagupl-test --quilt=gbp --force=suite --force=no-such-force-option --upstream=$upstreamtag
45 t-tagupl-test --quilt=gbp --force=suite --force=no-such-force-option-1 \
46 --force=upstream-nonancestor,no-such-force-option-2 \
47 --upstream=$upstreamtag
50 # todo: test each miss/rejection
54 git cat-file tag $tagname >../basetag
73 mv-ident tagupl/overall.log
80 perl <../basetag >../badtag-$ident -pe "$perl"
81 git tag -u Senatus -f -s -m "$(cat ../badtag-$ident)" "$tagname"
84 t-tagupl-run-drs $tmp/$p
92 egrep ": $mregexp" ../tagupl/overall.log
100 egrep 'Was not successful' ../sendmail.log
101 egrep "$mregexp" ../sendmail.log
102 egrep ": failed, emailed" ../tagupl/overall.log
106 git update-ref refs/tags/$tagname \
107 $(git hash-object -w -t tag ../tagobj-$ident)
108 t-tagupl-run-drs $tmp/$p
111 tagname=test-dummy/1.2
112 t-expect-fail E:'failed command: git fetch' \
113 t-tagupl-run-drs $tmp/$p
115 tagname=splorf/$v ; expect-quit baddistro '' 'tag name not for us'
116 tagname=test-dummy/1,2; expect-quit badver '' 'tag name not for us'
117 tagname=test-dummy/$v
119 expect-quit noplease s/please-upload/plunk/ 'tag missing please-upload'
121 expect-email vermatch 's/^example release /$&3/' 'reject: version mismatch'
123 expect-email unkinfo 's/^\[dgit please-upload/$& Rejectme/' \
124 'unknown dgit info in tag'
126 expect-quit unkdistro 's/test-dummy/ubuntu/ if m/^\[dgit/' \
127 'not for this distro'
129 expect-email notsplit 's/ split / no-split /' 'reject: missing "split"'
131 expect-email upsnot1 's/ upstream=/ uxstream=/' \
132 'reject: upstream tag and not commitish'
134 expect-email upsnot2 's/ upstream-tag=/ uxstream-tag=/' \
135 'reject: upstream tag and not commitish'
137 expect-email bupstag1 's/ upstream-tag=/$&:/' \
138 "failed command: git check-ref-format"
140 expect-email bupstag2 's/ upstream-tag=/$&x/' \
141 "[Cc]ouldn't find remote ref refs/tags/xUPSTREAM"
143 expect-email wrongver '' 'mismatch: changelog Version'
147 t-dch-commit -v $v -m bump
149 expect-email upsmism 's/ upstream=/$&3/' \
152 expect-email wrongpkg 's/^example /explosive /' 'mismatch: changelog Source'
154 # we are going to trash $p because it will contain corrupted objects
155 # which makes our end-of-test fsck fail
156 cp -al ../$p ../$p.save
159 git cat-file tag $tagname >../raw-base
162 perl -pe <../raw-base >../tagobj-$ident 's/ split / split ignoreme /'
164 grep 'gpgv: BAD signature' ../sendmail.log
167 perl -ne <../raw-base >../tagobj-$ident 'print unless m/^-----/..0'
169 grep 'missing signature' ../sendmail.log
171 git cat-file tag test-dummy/1.0-1 >../raw-base
173 next-mangle badtagger
174 perl -pe <../raw-base '
175 s/\+\d+$/xyz/ if m/^tagger /;
178 echo >>../tagobj-$ident
179 cat ../basetag >>../tagobj-$ident
181 grep 'failed to fish tagger out of tag' ../tagupl/overall.log