This section explains how to configure and run runtime testing. It covers:

Customizing Built-in Test Configurations

C/C++test provides the following Test Configurations to run tests using TRACE32 tools:

Test Configurations can be customized using the following test execution flow properties:

Lauterbach TRACE32 test configurations automate:

Test executable uploading, execution and results collection is performed with help of a Lauterbach PRACTICE II script that is generated by C++test. The script is generated based on a template available in <CPPTEST_INSTALL_DIR>/bin/engine/etc/templates/for_recipes/t32_fdx.tja

You can customize this template as needed. To use a customized version of this script template:

  1. Make a copy of the original version of this script.
  2. Edit it as desired.
  3. Modify the Test Configuration’s test flow definition to use the customized version rather than the original script template. The script template path is specified in a flow step with id="db_scr_gen".

Unit Testing

The "Embedded Systems/Lauterbach TRACE32/Run Tests using TRACE32 (FDX)"Test Configuration is provided to facilitate the unit testing process.

To run unit testing using TRACE32:

  1. Manually create or automatically generate a set of test cases.
  2. Duplicate the "Run Tests using TRACE32 (FDX)" Test Configuration.
  3. Modify the Test Configuration as needed. See Customizing Built-in Test Configurations for details.
  4. Select the desired testing context.
  5. Run tests with the customized Test Configuration created above.

Debugging Test Cases

Use External Embedded debugging mode. For more details see:

Application Monitoring

To run application monitoring using TRACE32:

  1. Duplicate the "Embedded Systems/Lauterbach TRACE32/Run Application with Memory Moni-toring using TRACE32 (FDX)" Test Configuration.
  2. Modify the Test Configuration as needed. See Customizing Built-in Test Configurations for details.
  3. Select the desired testing context.
  4. Run tests with the customized Test Configuration created above.

For general information on performing application monitoring and runtime error detection with C/C++test, see Runtime Error Detection