1Title: Test to verify the __TZ_WRAP_FUNC() macro. 2 3Description: 4__TZ_WRAP_FUNC() is part of the nonsecure TrustZone API, but is itself 5independent of TrustZone functionality, so it is tested here outside the context 6of secure/nonsecure firmware. 7 8The test verifies that: 9 - The wrapper functions are correctly called. 10 - The arguments are passed to the wrapped function. 11 - The return value from the wrapped function is correctly returned from the 12 wrapper function. 13 14--------------------------------------------------------------------------- 15 16Building and Running Project: 17 18This project outputs to the console. It can be built and executed on QEMU as 19follows: 20 21 ninja/make run 22 23--------------------------------------------------------------------------- 24 25Troubleshooting: 26 27Problems caused by out-dated project information can be addressed by 28issuing one of the following commands then rebuilding the project: 29 30 ninja/make clean # discard results of previous builds 31 # but keep existing configuration info 32or 33 ninja/make pristine # discard results of previous builds 34 # and restore pre-defined configuration info 35 36--------------------------------------------------------------------------- 37 38Sample Output: 39 40*** Booting Zephyr OS build zephyr-v2.3.0-2427-g6a7e2dc314b2 *** 41Running test suite tz_wrap_func 42=================================================================== 43START - test_tz_wrap_func 44 PASS - test_tz_wrap_func 45=================================================================== 46Test suite tz_wrap_func succeeded 47=================================================================== 48PROJECT EXECUTION SUCCESSFUL 49