The section includes:
Configuring HEW for Runtime Testing
In order to be able to automate runtime testing on the HEW IDE, a HEWTargetServer component must be registered into the HEW installation. To do this:
- Click Administration on the Welcome page
- Click Register.
3. Browse to ${hew_install_dir}\\System\SEC\HewTargetServer\EcxHewTargetServer.hrf
then click Select.
If registration completes successfully, a HewTargetComponent should appear under "Extension Components"
4. Click OK.
For additional details, see the HEWTargetServer User's Manual that is provided by Renesas.
Testing on the Simulator
The configurations for testing on the simulator use the HEW simulation capabilities to run the prepared test executable. Testing results are sent using the HEW Simulated I/O feature.
The following steps are required to configure the HEW IDE:
- Select the simulator session that will be used for testing.
- From the Setup menu, choose Simulator, then choose the System option.
- Ensure that the Simulated I/O address option is enabled.
- Open the Simulated I/O window (if this window is not opened for a given session, execution will hang).
The C++test instrumentation should be disabled for low level C code files (typically, dbsct.c, lowsrc.c, resetprg.c and sbrk.c) to ensure that the test executable has a proper execution flow. To disable instrumentation for such files, clear the Parasoft> C++test> Execution settings> Instrument selected source files(s) field in the mentioned files’ properties.
Customizing Built-in Test Configurations
The Test Configurations provided to execute runtime tests for HEW projects (“Builtin> Embedded Systems> Renesas HEW”) may require environment-specific customization. The typical customizations are done with the help of test flow definition properties that are listed for each Test Configuration (in the Execution> General tab, "Execution details" section).
The table below describes the test flow properties for the Renesas HEW dedicated built-in Test Configurations:
- Run HEW 4.x Tests (simulated IO)
- Run HEW 4.x Application with Mem Monitoring (simulated IO)
Name | Default Value | Description |
---|---|---|
Workspace file to load | ${hew:workspace_file} | Automatically expanded to the location of the HEW workspace file. If it is not automatically detected by C++test, you need to specify it manually. |
Debug session | ${hew:current_session} | Automatically expanded to the last used session in the HEW IDE. Can be specified manually. |
Simulated I/O address | ${hew:simulated_io_address} | Simulated I/O address, as configured in the HEW IDE debug session. Automatically expanded to the proper value from debug session. If it is not automatically detected by C++test, you need to specify it manually. |
Unit Testing
The following test configuration is provided to facilitate the unit testing process:
- Run HEW 4.x Tests (simulated IO)
To run unit testing on the simulator:
- Manually create or automatically generate a set of test cases.
- Duplicate the Renesas HEW unit test Test Configuration.
- Modify the Test Configuration as needed.
- For details, see Customizing Built-in Test Configurations.
- Select the desired testing context.
- Run tests with the customized Test Configuration created above.
Debugging Test Cases
C++test does not support direct Test Cases debugging for this environment.
Use standard means of executables debugging.
Application Monitoring
The following test configuration is provided to facilitate the application monitoring process:
- Run HEW 4.x Application with Mem Monitoring (simulated IO)
To run application monitoring on the simulator:
- Duplicate the Renesas HEW application monitoring Test Configuration.
- Modify the Test Configuration as needed.
- For details, see Customizing Built-in Test Configurations.
- Select the desired testing context.
- Run the customized Test Configuration created above.