Skip to content

Commit

Permalink
FAPI Test: Fix check with self signed certificate.
Browse files Browse the repository at this point in the history
* The test is now skipped if no ek_cert_less is set.
* The test is moved to the tests without device.

Signed-off-by: Juergen Repp <[email protected]>
  • Loading branch information
JuergenReppSIT committed Jan 30, 2024
1 parent ae461ca commit 95111d7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Makefile-test.am
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,6 @@ FAPI_TESTS_INTEGRATION = \
test/integration/fapi-policy-or-nv-read-write.fint \
test/integration/fapi-second-provisioning.fint \
test/integration/fapi-provisioning-error.fint \
test/integration/fapi-provisioning-cert-error.fint \
test/integration/fapi-info.fint \
test/integration/fapi-unseal.fint \
test/integration/fapi-unseal-persistent.fint
Expand Down Expand Up @@ -434,7 +433,8 @@ FAPI_TESTS_INTEGRATION += \
test/integration/fapi-quote-destructive-eventlog.fint \
test/integration/fapi-quote-destructive-eventlog-pc-client.fint \
test/integration/fapi-provisioning-with-template.fint \
test/integration/fapi-provisioning-with-template-rsa.fint
test/integration/fapi-provisioning-with-template-rsa.fint \
test/integration/fapi-provisioning-cert-error.fint

endif #!TESTDEVICE

Expand Down
3 changes: 1 addition & 2 deletions test/integration/fapi-provisioning-cert-error.int.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,10 @@ test_fapi_test_provisioning_cert_error(FAPI_CONTEXT *context)
{
TSS2_RC r;

#ifndef SELF_SIGNED_CERTIFICATE
#if !defined(SELF_SIGNED_CERTIFICATE) || defined(FAPI_TEST_EK_CERT_LESS)
return EXIT_SKIP;
#endif


setenv("FAPI_TEST_ROOT_CERT", "self", 1);
setenv("FAPI_TEST_INT_CERT", "./ca/root-ca/root-ca.cert.pem", 1);

Expand Down

0 comments on commit 95111d7

Please sign in to comment.