Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Anchor
configuring_settings
configuring_settings
Configuring the Settings

C/C++test  test can be configured with settings (see see Configuration Settings) that should be specified in a .properties file. The basic settings are listed in the cpptestcli.properties  file shipped in <INSTALL_DIR>.  By default, most settings are disabled. Uncomment the settings you want to enable and specify the parameters.Alternatively, you can store the settings in a .properties file in your home directory <USER_HOME_DIR> to ensure that the settings you configured are not affected by re-installation or updates. If a setting is configured in both the installation directory and the user's home directory, the value configured in <USER_HOME_DIR> overwrites the value in <INSTALL_DIR>.

 You can also create a custom .properties file and pass it to the cpptestcliwith the -settings switch.  You can use the -settings switch multiple times to specify several .properties files. Entries with the same key will be overwritten.

Code Block
cpptestcli -settings team.properties -settings project.properties -settings user.properties -config "builtin://Recommended Rules" -compiler gcc_9-64 -input cpptest.bdf
Info
titleFile path convention on Windows

Use double backslashes to specify file paths in the .properties file on Windows. For example:

configuration.dir.user=C:\\parasoft\\2018\\configs\\user

...

  1. <INSTALL_DIR>/etc/cpptestcli.properties: the base configuration file that should not be modified.
  2. <INSTALL_DIR>/cpptestcli.properties: the main configuration file you can use to specify your settings; it contains a list of basic configuration settings (license, reporting, etc.) you need to uncomment before configuring the setting's value.
  3. <USER_HOME_DIR>/cpptestcli.properties: for your convenience, you can store the configuration file in your home directory to overwrite settings from the <INSTALL_DIR> (for example, to ensure your settings are not affected by re-installations or updates).
  4. <WORKING_DIR>/cpptestcli.properties: for your convenience, you can store the configuration file in your working directory.
  5. Custom settings passed with the command line switch -settings path/to/settings.properties (e.g., -settings ../settings.properties).
  6. Custom settings passed with the command line switch -property [key=value](e.g. -property "report.mail.enabled=true").

All of the above settings can be overridden by settings that are passed with command line switches, such as -report, -config, etc.

Modifying a Single Property

...

For advanced configuration of C/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.

...