diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2016-09-03 12:23:03 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2016-09-03 12:23:03 +0000 |
commit | df0375c456f160b0312f19ffa9cb9f8fe1f8cc86 (patch) | |
tree | 2d9e18aa4b09f4650b7507e8d6b9722951408875 /regress/usr.bin | |
parent | 24fdbf3d7d89e1953e9f90ffd5768ebaa6c13c6b (diff) |
check -z mode, just by creating an archive and checking it's still proper
gzip.
Diffstat (limited to 'regress/usr.bin')
-rw-r--r-- | regress/usr.bin/signify/signify.sh | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/regress/usr.bin/signify/signify.sh b/regress/usr.bin/signify/signify.sh index efbd5c98314..f07fb20355e 100644 --- a/regress/usr.bin/signify/signify.sh +++ b/regress/usr.bin/signify/signify.sh @@ -1,6 +1,6 @@ #!/bin/sh # -# $OpenBSD: signify.sh,v 1.7 2014/03/17 15:18:55 tedu Exp $ +# $OpenBSD: signify.sh,v 1.8 2016/09/03 12:23:02 espie Exp $ srcdir=$1 @@ -28,4 +28,10 @@ signify -S -e -s $seckey -m HASH rm HASH signify -C -q -p $pubkey -x HASH.sig +tar zcPf archive.tgz $srcdir +signify -zS -s $seckey -m archive.tgz -x signed.tgz +# check it's still valid gzip +gunzip -t signed.tgz +# verify it +signify -zV -p $pubkey <signed.tgz|gunzip -t true |