diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-04-10 15:39:50 (EDT) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-04-10 15:39:50 (EDT) |
commit | 9663bd94f2e13304783b03f76c7395f52a4c7c18 (patch) | |
tree | f568d6a4900015895945df45da2b549d51c03586 /tests/sign.sh | |
parent | 00d12d255e8020d44389a37d5386fb866c95240d (diff) |
tests/sign.sh: Test sign command
Diffstat (limited to 'tests/sign.sh')
-rwxr-xr-x | tests/sign.sh | 31 |
1 files changed, 30 insertions, 1 deletions
diff --git a/tests/sign.sh b/tests/sign.sh index 05d0d7a..293034d 100755 --- a/tests/sign.sh +++ b/tests/sign.sh @@ -22,7 +22,7 @@ . tap-functions.sh . opk.sh -plan_ 4 +plan_ 10 if ${EMBEDDED_USIGN}; then usign="${abs_top_builddir}/3rdparty/usign/usign" @@ -55,3 +55,32 @@ command_ok_ 'verification' -- not \ "${usign}" -V -m 'archive/feeds/dev/trunk/arch/plat/base/Packages.gz' \ -p 'archive/key.pub' \ -x 'archive/feeds/dev/trunk/arch/plat/base/Packages.sig' + +command_ok_ 'key generation' -- \ + "${usign}" -G -c 'archive signing key' \ + -p 'archive/key.pub' -s 'archive/key' + +command_ok_ 'verification' -- not \ + "${usign}" -V -m 'archive/feeds/dev/trunk/arch/plat/base/Packages' \ + -p 'archive/key.pub' \ + -x 'archive/feeds/dev/trunk/arch/plat/base/Packages.sig' + +command_ok_ 'verification' -- not \ + "${usign}" -V -m 'archive/feeds/dev/trunk/arch/plat/base/Packages.gz' \ + -p 'archive/key.pub' \ + -x 'archive/feeds/dev/trunk/arch/plat/base/Packages.sig' + +command_ok_ 'pro-archman sign' -- \ + "${PRO_ARCHMAN}" -v -b 'archive/' sign + +command_ok_ 'verification' -- \ + "${usign}" -V -m 'archive/feeds/dev/trunk/arch/plat/base/Packages' \ + -p 'archive/key.pub' \ + -x 'archive/feeds/dev/trunk/arch/plat/base/Packages.sig' + +command_ok_ 'verification' -- not \ + "${usign}" -V -m 'archive/feeds/dev/trunk/arch/plat/base/Packages.gz' \ + -p 'archive/key.pub' \ + -x 'archive/feeds/dev/trunk/arch/plat/base/Packages.sig' + +: |