From 3b40018f4dab74e7d55112b258532fe9dbe027be Mon Sep 17 00:00:00 2001 From: Jakub Jelen Date: Wed, 8 Jan 2020 12:22:32 +0100 Subject: [PATCH] tests: Skip the allowed_mechanisms test on Ubuntu --- tests/test-pkcs11-tool-allowed-mechanisms.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/test-pkcs11-tool-allowed-mechanisms.sh b/tests/test-pkcs11-tool-allowed-mechanisms.sh index 25a69235..4c9c62d5 100755 --- a/tests/test-pkcs11-tool-allowed-mechanisms.sh +++ b/tests/test-pkcs11-tool-allowed-mechanisms.sh @@ -9,9 +9,10 @@ if [[ ! -f $P11LIB ]]; then echo "WARNINIG: The SoftHSM is not installed. Can not run this test" exit 77; fi +# The Ubuntu has old softhsm version not supporting this feature +grep "Ubuntu 18.04" /etc/issue && echo "WARNING: Not supported on Ubuntu 18.04" && exit 77 + softhsm_initialize -# XXX This is broken in currently released SoftHSM -# P11LIB=/home/jjelen/devel/SoftHSMv2/src/lib/.libs/libsofthsm2.so echo "=======================================================" echo "Generate key-pair with CKA_ALLOWED_MECHANISMS"