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'
23 git checkout -B master quilt-tip-2
29 t-tagupl-test --quilt=gbp
31 # todo: test each miss/rejection
35 git cat-file tag $tagname >../basetag
54 mv-ident tagupl/overall.log
61 perl <../basetag >../badtag-$ident -pe "$perl"
62 git tag -u Senatus -f -s -m "$(cat ../badtag-$ident)" "$tagname"
64 t-tagupl-run-drs $tmp/$p
72 grep ": $mstring" ../tagupl/overall.log
80 grep 'Was not successful' ../sendmail.log
81 grep "$mstring" ../sendmail.log
82 grep ": failed, emailed" ../tagupl/overall.log
86 git update-ref refs/tags/$tagname \
87 $(git hash-object -w -t tag ../tagobj-$ident)
88 t-tagupl-run-drs $tmp/$p
91 tagname=test-dummy/1.2
92 t-expect-fail E:'failed command: git fetch' \
93 t-tagupl-run-drs $tmp/$p
95 tagname=splorf/$v ; expect-quit baddistro '' 'tag name not for us'
96 tagname=test-dummy/1,2; expect-quit badver '' 'tag name not for us'
99 expect-quit noplease s/please-upload/plunk/ 'tag missing please-upload'
101 expect-email vermatch 's/^example release /$&3/' 'reject: version mismatch'
103 expect-email unkinfo 's/^\[dgit please-upload/$& Rejectme/' \
104 'unknown dgit info in tag'
106 expect-quit unkdistro 's/test-dummy/ubuntu/ if m/^\[dgit/' \
107 'not for this distro'
109 expect-email notsplit 's/ split / no-split /' 'reject: missing "split"'
111 expect-email upsnot1 's/ upstream=/ uxstream=/' \
112 'reject: upstream tag and not commitish'
114 expect-email upsnot2 's/ upstream-tag=/ uxstream-tag=/' \
115 'reject: upstream tag and not commitish'
117 expect-email bupstag1 's/ upstream-tag=/$&:/' \
118 "failed command: git check-ref-format"
120 expect-email bupstag2 's/ upstream-tag=/$&x/' \
121 "Couldn't find remote ref refs/tags/xupstream"
123 expect-email wrongver '' 'mismatch: changelog Version'
127 t-dch-commit -v $v -m bump
129 expect-email upsmism 's/ upstream=/$&3/' \
132 expect-email wrongpkg 's/^example /explosive /' 'mismatch: changelog Source'
134 # we are going to trash $p because it will contain corrupted objects
135 # which makes our end-of-test fsck fail
136 cp -al ../$p ../$p.save
139 git cat-file tag $tagname >../raw-base
142 perl -pe <../raw-base >../tagobj-$ident 's/ split / split ignoreme /'
144 grep 'gpgv: BAD signature' ../sendmail.log
147 perl -ne <../raw-base >../tagobj-$ident 'print unless m/^-----/..0'
149 grep 'missing signature' ../sendmail.log
151 git cat-file tag test-dummy/1.0-1 >../raw-base
153 next-mangle badtagger
154 perl -pe <../raw-base '
155 s/\+\d+$/xyz/ if m/^tagger /;
158 echo >>../tagobj-$ident
159 cat ../basetag >>../tagobj-$ident
161 grep 'failed to fish tagger out of tag' ../tagupl/overall.log