Welcome to the new Parasoft forums! We hope you will enjoy the site and try out some of the new features, like sharing an idea you may have for one of our products or following a category.

CPP Static Analysis: Using cpptesttrace with option --cpptesttraceUseVariable=[VAR_NAME=VALUE,...]

kajetan
kajetan Posts: 2
edited October 29 in C/C++test

I am using cpptesttrace with option --cpptesttraceUseVariable=[VAR_NAME1=VALUE1,VAR_NAME2=VALUE2,VAR_NAME3=VALUE3]. This works properly in generating the bdf however when I am trying to use cpptestcli(command line) to import the bdf in question via below command, i am unable to use either env variables (defining the VAR_NAME1/2/3 in my env. Do i have to replace these reference variables manually via parsing or is there a better way?

cpptestcli -data $(pwd)/parasoft_workspace -bdf "${bdf_command}" \
-settings "${config_path}" -settings "${dtb_settings_path}" -settings "${bdf_path}" \
${target_criteria_command} -report "${static_report_name}/" \
-appconsole stdout -showdetails -config "builtin://Effective C++" -nobuild

Best Answer

  • kajetan
    kajetan Posts: 2
    Answer ✓

    Nevermind, you can access them via environment variables