Hi all -- I was wondering what the intended procedure was for adding and running platform-specific TF-A tests? I see a plat/ directory in the tf-a-test/tftf/tests directory, so I assume I should use that, but I don't see a way to actually point to it normally. Has anyone tried this before? I did get it working in a hacky way[0], but I was hoping that there was an intended path. My use-case is to test some platform-specific hardware from TF-A. Thanks! Ross
[0] I added a `tests-platform.mk` pseudo test that looks in the plat directory for a platform.mk, just like for finding the platform's .c sources. Then it looks for the test pointed to by PLAT_TESTS.
Hi,
As you mentioned, you could create platform-specific tests by populating them in the tf-a-tests/tftf/tests/plat/ directory. The way to point tftf build to include these tests is by specifying the test suit name using the 'TESTS' build flag. If I am not mistaken, there are a few specific tests ported by Nvidia for their tegra194 platform. Please refer to the files tests-tegra194.xml and tests-tegra194.mk
The build command would look like this: make -j CROSS_COMPILE= aarch64-none-elf- PLAT=tegra194 TESTS=tegra194 tftf
Thanks, Madhukar
-----Original Message----- From: Ross Kettleson via TF-A-Tests tf-a-tests@lists.trustedfirmware.org Sent: Monday, October 17, 2022 7:09 PM To: tf-a-tests@lists.trustedfirmware.org Subject: [Tf-a-tests] Adding platform-specific tests
Hi all -- I was wondering what the intended procedure was for adding and running platform-specific TF-A tests? I see a plat/ directory in the tf-a-test/tftf/tests directory, so I assume I should use that, but I don't see a way to actually point to it normally. Has anyone tried this before? I did get it working in a hacky way[0], but I was hoping that there was an intended path. My use-case is to test some platform-specific hardware from TF-A. Thanks! Ross
[0] I added a `tests-platform.mk` pseudo test that looks in the plat directory for a platform.mk, just like for finding the platform's .c sources. Then it looks for the test pointed to by PLAT_TESTS. -- TF-A-Tests mailing list -- tf-a-tests@lists.trustedfirmware.org To unsubscribe send an email to tf-a-tests-leave@lists.trustedfirmware.org
tf-a-tests@lists.trustedfirmware.org