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
27 upstream=$(git rev-parse upstream/1.0~0)
30 t-tagupl-test --quilt=gbp
32 # todo: test each miss/rejection
36 git cat-file tag $tagname >../basetag
55 mv-ident tagupl/overall.log
62 perl <../basetag >../badtag-$ident -pe "$perl"
63 git tag -u Senatus -f -s -m "$(cat ../badtag-$ident)" "$tagname"
65 t-tagupl-run-drs $tmp/$p
73 grep ": $mstring" ../tagupl/overall.log
81 grep 'Was not successful' ../sendmail.log
82 grep "$mstring" ../sendmail.log
83 grep ": failed, emailed" ../tagupl/overall.log
87 git update-ref refs/tags/$tagname \
88 $(git hash-object -w -t tag ../tagobj-$ident)
89 t-tagupl-run-drs $tmp/$p
92 tagname=test-dummy/1.2
93 t-expect-fail E:'failed command: git fetch' \
94 t-tagupl-run-drs $tmp/$p
96 tagname=splorf/$v ; expect-quit baddistro '' 'tag name not for us'
97 tagname=test-dummy/1,2; expect-quit badver '' 'tag name not for us'
100 expect-quit noplease s/please-upload/plunk/ 'tag missing please-upload'
102 expect-email vermatch 's/^example release /$&3/' 'reject: version mismatch'
104 expect-email unkinfo 's/^\[dgit please-upload/$& Rejectme/' \
105 'unknown dgit info in tag'
107 expect-quit unkdistro 's/test-dummy/ubuntu/ if m/^\[dgit/' \
108 'not for this distro'
110 expect-email notsplit 's/ split / no-split /' 'reject: missing "split"'
112 expect-email upsnot1 's/ upstream=/ uxstream=/' \
113 'reject: upstream tag and not commitish'
115 expect-email upsnot2 's/ upstream-tag=/ uxstream-tag=/' \
116 'reject: upstream tag and not commitish'
118 expect-email bupstag1 's/ upstream-tag=/$&:/' \
119 "failed command: git check-ref-format"
121 expect-email bupstag2 's/ upstream-tag=/$&x/' \
122 "Couldn't find remote ref refs/tags/xupstream"
124 expect-email wrongver '' 'mismatch: changelog Version'
128 t-dch-commit -v $v -m bump
130 expect-email upsmism 's/ upstream=/$&3/' \
133 expect-email wrongpkg 's/^example /explosive /' 'mismatch: changelog Source'
135 # we are going to trash $p because it will contain corrupted objects
136 # which makes our end-of-test fsck fail
137 cp -al ../$p ../$p.save
140 git cat-file tag $tagname >../raw-base
143 perl -pe <../raw-base >../tagobj-$ident 's/ split / split ignoreme /'
145 grep 'gpgv: BAD signature' ../sendmail.log
148 perl -ne <../raw-base >../tagobj-$ident 'print unless m/^-----/..0'
150 grep 'missing signature' ../sendmail.log
152 git cat-file tag test-dummy/1.0-1 >../raw-base
154 next-mangle badtagger
155 perl -pe <../raw-base '
156 s/\+\d+$/xyz/ if m/^tagger /;
159 echo >>../tagobj-$ident
160 cat ../basetag >>../tagobj-$ident
162 grep 'failed to fish tagger out of tag' ../tagupl/overall.log