summaryrefslogtreecommitdiffstats
path: root/tests/sign.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/sign.sh')
-rwxr-xr-xtests/sign.sh31
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'
+
+: