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
- Enter instructions with specific lines starting with --%f and --%o located on top of the file, before the HEADER keyword setting.
- In the line starting with %o, enter build options. Options format must follow the one used for attolcc.
- In the line starting with %f, enter the list of additional source files that must be taken into account into the build.
- Set relative paths to specify the test scripts location.
-
Set the PATH environment variable as follows to make the test scripts
portable:
- ${workspace_loc:/myproject/src/sub.c}
- $workspace_loc:/myproject/src/sub.c
- $(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