Skip to content
Commit 6c03fb52 authored by Vincent Mailhol's avatar Vincent Mailhol Committed by Jérôme Forissier
Browse files

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: default avatarVincent Mailhol <mailhol.vincent@wanadoo.fr>
Reviewed-by: default avatarEtienne Carriere <etienne.carriere@foss.st.com>
Acked-by: Jens Wiklander's avatarJens Wiklander <jens.wiklander@linaro.org>
parent 2153a15e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment