5 t-dependencies DEBORIG git-debpush
18 git checkout -b native
20 git checkout --orphan upstream quilt-tip-2
22 git commit -m 'pseudo-upstream'
25 git checkout -B master quilt-tip-2
27 upstream=$(git rev-parse upstream/1.0~0)
30 t-tagupl-test --no-push --quilt=gbp
34 # todo: test each miss/rejection
38 git cat-file tag $tagname >../basetag
57 mv-ident tagupl/overall.log
64 perl <../basetag >../badtag-$ident -pe "$perl"
65 git tag -u Senatus -f -s -m "$(cat ../badtag-$ident)" "$tagname"
75 grep ": $mstring" ../tagupl/overall.log
83 grep 'Was not successful' ../sendmail.log
84 grep "$mstring" ../sendmail.log
85 grep ": failed, emailed" ../tagupl/overall.log
89 git update-ref refs/tags/$tagname \
90 $(git hash-object -w -t tag ../tagobj-$ident)
94 tagname=test-dummy/1.2
95 t-expect-fail E:'failed command: git fetch' \
98 tagname=splorf/$v ; expect-quit baddistro '' 'tag name not for us'
99 tagname=test-dummy/1,2; expect-quit badver '' 'tag name not for us'
100 tagname=test-dummy/$v
102 expect-quit noplease s/please-upload/plunk/ 'tag missing please-upload'
104 expect-email vermatch 's/^example release /$&3/' 'reject: version mismatch'
106 expect-email unkinfo 's/^\[dgit please-upload/$& Rejectme/' \
107 'unknown dgit info in tag'
109 expect-quit unkdistro 's/test-dummy/ubuntu/ if m/^\[dgit/' \
110 'not for this distro'
112 expect-email notsplit 's/ split / no-split /' 'reject: missing "split"'
114 expect-email upsnot1 's/ upstream=/ uxstream=/' \
115 'reject: upstream tag and not commitish'
117 expect-email upsnot2 's/ upstream-tag=/ uxstream-tag=/' \
118 'reject: upstream tag and not commitish'
120 expect-email bupstag1 's/ upstream-tag=/$&:/' \
121 "failed command: git check-ref-format"
123 expect-email bupstag2 's/ upstream-tag=/$&x/' \
124 "Couldn't find remote ref refs/tags/xupstream"
126 expect-email wrongver '' 'mismatch: changelog Version'
130 t-dch-commit -v $v -m bump
132 expect-email upsmism 's/ upstream=/$&3/' \
135 expect-email wrongpkg 's/^example /explosive /' 'mismatch: changelog Source'
137 # we are going to trash $p because it will contain corrupted objects
138 # which makes our end-of-test fsck fail
139 cp -al ../$p ../$p.save
142 git cat-file tag $tagname >../raw-base
145 perl -pe <../raw-base >../tagobj-$ident 's/ split / split ignoreme /'
147 grep 'gpgv: BAD signature' ../sendmail.log
150 perl -ne <../raw-base >../tagobj-$ident 'print unless m/^-----/..0'
152 grep 'missing signature' ../sendmail.log
154 git cat-file tag test-dummy/1.0-1 >../raw-base
156 next-mangle badtagger
157 perl -pe <../raw-base '
158 s/\+\d+$/xyz/ if m/^tagger /;
161 echo >>../tagobj-$ident
162 cat ../basetag >>../tagobj-$ident
164 grep 'failed to fish tagger out of tag' ../tagupl/overall.log