Hi all.
I have introduced the topic of test configurations refinements in the tech forum on August 5. With this new feature, you can build single test case to decrease the image size and the time to wait irrelevant test cases running when debugging. You can use all the 22 new flags in test repo:
TEST_NS TEST_S TEST_NS_ATTESTATION TEST_NS_AUDIT TEST_NS_CRYPTO TEST_NS_ITS TEST_NS_PS TEST_NS_PLATFORM TEST_NS_FWU TEST_NS_IPC TEST_NS_CORE TEST_NS_QCBOR TEST_NS_T_COSE TEST_NS_MULTI_CORE TEST_NS_SLIH_IRQ TEST_NS_FLIH_IRQ TEST_S_ATTESTATION TEST_S_AUDIT TEST_S_CRYPTO TEST_S_ITS TEST_S_PS TEST_S_PLATFORM TEST_S_FWU TEST_S_IPC You can easily use the command below to start single test like NS attestation test case:
cmake -S . -B cmake_build -DTFM_PLATFORM=arm/mps2/an521 \ -DTFM_TOOLCHAIN_FILE=toolchain_GNUARM.cmake \ -DCMAKE_BUILD_TYPE=Release \ -DTFM_PSA_API=ON \ -DTEST_NS_ATTESTATION=ON
Meanwhile, you may receive the warning messages when your test inputs are not supported on the platform.
Here are the patches about this change, any suggestions or improvements are welcome in code review.
l 10767: Build: Control single test without TEST_S/TEST_NS [TF-M repo] https://review.trustedfirmware.org/c/TF-M/trusted-firmware-m/+/10767
l 10768: Build: Control single test without TEST_S/TEST_NS [Test repo] | https://review.trustedfirmware.org/c/TF-M/tf-m-tests/+/10768
Best Regards Jianliang Shen