1# TEE Test 2 3## Introduce 4 5This is the test suit for the functional and compatible test of TEE. 6 7TEE test suit is based on Open Harmony hcpptest framework, which can refer to the XTS subsystem. 8 9## Important Folders 10 11| Folder | Introduce | 12| ---- | ---- | 13| driver | driver related code | 14| ca | REE related test code,which is the testcase definition. | 15| ta | TEE related test code | 16| utils | test AW and public code | 17 18## Build 19### Build CA 20 21 # build with the system: 22 hb build --gn-args build_xts=true 23 24 # For rk3568: 25 First, copy the tee directory from the ca directory to the test/xts/acts directory, then add the configuration tee directory to the test/xts/acts/test_packages.gni file, and execute the following compile command 26 cd test/xts/acts 27 /build.sh product_name=rk3568 system_size=standard target_subsystem=tee 28 The compiled CA in "out/rk3568/suites/acts/acts/testcases"。 29### Build TA 30 31 32## Test Execution 33Note: The absolute path for running the CA during the test must be the same as the absolute path for running the CA specified by AddCaller_CA func in the test TA. In this example, the CA named tee_test_client_api_vendor in the TA is used as an example to describe the test command. You can specify another name in the actual test. 34 35Place the test TA (sec file) in the same level directory as the test CA, and both can be placed in the/vendor/bin/directory. 36 37### TEE SDK compatibility test 381. Execute all test cases. 39Enter the command line window of the tested system, Enter "/vendor/bin/tee_test_client_api_vendor" 40 412. Execute some test cases. 42For details, see the commands provided by the hcpptest framework. 43Supports the use of wildcard characters "*", for example /vendor/bin/tee_test_client_api_vendor --gtest_filter=*TeeBasicTestFram.InvokeCommand* 44 453. Current exist tee xts test CA list: 46/vendor/bin/tee_test_client_api_vendor 47/system/bin/tee_test_client_api_system 48/vendor/bin/tee_test_tcf_api 49/vendor/bin/tee_test_time_api 50/vendor/bin/tee_test_arithmetic_api 51/vendor/bin/tee_test_trusted_storage_api 52/vendor/bin/tee_test_crypto_api 53/vendor/bin/tee_test_device_api 54 55## Reference 56 - xts_acts 57