Generating a .bdf File From a National Instruments Project
- Start console.
Add the following locations to your PATH:
<National_Instruments_installation_dir>\CVI2015 <National_Instruments_installation_dir>\CVI2015\bin <National_Instruments_installation_dir>\CVI2015\bin\clang\3.3
- Set the C/C++test <INSTALL_DIR> on PATH.
- Navigate to the directory that contains your project (.prj file)
- Build the project with the following command:
compile.exe -rebuild project_name.prj
- Navigate to the new folder created:
cvibuild.project_name/<build_config>
Run the jam.exe utility (located in the
CVI2013/bin
directory of the National Instruments installation), wrapping the command with the cpptesttrace utility (shipped with C++test):cpptesttrace --cpptesttraceOutputFile=<project_name>.bdf --cpptesttraceProjectName=<project_name> jam.exe -a
Notes
Specify the absolute path to the --cpptesttraceOutputFile
option. This is because several .bdf files are likely to spread through working directories spawned by compile.exe
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:
--cpptesttraceTraceCommand=clang\.exe$|cvilink\.exe$
The cpptesttrace
command always appends its output file, so you should remove the previous .bdf file before re-scanning the project.
Importing BDF file into C/C++test
- Start console (or reuse this for BDF generation).
- Set environment for the appropriate toolchain as described in the documentation (executables on PATH).
- Start C/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/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.