Both C++test standalone and the C++test Eclipse plugin allow C++test to be used with Renesas RX—no special integration is required.
C++test doesn't actually "integrate" with the RX development environment; rather, it is preconfigured to support the RX set of compilers, which allows C++test projects to use these compilers.
You can use the
cpptesttrace utility to create a .bdf file based on an e2studio project (see Generating a .bdf File From an e2studio Project) and import the .bdf file into C++test for analysis (see Import BDF file into C++test).
The following compiler/environment versions are supported:
- Renesas RX (Renesas Electronics e2studio) C/C++ Compiler V2.02.x (static analysis only).
- Renesas RX (Renesas Electronics e2studio) C/C++ Compiler V2.05.x
Generating a .bdf File From an e2studio Project
- Start console.
- Renesas provides a bat script that sets the required environment variables. You can run this script after setting the correct "InstallDirectory" variable in
Otherwise, set the compiler required environment variables per the compiler documentation (BIN_RX, INC_RX, RXC_LIB, TCINSTALL, TMP_RX) and add the following locations to PATH:
- Set the C++test install directory on PATH.
- CD to the project's target configuration directory (<project_workspace_location>/<Debug or HardwareDebug>)
- Run the following command:
To enable logging, add the
-d option after calling
make.exe and before the
Specify the absolute path to the
--cpptesttraceOutputFile option. This is because several .bdf files are likely to spread through working directories spawned by Renesas RX toolchain commands. You may have to place quotation marks around the options containing spaces/braces.
By default, the trace feature is configured to capture each toolchain executable name recognized by C++test through built-in compiler configurations. If the process' command-lines aren't scanned, specify the compiler and linker executable names by adding a
--cpptesttraceTraceCommand option to the
cpptesttrace command. For example:
cpptesttrace command always appends its output file, so you should remove the previous .bdf file before re-scanning the project.
Import BDF file into C++test
- Start console.
- Set environment for the appropriate toolchain as described in the documentation (executables on PATH).
- Start C++test.
- Follow steps of importing the BDF file described in documentation (see Importing project using Build Data File with the GUI wizard).
- Confirm project settings correctness in Properties> Parasoft> C++test> Build Settings.
You must repeat the entire process following any changes to the original project unless you are adding new sources in existing source locations.