-
TFS Agent - Running cpptestcli 10.4 - Need interactive mode
Hi, C++ project under visual studio. Running CPPTESTCLI 10.4 from command line via TFS 2018 Agent. TFS agent is running as service on WIN7 machine. The cpptestcli is causing visual studio 2017 stuck in Preparing Solution. * No issue when running scan from visual studio on the same solution. * No issues when running in…
-
CRITICAL PROBLEM WITH LATEST VISUAL STUDIO 2017 UPDATE
NOTE: The effects both dotTEST and C/C++test 10.3.x and 10.4.x The lastest Visual Studio 2017 updates (version 15.8.x - first released August 14th and the two subsequent releases in two weeks since) introduces a defect into plugin API used by the Parasoft Visual Studio plugins. This defect results in the Parasoft plugins…
-
Rules on File Server are changed to invalid
Hi, My rules are located under shared File Server. In some cases I noticed that the files extension become changed to invalid. rulename.properties.invalid Any suggestions ? Thanks
-
limited to 10 test cases to run
I am executing "Generate Unit Tests" and "Generate Stubs". Run ADS 1.2 Tests executes successfully. It appears that the number of tests generated for a couple of files is 100+. When I execute unit test cases for these 100+ test case test suite, Load Test results indicate that the 10th unit test fails. Always the 10th. Is…
-
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 the Test Executable and Reviewing Results
Hi all, I tried to get the coverage report for generated c++test with the hard-target(i.mx6quad_board). I did everything like create custom-complier, build runtime library(libcpptestrun.so) with custom toolchain. After i successfully generate foo.exe file and then i am also able to run that .exe file on the target i got…
-
How to make eclipse recognize C/C++test macros.
[Tested on: Standalone Professional Edition 10.4.0] If you would like Eclipse not to highlight the "unrecognized" C/C++test macros and get rid of those annoying highlights: Then, you would add the path [install dir]\C++test\10.4\engine\runtime\include to the project settings: They will go away:
-
Any support for Cypress?
I'm using a Cypress PSoC 4 - is there any support for this ARM-based family in C/C++test? I have it compiling under the Keil compiler (I thought that might make things easier) but I don't quite know where to start. Thanks
-
Command Line-Interface Help
Is there a way on the command line interface (CLI) to import custom parasoft rulesets (C++) into parasoft? Please advise.
-
Unable to run Jenkins C++ artifact
Hi all, I am new to Jenkins, I have a simple "hello world" C++ project I use Eclipse IDE for C/C++ Developers (on Windows8) which is generating the makefile. I can run the .exe file produced by Eclipse but I cannot run the .exe file produced by Jenkins (my Jenkins instance is on a Linux server, hosted by cloudbees). I have…
-
Test Execution error
Hi, I am using Parasoft C++ 9.5 with Eclipse Luna C++. My project have multiple build configurations, as I have multiple modules in the project, each with its own main class and functions. When I create and execute a unit test for project A, the unit test runs perfectly, flagging out failed test cases properly. However,…
-
Empty CppTest Result Logs
Hi, I'm currently using Wind River Workbench 3.3.6.1 and C++test for Eclipse 9.5. When I run my auto-generated unit tests (compiled with the ccpentium) against a vxsim target everything works great. My cpptest_results clog/tlog files are created and I can generate my reports. However, when I run through a Target Server…
-
Importing Custom Rulesets to C++ Test using CLI Tools
I am trying to import custom rulesets into c++ test using command line interface. Please advise how to go about doing this. Thanks
-
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
-
Test execution: error linking test executable for Test unit for selected sources.
I created a project in Eclipse 4.6(Neon) in ubuntu 16.04 with parasoft_eclipse_plugin. The test is generated successfully but i am not be able to run the test file because of the linking error. So, my question is how can i link a library that is defined outside of the project.
-
Test Case Editor
Hi, I have some issues to create a test case with the editor of this function (which is a 1st order filter): _void Filter1stOrder ( T_1STORDFLT_VAL * p_ptVal, /*in out*/ const T_1STORDFLT_COEFF * p_ptCoeff, /*in*/ VCMS_real fIn, /*in*/ VCMS_real * p_fOut, /*in out*/ ) { *p_fOut = (p_ptCoeff -> fXiCoeff) * fIn; *p_fOut +=…
-
About Test Case Editor
Hi everyone, I met a weired problem cause there's such no option like 'Test Case Editor' in my CppTest. Did anyone meet the same situation? Should I enable something? Any suggestions or commends are welcome!
-
In struct overflow detect
Hi, I have simple source: include <stdio.h> include <stdint.h> include <stdlib.h> typedef struct sss{ uint8_t ss[255]; int *k; uint8_t ss1[255]; } __sss; int main(){ struct __sss *d; int i; do { d = (struct __sss *) malloc(sizeof(struct __sss)); } while (!d); for( i = 0; i < 257;i++) { d->ss[i] = 1 + i;…
-
Unit tests don't find shared libraries at runtime (c++test v10.3)
I have a project containing unit tests that link against a shared library. The project is created using cpptestscan, with BDF files. The BDF files have correctly captured the compiler and linker options, including the one that tells the executable where to find the shared library (i.e., -Wl,-rpath,/path/to/library). With…
-
Creating Custom Coding Rule for Comments
I am looking to create a custom ruleset to check whether code contains certain comments (block comments/normal comments) during static analysis. Any assistance on this regard would be highly appreciated
-
grs.* localsettings properties are no longer supported in C++test 10.3.3 and later
Starting with C++test 10.3.3, localsettings properties with the "grs" prefix are no longer supported. If they are specified in the localsettings file, then the following will be printed out in the console: Instead of using the grs.* properties, the following properties should be used instead: GRS PROPERTY UPDATED PROPERTY…
-
Code Composer Unit Testing
Hello, Just looking for a clarification. Does "CCS4xConnector.js" or cpptest (in general) support the instrumentation flow required to run a unit test on a TMS320C6x target and generate code coverage metrics? Or is it specifically for runtime analysis of Code Composer 4.x projects. Im very confused as to what level of…
-
cpptesttrace does not collect data.
My build command, under Linux, . I would like to collect build info using cpptesttrace tool. I am using eclipse CLI scriptable build from the command line. The cpptesttrace recognized the project but does not collect the data, bdf was generated but with just few arg info. Any suggestions. Thanks In Advanced, .
-
cpptesttrace does not collect data.
My build command, under Linux, . I would like to collect build info using cpptesttrace tool. I am using eclipse CLI scriptable build from the command line. The cpptesttrace recognized the project but does not collect the data, bdf was generated but with just few arg info. arg=--print-search-dirs Any suggestions. Thanks In…
-
Unit test generation issue with #ifndef preprocessor directive
I am trying to generate unit tests of a module with a "#ifndef" preprocessor directive in the code. It looks like that the code within the "#ifndef" is excluded even if the symbol is not defined and the identifier unidentified error is displayed because type definitions and variables are not parsed. Am I missing something?…
-
Header files not being analyzed/reported (Static Analysis)
How do I enable them in the analysis and report? Using C/C++ Test for VS2013. C++test 9.6.1.97
-
Appling C++Test unit tests to library projects using Code Composer 7 embedded
Greetings, I'm trying to generate unit tests for a code base that implements a library for an embedded application built for Code composer. Unlike the Parasoft Visual Studio version, the CCS 7 system doesn't seem to understand how to run the linker for the TI compiler on a 'project' that only creates an library archive. Do…
-
cppunit test library (c++test 10.3.4)
I've been trying to reproduce the ATM example from the tutorial (eclipse variation using cygwin tools for make & g++). Although the static analysis, test & stub generation work as advertised I'm finding nothing is happing when i try to execute the 'Run Unit Tests'. The target 'test' executible does not seem to be getting…
-
Unit Test unresolved cpptest objects.
The Parasoft plugin for TI Code Composer doesn't seem to pickup the cpptest libraries during a 'Build Unit Test' . The linker options on the project Properties/Parasoft/C++test/Build Settings/Linker options: are '${cpptest:original_options} ${cpptest:project_lib_files}'. Do i need to manually build the libraries?
-
Greenhills C++11
Has anybody had any success using Parasoft 10.3 with Greenhills 2016.5.4 using the --c++11 compiler flag. For some reason even though the project file (.gpj) that is used to import the project settings has that flag it gets left out when I look at the console messages. Once c++11 code is encountered I see errors in the…
-
"Comments shall not be nested." Custom Rule in Static Analysis
Hi, I have to add this rule to perform a static analysis. The rule is the MISRA C RULE 9. "Comments shall not be nested". Can someone help me? Thanks.
-
Create custom rule during Static Analysis in Rule Wizard
Hi everyone. I've some issues to make this rule in Rule Wizard: "Only ISO 9899 standard C shall be used." I hope somebody could help me. Thank you.
-
Static analysis - custom rule for ascii characters >127
Hi, I have to create a custom rule that checks that ascii characters > 127 are not present. I have some issues doing it. Can someone help me? The rule is: "Define identifiers shall be as following: < DEFINE_NAME > = D _ < USER_NAME > Where: < USER_NAME > length is at most 12 characters and not composed by ascii characters…
-
GCC 7.x Support?
I see from documentation that C/C++test supports GNU GCC up through version 6.x. Do you know when C/C++test will have GCC 7.x support?
-
Test Config Rename: Invalid file extensions being added
Hello, I am in a developer situation where I am implementing most of my unit tests via the command line tools while still using the IDE once in a while to use the eclipse-specific-features. I am finding that when I open up the IDE after a while, my imported test configurations get renamed from XXX.properties to…
-
How set parameter vaules of a stub depend on test case
In my project I've a stub of a fread -function (ANSI C file raed). CppTest_Stub_fread (void * _MT_var52, size_t _MT_var53, size_t _MT_var54, FILE * _MT_var55); //stub declaration How to set the out put paramer _MT_var52 from the testcase body? CPPTEST_ON_CALL("foo")->Arg("__return").Assign()->Int(5);…
-
Error Precompiling File
Hi, I have a Eclipse C++ generated project which I want to use Parasoft C++ test to perform unit testing. However, I have linkage problem as C++ test is unable to find my files. If I go into my project's debug folder and run it builds perfectly with no linkage problems. so how do I set the paths/symbols to my references?…
-
Two erros "outside workspace & parasoft project is read only
Hello all there are some bsp files required by my test files i gave the path tried to include them it gave error: Access violation and outside workspace. Then i went to parasoft properties and tried to edit project refrences then i got error project is only readonly
-
Dependency Analysis for C/C++
Is there any C/C++ dependency analysis tool/extension that Parasoft offers? We currently using 10.3 C/C++ tests Automation (Command Line) Edition with DTP Engine for static analysis. We are looking for a dependency analysis tool that could either be standalone or integrated with C/C++ test.
-
Need a recomment
Hi all, Im a newbie, so in the C++, too Someone can give me some trick to learning code? Thanks, Jasper
-
Add .cpp file to static code analysis
Hello, We are using the Automation C/C++ test tool to run static code analysis on our make based project. Is there any way to add .cpp files to the static analysis run. We don't want to include these files in our makefile but just want to run it through static analysis.
-
Compiler Error on identifier "__builtin_addressof"
Hi, I am trying to run a unit test using Parasoft 10.3 plugin for Eclipse Neon and stumbling upon a compiler error. The project compiles successfully when just building the project through Eclipse so there are no compile errors. But, when I try to run a unit test in this project then it fails to compile with a compiler…
-
Setup Problem
* Test execution: error reading test log for Test unit for selected sources.
-
Announcing C/C++test 10.3.4
This week we release C/C++test 10.3.4 (available now on the customer portal). This is a service pack release including both new/enhanced static analysis rules as well as several bug fixes - for full details and a list of all updated rules please check out the release notes @…
-
How to clear temporary files in C++Test Desktop
There is a way to quickly clear the temporary files. This is expecially useful action to perform when debugging issues:
-
Header Files Not Getting Listed in report.html Files
Hello, I have a situation with v10.3 C++test where header files are not getting listed in the report.html files even though the Console output shows numerous entries of "Collecting header files for ...". I am utilizing the -module parameter. What could be causing this issue? Thanks.
-
One Test Suite - per - Project
Hello, I want to generate a Test Suite per project. Rather than per test function, source/header file, or source file as described in "Test Configurations>>Generate Unit Tests>>Generation>>Test Suite>>Test Suite output file and layout" . When I try to manually write these fields myself, I always get the error: "Test suite…
-
Working with Keil 5.x and the --Via option in batch file
-Open the Keil uVision project. -Go to Options for target and open the Output tab. -Check/activate the Create Batch File option. * Run the build from GUI. * The batch file will be generated. It will be named as project name. So let's assume the project name is "ProjectABC" The ProjectABC.bat is now can be executed from…
-
User Rule Management with C++test Desktop and DTP Test Configurations
I've had users asking about sharing User Rules between C++test installs, and visibility of new Rules in DTP. The attached document provides a Quick Start for setting this up.
-
Missing Code Coverage Results
Hello, Is there any way to debug missing code coverage analytics from a linux arm-distribution unit-test?Using the instrumentation flow included with Cpptest and some example QT code, I can see a clog file being generated on my target but Parasoft doesn't display any code coverage after the test is complete and the clog…