Running tests with CTest - 5.2 English - 57404

AOCL User Guide (57404)

Document ID
57404
Release Date
2025-12-29
Version
5.2 English

Use the AOCL_TEST_COVERAGE option to enable testing with CTest:

  • OFF: Disables all tests (default)

  • STANDARD: Enables standard test suite

  • EXHAUSTIVE: 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>