Conditional inclusion of individual test suites
Open, HighPublic

Description

We have described also test suites as individual components that are user selectable. This requires conditional inclusion of test suites based on preprocessor definitions.

TF-M already supports this for some test suites (#ifdef ENABLE_AUDIT_LOGGING_SERVICE_TESTS, …).

We suggest to add this also for all other test suites.

Adding conditional inclusion for secure test suites: ./test/framework/secure_suites.c
#ifdef ENABLE_SECURE_STORAGE_SERVICE_TESTS
#ifdef ENABLE_CRYPTO_SERVICE_TESTS
#ifdef ENABLE_INITIAL_ATTESTATION_SERVICE_TESTS

Adding conditional inclusion for non-secure test suites: ./test/framework/non_secure_suites.c
#ifdef ENABLE_SECURE_STORAGE_SERVICE_TESTS
#ifdef ENABLE_CRYPTO_SERVICE_TESTS
#ifdef ENABLE_INITIAL_ATTESTATION_SERVICE_TESTS
#ifdef ENABLE_QCBOR_TESTS

RobertRostohar triaged this task as High priority.

@kevin-peng-hao can you update some progress?

kevin-peng-hao added a comment.EditedFri, Nov 29, 1:40 AM

Sure, I've worked out some patches and are testing and refining them, will submit them for review if no issues found.