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
88 tagname=test-dummy/1.2
89 t-expect-fail E:'failed command: git fetch' \
92 tagname=splorf/$v ; expect-quit baddistro '' 'tag name not for us'
93 tagname=test-dummy/1,2; expect-quit badver '' 'tag name not for us'
96 expect-quit noplease s/please-upload/plunk/ 'tag missing please-upload'
98 expect-email vermatch 's/^example release /$&3/' 'reject: version mismatch'
100 expect-email unkinfo 's/^\[dgit please-upload/$& Rejectme/' \
101 'unknown dgit info in tag'
103 expect-quit unkdistro 's/test-dummy/ubuntu/ if m/^\[dgit/' \
104 'not for this distro'
106 expect-email notsplit 's/ split / no-split /' 'reject: missing "split"'
108 expect-email upsnot1 's/ upstream=/ uxstream=/' \
109 'reject: upstream tag and not commitish'
111 expect-email upsnot2 's/ upstream-tag=/ uxstream-tag=/' \
112 'reject: upstream tag and not commitish'
114 expect-email bupstag1 's/ upstream-tag=/$&:/' \
115 "failed command: git check-ref-format"
117 expect-email bupstag2 's/ upstream-tag=/$&x/' \
118 "Couldn't find remote ref refs/tags/xupstream"
120 expect-email upsmism 's/ upstream=/$&3/' \
123 # we are going to trash $p because it will contain corrupted objects
124 # which makes our end-of-test fsck fail
125 cp -al ../$p ../$p.save
128 next-mangle badtagger
129 git cat-file tag test-dummy/1.0-1 | perl -pe '
130 s/\+\d+$/xyz/ if m/^tagger /;
133 echo >>../tagobj-$ident
134 cat ../basetag >>../tagobj-$ident
135 git update-ref $tagname $(git hash-object -w -t tag ../tagobj-$ident)