summaryrefslogtreecommitdiff
path: root/tests/tests/tagupl
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2019-07-07 09:52:42 +0100
committerIan Jackson <ijackson@chiark.greenend.org.uk>2019-07-07 11:18:17 +0100
commit6100d62d0e512c6e3c22d6fa3465a8f8991214c5 (patch)
treee37eff4b39b58ffba8fb615d25599412d32fb133 /tests/tests/tagupl
parent5c9c4ec9b1b1764bcf5060030662c5bfe5aec71d (diff)
test suite: tagupl: Test signature verification fail.
This test case is broken because it doesn't call t-tagupl-run-drs Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Diffstat (limited to 'tests/tests/tagupl')
-rwxr-xr-xtests/tests/tagupl11
1 files changed, 9 insertions, 2 deletions
diff --git a/tests/tests/tagupl b/tests/tests/tagupl
index 9f12eed..ea5a3af 100755
--- a/tests/tests/tagupl
+++ b/tests/tests/tagupl
@@ -46,8 +46,6 @@ perl -i -ne '
print or die $!;
' ../basetag
-git cat-file tag test-dummy/1.0-1 >../raw-base
-
mv-ident () {
local f=$tmp/$1
if test -e $f; then
@@ -133,6 +131,15 @@ expect-email upsmism 's/ upstream=/$&3/' \
cp -al ../$p ../$p.save
cd ../$p
+git cat-file tag $tagname >../raw-base
+
+next-mangle sigfail
+perl -pe <../raw-base >../tagobj-$ident 's/ split / split ignoreme /'
+raw-mangled
+grep 'gpgv: BAD signature' ../sendmail.log
+
+git cat-file tag test-dummy/1.0-1 >../raw-base
+
next-mangle badtagger
perl -pe <../raw-base '
s/\+\d+$/xyz/ if m/^tagger /;