-
How to interpret "Stat" and "Off" values in C++Test coverage report?
I have the following code coverage report snippet and want to understand what do "Stat" and "Off" values represent and how to interpret them? <CvgData cvgType="SC"> <Stat val="0;3;0;3;0;3;0"/> <Off val="0;76;115;120;146;153;198"/> </CvgData>undefined</File>undefined<File…
-
Using cpptestcli to create coverage report
Setup I've copied the cpptest-coverage.cmake to my project and included it into my CMake project. Inside the cpptest-coverage.cmake I modified the following line: set(CPPTEST_COVERAGE_WORKSPACE ${CPPTEST_BINARY_DIR}/cpptest-coverage/${CMAKE_PROJECT_NAME}) to have all temporary files in my build folder. I see in the make…
-
How does cpptestcli choose MSVC compiler and the purpose of compiler configuration files
Hi all, I am trying to understand the behaviour and relationship of cpptestcli with Microsoft Visual C++ (MSVC) compiler. My question is: * How does Parasoft choose the default MSVC compiler to use? When specifying the compiler configuration using the -compiler property, specifying vc_14_2-64 (64 bit version of compiler)…
-
Changing compiler options in settings
I'm trying to use cpptestcli for Unit Testing and I need to add the -DCPPTEST_THREADS=1 option during compilation. The documentation only describes how to add this option inside the IDE and for a single project, but by exporting its build settings and by locating the property to modify I managed to use it on the CLI by…
-
incremental scan on docker container
Hi We are running cpptestcli to scan our code inside a docker container. Since we start with clean workspace every time, the scan takes too much time. To try to resolve it, we copied ".cpptest" folder to a shared location, then, on the next run, downloaded it to the workspace. the problem is that we still see long scans…
-
cpptest failing on command line but working with Eclipse
Using the Parasoft plugin for Eclipse, I am able to run Parasoft test configurations successfully. Trying to run the same test configuration using cpptestcli results in a error message and a stack trace in the error log. The Parasoft version is C++test Professional 2020.2.0 (10.5.0.20201022B1126). The error output is…
-
Amount of issues found with eclipse is different than with cpptestcli
When we analyze our code from Eclipse we use the compile_commands.json file as input. Then we click on the project name and start the analyzation. When we use cpptestcli on terminal the build_commands.json file is also used as input. We set the -workspace argument and the ruleset which should be used. The result is…
-
cpptestcli -input cpptest.bdf : Bypass desktop open
Hello, I created bdf from Makefile and ran cpptestcli. I'm running this from an ssh console connected to a virtual Centos 7.2 host. All I need is a report. But for some reason, cpptestcli is trying to open a display and fails. Can you please advise ? Thank you, Zvika
-
cpptestcli: files to analyse not found
We are using cpptestcli from eclipse Plugin and on the terminal. Using from eclipse and the cpptestcli based on eclipse is working too. But we want to use cpptestcli in standard version for automation purpose. The cpptestcli is not working. Our Project is a makefile project with a lot of software modules.…
-
Update bdf file for imported project via command line
Hi, I have parasoft professional version. I have imported a project using a bdf file. However, I have changed the project and would like to update the bdf file for the imported project. I can update the bdf file easily. But how do I update the already imported project? If I type: cpptestcli -bdf "cpptestscan.bdf" -data…
-
cpptestcli doesn't function properly
I recently received a license for parasoft and I set everything up on my machine. I even ran a flow analysis on my code with the desktop app together with the local parasoft rep. I am now trying to run parasoft using the command line using cpptestcli. I set things up as written here:…
-
ERROR: Error: No valid license (MachineId: LINUX2-188da250)
Recently we migrated our build machines from RHEL 6.9 TO rhel 7.9. After this we are unable to run static analysis. Even in RHEl 6.9 machine, we hit the same issue given below. ERROR: Error: No valid license (MachineId: LINUX2-188da250) We use parasoft/cpptest/9.5.6.26/run_sa_par.sh. Kindly
-
Jenkins with slave Linux Virtualbox running cpptestcli
Hi, I have a Jenkins job that will perform a svn checkout to a Linux VirtualBox every day. After checking out, the job will perform a make clean and make all operation, before trying to call the cpptestcli command. The command I ran: cpptestcli \ -data "../" \ -import "ProjectName" \ -config…
-
cpptestcli error:unable to find parasoft test installation
When I want to work command line and try to run static analysis in command line take cpptestcli error:unable to find parasoft test installation error. Related image is added to question.
-
Is it possible to ignore compilation flags that block (try-catch)
Hi, C++Test 10.4.1. IAR compiler. Is it possible to ignore compilation flag that ignores blocking try-catch flag. Is it possible to writes rules that ignore such blocking try-catch flag. Thanks
-
CPPTESTCLI - Is there support for IAR project under Windows ?
Hi, IAR project under Windows , Is there support for cpptestcli command line for IAR ? Thanks
-
cpptesttrace
Hi, I am running CLI command cpptesttrace and cpptestcli on a C++ project on Linux. I have a workspace that has many project dependencies. How can I set up the command line to run in one line command several projects. 1. Create bdf for all project. 2. Run cpptestcli on all bdf files for all projects in worksapce in one…
-
Running CPPTESTCLI is causing visual studio 2017 stuck in Preparing Solution.
Hi, Running CPPTESTCLI 10.3.4 from command line is causing visual studio 2017 stuck in Preparing Solution. No issue when running scan from visual studio on the same solution. Any suggestions ? Thanks