Configuring .ptu or .otd test scripts

You can add additional options in a .ptu or .otd test script before executing.

About this task

A .ptu or an .otd file test script might need additional files and additional options before running that must be specified into the .ptu or the .otd file itself, as follows:

Procedure

  1. Enter instructions with specific lines starting with --%f and --%o located on top of the file, before the HEADER keyword setting.
  2. In the line starting with %o, enter build options. Options format must follow the one used for attolcc.
  3. In the line starting with %f, enter the list of additional source files that must be taken into account into the build.
  4. Set relative paths to specify the test scripts location.
  5. Set the PATH environment variable as follows to make the test scripts portable:
    1. ${workspace_loc:/myproject/src/sub.c}
    2. $workspace_loc:/myproject/src/sub.c
    3. $(project_loc)/src/sub.c
    Note: When the Path environment variable is configured and the test script run, the build automatically creates the three following environment variables:
    • 'workspace_loc' corresponding to the workspace location
    • 'project_loc' corresponding to the project location
    • 'tstscript_loc' corresponding to the test script location