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-tagupl-test --quilt=gbp --upstream=$upstreamtag
33 # todo: test each miss/rejection
37 git cat-file tag $tagname >../basetag
56 mv-ident tagupl/overall.log
63 perl <../basetag >../badtag-$ident -pe "$perl"
64 git tag -u Senatus -f -s -m "$(cat ../badtag-$ident)" "$tagname"
66 t-tagupl-run-drs $tmp/$p
74 grep ": $mstring" ../tagupl/overall.log
82 grep 'Was not successful' ../sendmail.log
83 grep "$mstring" ../sendmail.log
84 grep ": failed, emailed" ../tagupl/overall.log
88 git update-ref refs/tags/$tagname \
89 $(git hash-object -w -t tag ../tagobj-$ident)
90 t-tagupl-run-drs $tmp/$p
93 tagname=test-dummy/1.2
94 t-expect-fail E:'failed command: git fetch' \
95 t-tagupl-run-drs $tmp/$p
97 tagname=splorf/$v ; expect-quit baddistro '' 'tag name not for us'
98 tagname=test-dummy/1,2; expect-quit badver '' 'tag name not for us'
101 expect-quit noplease s/please-upload/plunk/ 'tag missing please-upload'
103 expect-email vermatch 's/^example release /$&3/' 'reject: version mismatch'
105 expect-email unkinfo 's/^\[dgit please-upload/$& Rejectme/' \
106 'unknown dgit info in tag'
108 expect-quit unkdistro 's/test-dummy/ubuntu/ if m/^\[dgit/' \
109 'not for this distro'
111 expect-email notsplit 's/ split / no-split /' 'reject: missing "split"'
113 expect-email upsnot1 's/ upstream=/ uxstream=/' \
114 'reject: upstream tag and not commitish'
116 expect-email upsnot2 's/ upstream-tag=/ uxstream-tag=/' \
117 'reject: upstream tag and not commitish'
119 expect-email bupstag1 's/ upstream-tag=/$&:/' \
120 "failed command: git check-ref-format"
122 expect-email bupstag2 's/ upstream-tag=/$&x/' \
123 "Couldn't find remote ref refs/tags/xUPSTREAM"
125 expect-email wrongver '' 'mismatch: changelog Version'
129 t-dch-commit -v $v -m bump
131 expect-email upsmism 's/ upstream=/$&3/' \
134 expect-email wrongpkg 's/^example /explosive /' 'mismatch: changelog Source'
136 # we are going to trash $p because it will contain corrupted objects
137 # which makes our end-of-test fsck fail
138 cp -al ../$p ../$p.save
141 git cat-file tag $tagname >../raw-base
144 perl -pe <../raw-base >../tagobj-$ident 's/ split / split ignoreme /'
146 grep 'gpgv: BAD signature' ../sendmail.log
149 perl -ne <../raw-base >../tagobj-$ident 'print unless m/^-----/..0'
151 grep 'missing signature' ../sendmail.log
153 git cat-file tag test-dummy/1.0-1 >../raw-base
155 next-mangle badtagger
156 perl -pe <../raw-base '
157 s/\+\d+$/xyz/ if m/^tagger /;
160 echo >>../tagobj-$ident
161 cat ../basetag >>../tagobj-$ident
163 grep 'failed to fish tagger out of tag' ../tagupl/overall.log