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
49 git cat-file tag test-dummy/1.0-1 >../raw-base
59 mv-ident tagupl/overall.log
66 perl <../basetag >../badtag-$ident -pe "$perl"
67 git tag -u Senatus -f -s -m "$(cat ../badtag-$ident)" "$tagname"
77 grep ": $mstring" ../tagupl/overall.log
85 grep 'Was not successful' ../sendmail.log
86 grep "$mstring" ../sendmail.log
87 grep ": failed, emailed" ../tagupl/overall.log
91 git update-ref refs/tags/$tagname \
92 $(git hash-object -w -t tag ../tagobj-$ident)
96 tagname=test-dummy/1.2
97 t-expect-fail E:'failed command: git fetch' \
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 "Couldn't find remote ref refs/tags/xupstream"
128 expect-email upsmism 's/ upstream=/$&3/' \
131 # we are going to trash $p because it will contain corrupted objects
132 # which makes our end-of-test fsck fail
133 cp -al ../$p ../$p.save
136 tagname=test-dummy/1.0-1
137 next-mangle badtagger
138 perl -pe <../raw-base '
139 s/\+\d+$/xyz/ if m/^tagger /;
142 echo >>../tagobj-$ident
143 cat ../basetag >>../tagobj-$ident
145 grep 'failed to fish tagger out of tag' ../tagupl/overall.log