Use the AOCL_TEST_COVERAGE option to enable testing with CTest:
OFF: Disables all tests (default)STANDARD: Enables standard test suiteEXHAUSTIVE: Enables both standard and exhaustive test suite. To provide comprehensive coverage, the exhaustive suite contains a larger set of test cases.
Note: ACCURACY_WITH_DFT enables running tests with DFT as an additional validation method. This adds another verification mechanism to the set of accuracy tests that the test bench uses for verification.
Here are a few sample commands that can be executed within the build directory to run test cases with CTest.
To run all the tests:
ctest
To run only TestBench on Linux:
ctest -R TESTBENCH
To run only TestBench on Windows:
ctest -C <Release/Debug> -R TESTBENCH
To run GTest test cases for a specific test case:
ctest -R <TEST CASE>