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:

  1. Click Administration on the Welcome page
  2. 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:

  1. Select the simulator session that will be used for testing.



  2. From the Setup menu, choose Simulator, then choose the System option.
  3. Ensure that the Simulated I/O address option is enabled.



  4. 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)

NameDefault ValueDescription
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:

  1. Manually create or automatically generate a set of test cases.
  2. Duplicate the Renesas HEW unit test Test Configuration.
  3. Modify the Test Configuration as needed.
  4. Select the desired testing context.
  5. 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:

  1. Duplicate the Renesas HEW application monitoring Test Configuration.
  2. Modify the Test Configuration as needed.
  3. Select the desired testing context.
  4. Run the customized Test Configuration created above.
  • No labels