xtest: pkcs11: skip tests 1003 and 1027 if no openssl
If OPENSSL_FOUND is not defined, compilation fails with below error: optee-test/host/xtest/pkcs11_1000.c: In function 'init_user_test_token_acl_auth': optee-test/host/xtest/pkcs11_1000.c:848:11: error: implicit declaration of function 'xtest_uuid_v5' [-Werror=implicit-function-declaration] 848 | result = xtest_uuid_v5(&expected_client_uuid, &uuid_ns, uuid_name, | ^~~~~~~~~~~~~ optee-test/host/xtest/pkcs11_1000.c:848:11: error: nested extern declaration of 'xtest_uuid_v5' [-Werror=nested-externs] To reproduce the above, pass "WITH_OPENSSL=n" to make or "-DCMAKE_DISABLE_FIND_PACKAGE_OpenSSL=TRUE" to cmake. Add preprocessor directives to skip tests 1003 and 1027 if openssl is not present. Also exclude their unique dependencies to avoid getting some -Wunused-function alerts. Signed-off-by:Vincent Mailhol <mailhol.vincent@wanadoo.fr> Reviewed-by:
Etienne Carriere <etienne.carriere@foss.st.com> Acked-by:
Jens Wiklander <jens.wiklander@linaro.org>
Loading
Please register or sign in to comment