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"
69 t-tagupl-run-drs $tmp/$p
77 egrep ": $mregexp" ../tagupl/overall.log
85 egrep 'Was not successful' ../sendmail.log
86 egrep "$mregexp" ../sendmail.log
87 egrep ": failed, emailed" ../tagupl/overall.log
91 git update-ref refs/tags/$tagname \
92 $(git hash-object -w -t tag ../tagobj-$ident)
93 t-tagupl-run-drs $tmp/$p
96 tagname=test-dummy/1.2
97 t-expect-fail E:'failed command: git fetch' \
98 t-tagupl-run-drs $tmp/$p
100 tagname=splorf/$v ; expect-quit baddistro '' 'tag name not for us'
101 tagname=test-dummy/1,2; expect-quit badver '' 'tag name not for us'
102 tagname=test-dummy/$v
104 expect-quit noplease s/please-upload/plunk/ 'tag missing please-upload'
106 expect-email vermatch 's/^example release /$&3/' 'reject: version mismatch'
108 expect-email unkinfo 's/^\[dgit please-upload/$& Rejectme/' \
109 'unknown dgit info in tag'
111 expect-quit unkdistro 's/test-dummy/ubuntu/ if m/^\[dgit/' \
112 'not for this distro'
114 expect-email notsplit 's/ split / no-split /' 'reject: missing "split"'
116 expect-email upsnot1 's/ upstream=/ uxstream=/' \
117 'reject: upstream tag and not commitish'
119 expect-email upsnot2 's/ upstream-tag=/ uxstream-tag=/' \
120 'reject: upstream tag and not commitish'
122 expect-email bupstag1 's/ upstream-tag=/$&:/' \
123 "failed command: git check-ref-format"
125 expect-email bupstag2 's/ upstream-tag=/$&x/' \
126 "[Cc]ouldn't find remote ref refs/tags/xUPSTREAM"
128 expect-email wrongver '' 'mismatch: changelog Version'
132 t-dch-commit -v $v -m bump
134 expect-email upsmism 's/ upstream=/$&3/' \
137 expect-email wrongpkg 's/^example /explosive /' 'mismatch: changelog Source'
139 # we are going to trash $p because it will contain corrupted objects
140 # which makes our end-of-test fsck fail
141 cp -al ../$p ../$p.save
144 git cat-file tag $tagname >../raw-base
147 perl -pe <../raw-base >../tagobj-$ident 's/ split / split ignoreme /'
149 grep 'gpgv: BAD signature' ../sendmail.log
152 perl -ne <../raw-base >../tagobj-$ident 'print unless m/^-----/..0'
154 grep 'missing signature' ../sendmail.log
156 git cat-file tag test-dummy/1.0-1 >../raw-base
158 next-mangle badtagger
159 perl -pe <../raw-base '
160 s/\+\d+$/xyz/ if m/^tagger /;
163 echo >>../tagobj-$ident
164 cat ../basetag >>../tagobj-$ident
166 grep 'failed to fish tagger out of tag' ../tagupl/overall.log