Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space ENGINES1031 and version 10.3.4

In this section:

Table of Contents
maxLevel1

Configuring the Settings

Conditional Content
product: (cpptest)
product: (cpptest)
sv-attr:0A01020401598D973E6641760F8AF4E50A01020401598D973E6749C5267CE6FE

C/C++test

 DTP Engine can be configured with settings (see Configuration Settings) that should be specified in a .properties file. The basic settings are listed in the 

Conditional Content
product: (cpptest)
product: (cpptest)
sv-attr:0A01020401598D973E6641760F8AF4E50A01020401598D973E6749C5267CE6FE

cpptestcli.properties

  file shipped in [INSTALL_DIR]. 

You can also create a custom . properties file and pass it to the 

Conditional Content
product: (cpptest)
product: (cpptest)
sv-attr:0A01020401598D973E6641760F8AF4E50A01020401598D973E6749C5267CE6FE

cpptestcli

with the -settings switch. 

You can use the -settings switch multiple times to specify several .properties files. Entries with the same key will be overwritten.

Conditional Content
product: (cpptest)
product: (cpptest)
sv-attr:0A01020401598D973E6641760F8AF4E50A01020401598D973E6749C5267CE6FE
Code Block
cpptestcli -settings team.properties -settings project.properties -settings user.properties -config "builtin://Recommended Rules" -compiler gcc_3_4 -input cpptest.bdf

Settings Hierarchy

General settings are applied in the following order: 

  1. Custom settings passed with the command line switch -settings path/to/settings.properties (e.g., -settings ../settings.properties)

    Conditional Content
    product: (cpptest, jtest)
    product: (cpptest, jtest)
    sv-attr:0A01020401598D973E6641760F8AF4E50A01020401598D973E6749C5267CE6FE 0A01020401598D973E671AAA268425A3

    6. Custom settings passed with the command line switch -property [key=value]

All of the above settings can be overridden by custom settings that are passed with command line switches (e.g. -report, -config).

Conditional Content
product: (cpptest)
product: (cpptest)
sv-attr:0A01020401598D973E6641760F8AF4E50A01020401598D973E6749C5267CE6FE

Modifying a Single Property

You can quickly modify a single property in a settings configuration file with the -property switch  without creating a dedicated configuration:

Code Block
cpptestcli -property dtp.server=dtp.parasoft.com.pl -config "builtin://Recommended Rules" -compiler gcc_3_4 -input cpptest.bdf

Viewing Current Settings 

Use the -showsettings option to print the current settings and customizations, including the origin file for each configuration. 

Conditional Content
product: (cpptest)
product: (cpptest)
sv-attr:0A01020401598D973E6641760F8AF4E50A01020401598D973E6749C5267CE6FE

Advanced Configuration

For advanced configuration of C++test's native code analyzers, a dedicated configuration file (in a format supported by the analyzers) can be specified with -psrc <CONFIG_FILE> switch. Parasoft Support will provide content for the advanced configuration file.