Page MenuHomePhabricator

Conditional inclusion of individual test suites
Closed, ResolvedPublic

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

Event Timeline

RobertRostohar triaged this task as High priority.Oct 4 2019, 11:52 AM
RobertRostohar created this task.

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

kevin-peng-hao added a comment.EditedNov 29 2019, 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.

kevin-peng-hao closed this task as Resolved.Dec 26 2019, 1:34 AM

Patches are merged, so close it.