-
How to create a rule in RuleWizard to check if the filename contains the foldername?
I want to create a rule that checks if a filename contains the foldername at the beginning of the file, for example: I have a folder named "folder1" containing a folder named "folder2" which contains a c file. This file should be named: "folder1_folder2_myFile.c" Is it possible to create such a rule with the rule wizard?
-
Need a faster way to merge results from clog files
I am attempting to merge 20k clog and tlog files using the load archive test configuration but it is simply taking too long for this to be feasible. Merging 20 files alone takes 40mins. Is there a better way to do this?
-
Parasoft not using autogenerated stubs
Hello, I am currently trying to use Parasoft with a colleague and I am running into problems with the autogenerated stubs. I wrote a unit-test suite and let parasoft generate the stubs for them. I then gave the files to my colleague and when he tries to run the tests it doesn't work because it won't use the autogenerated…
-
How to properly set up a unit test with a data source?
I'm trying to set up a unit test that imports a file of inputs and outputs as a data source. I think i've got the columns mapped properly, but every line reports "Signal SIGSEGV caught: segmentation fault [CPPTEST_SIGSEGV]", coming from the suite .cpp file where the data source is declared:…
-
How to solve the "Invalid compiler config file error" in "Flow Analysis Standard" test
Hi I am using Flow Analysis Standard in parasoft 10. My c project has been compiled in keil without any error and I imported it to parasoft using uvision keil project file. Then I run the Flow Analysis Standard but it issued this error "Invalid compiler config file" for all source files. Two tipical error messages are as…
-
Setup Problem for Static Analysis: Invalid compiler config file
Hi I am using Flow Analysis Standard in parasoft 10. My c project has been compiled in keil without any error and I imported it to parasoft using uvision keil project file. Then I run the Flow Analysis Standard but it issued this error "Invalid compiler config file" for all source files. Two tipical error messages are as…
-
How do I configure cpptestcli to control what is included ?
I have problems with following error message: Test execution: error preparing instrumentation / symbols data for file. In file included from C:\BuildRoot\IO\FCI\CI846\MainTrack\Dev\Current\MCU\Workspace_UnitTests.cpptest\FCI_PROFINET\file-data\CCRC32.cppc160100f\bundled_CCRC32.cpp:4:…
-
Collect Stub Information does not add make_shared in Stubs view in Parasoft C/C++test 2021.1
I am trying to stub the make_shared which is an inline function, to get 100% decision coverage but the Collect Stub Information Test configuration is not adding it to the Stubs view. Here is how I use it in ATM example of Parasoft std::shared_ptr foo = std::make_shared (10); if(foo == null) { // error statements (not…
-
Configuration problems after source update
I had a project with some tests for embedded product. As we are on active development we have usually update our source files in C/C++ test. If the is any tutorial how to update sources I will be very pleased. After this update, I deleted my old generated stubs for this project as they were deprecated. When I tried to…
-
Licensing: Unstable/changing Machine-ID
Changes in the network environment may affect the interface that is used to compute your machine ID (used to identify your license) and result in machine ID instability. You can use the PARASOFT_SUPPORT_NET_INTERFACES environment variable to specify a stable interface and prevent the machine ID from floating. * Set up the…
-
Parasoft C/C++ test not appearing on the VS toolbar
Is any experiencing an issue where Parasoft C/C++ test is not appearing on the VS 2019 toolbar? I can see that Parasoft is installed as it's showing in the VS About box. Also if I launch VS2019 without code, maybe one in every ten times Parasoft will appear in the toolbar. I can then load a project and successfully run…
-
Need a faster way to merge results from clog files
I am attempting to merge 20k clog and tlog files using the load archive test configuration but it is simply taking too long for this to be feasible. Merging 20 files alone takes 40mins. Is there a better way to do this?
-
Excluding resources from Unit Testing
Some users may not want certain resources or files included in the testing scope for their unit tests. These resources can be excluded to ensure that no extraneous data is present in the tests. To indicate which project resources should not be tested during Unit Test Execution follow the steps below for your Development…
-
CLI Fails to import project
I've got almost everything working - gui operation, licensing, bdf generation, but I'm failing at cpptestcli. cpptestcli" -data "/myWorkspace/" -config "myConfig.properties" -localsettings parasoft_CLI/parasoft_localsettings -appconsole stdout -showdetails -import "/myWorkspace/myProject/myDKM" -resource "MyDKM" -bdf…
-
Original function not called despite not registering for stub callback in test case
I had created a stub to test function B. The original function of the stub was used to test function A in the past. Now with this newly created stub, the test case made for function A has broken due to the original function no longer being called, despite not registering for the stub callback. Can someone explain why it is…
-
Keil uVision Unit Testing ITM Simulator Starter Guide
In this tutorial, we'll be going over how to get C++test to run Unit Tests on Keil uVision projects. * In this example, I will be using the following: * Keil uVision MDK-ARM 5.26 * C++test 10.4.2 * Windows 7 64-bit * If you are familiar on how to import your Keil project and/or create a bdf file for Keil skip to step 7. *…
-
Test execution:error reading test log for Test unit for selected sources error while mocking fopen
I'm new to parasoft tool. while writing unit test execution for cpp test I'm facing ****-Test execution:error reading test log for Test unit for selected sources error**** if I'm mocking fopen function in my test suite. Could anyone let me know is there a way to use fopen for writing unittest case for 100% coverage
-
How to use PARASOFT_CPPTEST macro in C/C++test Standard
By default the -DPARASOFT_CPPTEST is added in the project settings in Professional. But where is it defined in Standard Edition where there is no concept of eclipse project files? Here is the answer (thank you @Bogdan Czwartkowski for getting that info)! * Create a file called extras.psrc (name is arbitrary) * add the…
-
Using Parasoft with Lab windows CVI project
Hello, I am trying to configure Parasoft to work on a CVI prj project. I firstly create a .bdf file from my CVI project, then i imported it in Parasoft and tried to configure it. But when i trigger the Test; , i have the errors - Cannot launch process: clang.exe -cc1 "- and Access is denied ... And i can n ot figure where…
-
Disable rule for specific library function
Throughout our code we do not check the return code on memcpy and memset. This is causing rule violations to be reported. We can prevent the warning by adding "(void)" before each function or by adding a parasoft comment before each call but this is not an ideal solution. What we would like to do is disable the rule for…
-
Autogenerated stubs not getting included in build
I have a file with several undefined reference errors (the function definitions of these functions are within another file which is not part of my current module). To resolve these I generated auto stubs and rebuilt my project again. But the undefined reference errors are not going away. How do I resolve this? Thank you
-
metrics report with raw values for each C-function
At the end of my Parasoft C/C++test Report, there is a Metrics Summary section. It is an array with a line for each metric and 4 columns for statistic values (like average and Min & Max). I would like to get rid off such statistics. How could I please get the raw computed value for each item of my project/workspace? For…
-
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:…
-
Missing symbol definition
I have created project using .bdf file for KEIL project. I am able to generate Unit tests successfully. I am facing issue for "Build and Run test executable using uVesion Simulator". It gives me error for not able to find variable from startup file even though startup file is included in project folder. Is there specific…
-
How to test a persistence counter
I'm trying to write a test that runs through a C++ class that tests a persistence counter. Is there any way to set up a Data Source or Parameter block so that the class memory is not wiped between step calls? I've tried putting in multiple Call blocks, which does at least get me to the end of the logic, but doesn't allow…
-
dDuplicate definitions errors
Getting Error[Li006]: duplicate definitions for APIs in .o file. Help me out to resolve this.
-
Deferred initialization of Runtime Library
In some cases where runtime library during initialization needs to have some software/hardware components to be up and running and initialized prior to initialization. e.g.: RTOS. By default: When collecting application level coverage, runtime library is being initialized as early as fist instrumented line of code is being…
-
Running Application Monitoring on QT apps
Managed to build the Application however now i am stuck at this when i tried to run application monitoring on it Any ideas on how to solve this?
-
C/C++test + CMake -> bdf file generation issue
Hello, I am using the CMake extension for creating C/C++ Test projects and what I noticed is, that the extension is also capturing commands which compile/link temporary files during a CMake build. This is especially, or maybe only, the case when the build has dependencies on other static libraries. These commands will also…
-
New User, errors running C/C++ Static Analysis for my chosen coding standard
Hi, When I build my project from within Eclipse, it finishes with: 07:39:00 Build Finished. 0 errors, 0 warnings. (took 14s.306ms) However, when I try to "Test using coding standard", I get the following error repeated for ~50 .c files in my project. Reporting Parasoft C/C++ Metrics Analyzer results... The following setup…
-
multiline parasoft tags to suppress violations
Hello, I'm working under open-source C project, that is not using // style comments/ In some cases, description in the tag is very long, and can't be placed into one line. I want to know will Parasoft Static analysis tools will detect multiline tags like: /* parasoft suppress item MISRAC2012-RULE_20_4-a * "Trick compiler…
-
Quick guide to setup C/C++test Professional (Static Analysis) on Jenkins
This guide will Comprise of 3 Major Parts: 1 - Initial Project Setup 2 - Running from a command line in Jenkins 3 - Setting up the license on the CI/CD (Jenkins) Machine Part 1 : Initial Project Setup Step 1.1 Creating your Build Data file (.bdf) This is the command I used to create the .bdf :…
-
slimboot bios code coverage
I am attempting to use parasoft code coverage for slimboot bios https://github.com/slimbootloader/slimbootloader it appears that code code coverage requires a test app to run on the target which makes use of a runtime library. Since slimboot is a bios. I do not know how to make that work. The slimboot build process…
-
Error collecting information about available definitions
I am trying to write unit tests for a STM32CubeIDE project. I have build the .bdf file and imported it to Parasoft C/C++Test (Standalone). I was able to generate some unit tests, however if I try to run the unit tests or collect stub information I get the following error: "C/C++test analysis errors in /project_folder 1.…
-
Guide and exercise for uploading the correct artifacts for Source Control
What Files should be Checked into Source Control? When using Source control with C/C++test, make sure to have the following files checked-in: * .parasoft * .cproject * .project * All source files that are needed for the project * Test Folders or other folder(s) you use for your Test Suites * Stubs Folders or other…
-
C++ Fast Track Course
Hello Everyone, Can anyone know fast track course for C++. I am trying to look at the course in which the duration is less. I have checked a video course on youtube and InterviewBit, So Can suggest me, Is it a good course?
-
Undefined Reference to Time: C/C++ testing
I am doing a cross platform testing to generate runtime executable with compiler TricoreGCC . I could generate the test cases but am not able to run them or to create the runtime executable. * I have also built the runtime library with the compiler which i am using and added it in to the linker options. * Added the include…
-
Multiple linker errors when using unit tests for a Keil µVision project
Hello, I have a linker issue when using unit tests (cpptest) for a Keil µVision project. The versions are: Keil Arm MDK 5.27 (Windows 10) Parasoft C/C++test Professional 10.5.0.20201022B1126 (Standalone) The project was created by importing the batch generated from Keil IDE. Generating Unit tests and stubs works fine, but…
-
VS 2017 help
Hi, I am using VS2017 and installed Parasoft C++ test v10.4.2 and after installation the Parasoft still doesn't appear in the menu/ What can be the reason for that issue? Thank Sharon
-
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
-
linking failure while running unit testing: cannot find -lstdc++
I'm getting the following error while trying to run the generated unit tests: [cpptest_testrunner.cpp] Checking dependencies for C:\Users\userid\myworkspace.cpptest\project\unit-data\current_tubf179707\cpptest_testrunner.cpp ... [cpptest_testrunner.cpp] ...done. [cpptest_testrunner.cpp]…
-
Structural code coverage with Code Composer Studio
I try to carry out structural code coverage with Parasoft code composer plugin I am using Code Composer Studio v8, My target has Flash memory (KB)=32 , RAM (KB)=12. Parasoft C/C++ makes static analsys very well (And also Visual studio plugin works very well) but when I try to carry out " Run TI CCS v4+ application with…
-
Data and Control Coupling
Hi parasoft family, Do you know whether or not parasoft c/c++ test encompass data and control coupling? Best Regards, -BA
-
error #10010: errors encountered during linking;
Hi great parasoft family First of all I wish good and health days, I really need help,the errors and warning as follows, C/C++test analysis errors in /deneme09042021 1. Test execution: error linking test executable for Test unit for selected sources. error #10198-D: no input section is linked in warning #10202-D: no…
-
generating BDF files.
I have an ubuntu1804 system, I am using docker for Parasoft integration with Jenkins. The Parasoft version I use is "parasoft_cpptest_standard-2020.1.0-linux.x86_64.tar.gz" and I have a flutter project and I build a project with Makefile's make commands. I have a DTP server connected and when I try to run cpptestcli…
-
Functional testing in Parasoft
Hello Everyone, I would like to test in Parasoft the whole functionality - not the single file but e.g. 2 or 3 files working together as a black box (these files exchange data using some internal c interfaces). Of course I will provide some inputs using stubs and check the outputs on the other side but I don't want to test…
-
Parasoft Clion Support
Hi, May I plug Parasoft with Clion IDE. Is it possible?
-
Help with error: IPro: could not get list of included headers
Hi, We have a project that we want to analyze. We used the cpptesttrace tool to create the bdf file, but when running the cpptestcli tool using that bdf file - we got this error: ' IPro: could not get list of included headers'. The compiler is ceva and it's been recognized as 'gcc_5-64' (using the detect-compiler). The bdf…
-
Best Way to Learn C++
Hello All, I am looking to best c++ course and I am confused to choose the right one as a beginner point of view.