Showing posts with label parasoft. Show all posts
Showing posts with label parasoft. Show all posts

Saturday, May 19, 2012

ParaSoft C++Test --help


C++test Version 6.7.7.2 (Jan 16 2007)

Copyright (C) 1998-2007 by ParaSoft Corporation

usage: cpptest [cpptest_options] [compiler_options] file...

cpptest_options:

-Zicpf , --Zinput_cpf_project

file: C++test project for testing

(ignores all additional files and

options)

-Zocpf , --Zoutput_cpf_project

file: output C++test project

-Zdsp , --Zdsp_project file: DSP/DSW project file for

testing (ignores all additional

files and options)

-Zvcproj , --Zvcproj_project file: VC++ .NET project file for

testing (ignores all additional

files and options)

-Zdc , --Zdsp_config name: name of active configuration

for specified DSP/VCPROJ file

-Zgpj , --Zghs_project file: GHS project file for

testing (ignores all additional

files and options)

-Zmcl , --Zmake_command_line

param: command line to be used to

extract files and options,

compiler/linker executables should be

replaced with ${CPPTEST_SCAN} variable

(ie: "make CXX=\${CPPTEST_SCAN} all");

creates a new project based on

extracted files and options;

-Ztf , --Ztest_file name: file or test unit name

to test

-Zeh , --Zexport_harness name: file or test unit name

to export harness for, if empty

then harness is exported for

all files from the project

-Zrl , --Zread_logs name: file or test unit name

to read logs for, if empty

then logs are read for

all files from the project

-Ztc , --Ztest_config name: test configuration

to be used for current run

-Zpc , --Zproject_config name: project configuration

to be used in current project

-Zso , --Zsave_options file: C++test project;

adds the source file(s) and options

specified in the command-line

to the project;

creates the project if it does not

exist,else updates the existing one

-Zitc , --Zimport_test_cases

allows specifying external test

cases file to use during unit

testing

file: test cases file or location

where .tcr files are stored

-Zito , --Zimport_test_objects

allows specifying external test

objects file to use during unit

testing

file: test objects file or location

where .tor files are stored

-Zis , --Zimport_suppressions

import Coding Standards

Suppressions into project,

file: suppressions file

-Zrf , --Zreport_file file: file for test result output

-Zgh , --Zgenerate_html name: template file name for HTML

report generation

-Zhrd

, --Zhtml_report_directory

dir: location of HTML report

-Zgx, --Zgenerate_xml generate XML report

-Zxrd
, --Zxml_report_directory

dir: location of XML report

-Zpr, --Zpublish_results publish Coding Standards results

on TCM

-Zf, --Zforce force output project overwriting

if exist

-Zow {on
off}, --Zoverwrite {on
off} turning on/off report_file over-

writing (default is on)

-Zoe [quiet], --Zonly_errors [quiet] report only errors

(quiet - suppresses success

message on no errors/violations)

-Zq, --Zquiet do not generate test results

-Zvm, --Zverbosity_mode level: verbosity level 0 - 2

(0 disables verbose messages)

(default is 0)

-Zgrs {on
off}, --Zgrs {on
off} enable/disable GRS reporting

-Zga , --Zgrs_attribute allows specifying GRS attribute

name: must have form key=value

-Zcs, --Zcompile_source compile original user source

-Zrs, --Zreread_symbols enforce symbols re-reading

(for Unit Testing only)

-Zlc , --Zlist_config lists available configurations

param: PROJECT, TEST, HTML

-Zecf, --Zexpand_command_files Expand all options contained in

supplied command files

(aka response files)

into the command line.

This option is recommended

with -Zso.

-Znt --Zno_tests do not perform any tests

-h, --help this help

-V, --version version information

Monday, March 22, 2010

error information shall be tested




Violations:
misra2004-16_10: If a function returns error information, then that error information shall be tested

Description:

"A function (whether it is part of the standard library, a third party library or a user defined function) may provide some means of indicating the occurrence of an error. This may be via an error flag, some special return value or some other means. Whenever such a mechanism is provided by a function the calling program shall check for the indication of an error as soon as the function returns.

However, note that the checking of input values to functions is considered a more robust means of error prevention than trying to detect errors after the function has completed (see Rule 20.3). Note also that the use of errno (to return error information from functions) is clumsy and should be used with care (see Rule 20.5)."

Note:
Rules checks usage of function calls which returns int value and reports violation when this value is not assigned or checked.

Benefits:
Rule helps writing safety code.

Example:

int SomeFunctionReturningError( );

void foo( )  {
   SomeFunctionReturningError( );  // Violation
}

Repair:

int SomeFunctionReturningError( );

int foo( )  {

   int x;
   x = SomeFunctionReturningError( );        // OK
   if (SomeFunctionReturningError( ));       // OK

   switch (SomeFunctionReturningError( )) {  // OK

   }

   return SomeFunctionReturningError( );     // OK
}

References:
MISRA-C:2004 Guidelines for the use of the C language in critical systems

Chapter 6, Section 16

Author
ParaSoft


Thursday, March 18, 2010

ParaSoft C++Test: Precompile failed



Process exited with code -1073741515


C++Test cannot see cl.exe (with Visual Studio), gcc (with Linux) and its dependencies.

How to fix:
-------- + Make sure that PATH environment is set. We can test the PATH by cmd.exe or shell (env command). Run cl.exe --version to check the path and its dependencies.
-------- + Maybe add $(INSTALL_DIR)\Microsoft Visual Studio 8\Common7\IDE if mspdb80.dll was not found by cl.exe.




Tags: -1073741515, 1073741515, C++Test, parasoft, Precompile, Error, error result, cl.exe, error code, exit code, from cl, visual studio


Tuesday, March 16, 2010

ParaSoft C++Test: How to test



  1. Open file(s) | Open.
  2. Read Symbols: to pre-compile (PreCompiling, Preparing harness dir, Collecting lib, Collecting symbol definitions, Matching symbol definitions, Creating test driver, Done)
  3. Tests | Test Using | Configurations | Build-in | CodingStandard | Choose CRules, MustHaveRules, NiceToHaveRules, SecurityRules, ShouldHaveRules, ShouldHaveRulesWithPortability. See Coding Standards tab and output window to get information.

ParaSoft C++Test: Test Menu


 

 
# Read Symbols: Prompts C++test to parse the selected file, then represent its symbols in the Symbol tree.

 

 
# Build Test: Tells C++test to parse the selected file, read its symbols, instrument it (if necessary), then compile and link it.

 
# Re-read Symbols: Prompts C++test to re-parse the selected file, then refresh its symbols in the Symbol tree. This option is useful if you have changed/updated any of the source code in a file since the last test, or when there are changes in the static or dynamic libraries that are used by the project under test.

 
# Rebuild Test: Tells C++test to re-parse the selected file, read its symbols, instrument it (if necessary), then compile and link it. This option is useful if you have changed or updated any of the test parameters since the last test.

 
# Test Using: Tells C++test what Test Configuration (a predefined test scenario) you want it to run for the current test. Test Configurations are described in Selecting and Customizing Test Configurations.

 
# Test Configurations: Opens the Test Configurations panel, which allows you to add and modify Test Configurations. Test Configurations are described in Selecting and Customizing Test Configurations.

 
# Import Results: Imports coding standards analysis results from a command-line test into the C++test GUI. See Importing Command-Line Coding Standards Analysis Results to the GUI for details.

 
# Stop: Stops a test once it has begun. Can also stop the Read Symbols and Build Test actions.

  
Status:
  • Precompiling error with code -1...515: Make sure the PATH environment of compiler is correct. The C++Test cannot search the compiler sothat it cannot build source code. 

Friday, March 12, 2010

vav.vn registered


New address were born in March, 12, 2010. This is vav.vn.
Some suggestions are:
+ v^v
+ vAv
+ vav
+ VaV
+ Viet AntiVirus
+ viet antivirus
+ viet anti-virus
+ Viet anti-virus
+ Viet Anti-Virus
+ Viet AntiVirus
+ < new ideas welcomed>


Wednesday, March 10, 2010

Unzip and run apps











All softs are totally free. Enjoy using and comments.

0. Best All Time
--------  Convert PDF
--------  EagleGet
--------  Notepad++ and its plugins.
--------  Email encoder to image + Text to Image + Image resizer
--------  Everything + neoSearch
--------  Zim Desktop wiki
--------  VLC
--------  Unikey
--------  7zip
--------  Reboot Restore
--------  Bright Explorer
--------  Process Explorer
--------  Belarc Advisor
--------  ScreenHunter Free
--------  PDF XChange Viewer
--------  DriveTheLife - spyware AVG checked

a. Text editors for computer programming:
--------  Notepad++ and its plugins.
--------  Exuberant ctags
--------  TextDiff
--------  Dev-C++
--------  Code::Blocks
--------  Source Navigator
--------  Git
b. File management:
-------- FreeCommander
-------- Q-Dir
-------- DualXplorer
-------- HFS - Http Filesystem Server
-------- NexusFile
-------- FileMenu Tools Addin
-------- DocFetcher
-------- Launchy
c. Planning:
-------- Extora
-------- Kalender
d. RSS:
-------- GreatNews and its portable
-------- Sputnik
e. Synchronous:
-------- FreeFileSync
f. Remotely:
-------- PuTTY and its family
-------- NX client
-------- TightVNC
-------- TeamViewer hoangviet2105/nug
-------- mRemote
g. Utilities:
--------  Ninite - install & update programs at once
-------- fencryption and its portable
-------- TrueCrypt
-------- Ultra Surf
-------- Wallpaper SlideShow LT
-------- Double Driver
-------- Driver Booster
-------- Daemon tools lite
-------- UnstoppableCopier
-------- MagicDisc
-------- System Explorer
-------- Free Hide IP
-------- EssentialPIM
-------- Universal Viewer
-------- Quick Config
-------- Orbit downloader
-------- WinHTTrack Website Copier
-------- Mobipocket Reader
-------- FreeScreen to Video
-------- Webpage to PDF
-------- doPDF
-------- Qemu Manager + http://www.davereyn.co.uk/download.htm
-------- Free iPad Video Converter
-------- Revo Uninstaller Free edition
-------- SmillaEnlarger
-------- PeerBlock Portable
-------- Startup Delayer
-------- Folder Guide
-------- TreeSize Free + SpaceSniffer + WinDirStat + Disktective + JDiskReport + GetFoldersize + RidNacs + scanner + Free Disk Analyzer  + Space Sniffer
-------- Fast Duplicate File Finder
-------- FreeNAS
-------- Freemake Video downloader/converter
-------- 64-bit Checker
-------- Free Opener
-------- Universal Viewer + Installer
-------- MultiVNC
-------- Hardwipe
-------- CPU-Z
-------- HWMonitor
-------- MyPublicWiFi
-------- Wireless Network Watcher
-------- CookieSpy
-------- LiveCapture
-------- SecureDelete: 1 2
-------- Folder Lock
-------- Privacy Agent
-------- AllAppArea:: AllMyApps Ninite SpeedInstall FreeApps
-------- ToolWiz Time Freeze + Reboot Restore
-------- StartUp Delayer
-------- PassBox
-------- ReadyBoost
-------- PREDATOR locks & unlocks PC via USD stick
-------- Caesium (App, nen hinh anh) or web Photoczip or VJC
-------- Cameyo: portable apps
-------- Win8 App Remover for ModernUI
-------- FBReader: free e-book reader
--------  TDSS Killer and others


h. Free hosts/links:
-------- imagehost for temp
-------- PDF my url
-------- WinMateimprove your computers performance and speed up your PC
--------  lmgtfu  
--------  SurveyMonkey
--------  
--------  
--------  

i. Benchmark:
-------- Novabenchk
-------- FRAPS
-------- OpenSourceMark
-------- SuperPi (CPU)
-------- Fraps (VGA card)
-------- CrystalDiskInfo
-------- HDD Raw Copy + portable
-------- HDD Health, HD Tune, HDD ScanFlobo Hard Disk Repair
-------- AutoLock
-------- Windows Services Monitor
j. Emulator:
-------- Qemu (Ref1 Ref2 Ref3 Ref4

k. Add-ons:

* Google
-------- Password Alert
-------- Facebook Protector
-------- [Google] Bookmark manager

* Firefox
-------- Best Proxy Swicher
-------- LookOut (decoding TNEF winmail.dat)
-------- Forward (Forward as inline, attachment)
-------- Quote Colors
-------- Dictionary Search
-------- quotecollapse
-------- Quick Translator
-------- Memory Fox
-------- Adblock Plus
-------- Print pages to PDF
-------- Addon Youtube Unblocker 
-------- Google Bookmark
-------- Click and Clean
--------  ProxMate: go through prohibited info/data

l. Webs:

-------- amazon.com/viet2105/awl15042013/hoangviet2105g
-------- 5giay.vn mdung/wlokay
-------- Kwiqpoll + quyet.de
-------- altonjuve/minus.com
-------- sanco.soha.vn maidung8086 email/wXRu6R91
-------- c1.game5.vn/
-------- id.ssgroup.vn/
-------- replicon + OfficeTimer
-------- blackle + gmbtg
-------- cmw: 7000087175/ access00076652
-------- vcb: 569704A59 (0071003105849) tuyen (0011004055274) loi (0181003439707 - 93 2401592) huuchung - vcb song than (046.100.0418998) DuongQua (0071001489215 ) CChau (0071004782738) NyBMT (0231000579191)
-------- bidv: 31510000849863 (phu nhuan)
-------- anz: 7180100 (4215951100021820) + 4628440000199887 + fptshop: 4628440000199879
-------- shn: 700002422935
-------- scb: 3542468461 (4720740000633950) moto (3564800000838420)
-------- agri: 6320205418142 chi nhanh TaySG
-------- acb: 179525229 (phan dang luu)
-------- dab: 0101431029 meNGONG 0104326885 CaoLuong(0109613699) emY- NgHoangThuyQuynh (0104895860)
-------- vna: 92439168
-------- mobi: 849xxx34x34
-------- vina: 094.8723.00x
-------- viettel: 096.7037.x04  
-------- sjc: 1 2
-------- acs: 302497101001814697
-------- PIT: 8004043129 + tracuuMST + BHXH 7909149265 >> 0206220852
------- cmt: 0010 8000 9026 >> 20150210
-------- sodo: Creately https://www.draw.io/ lovelycharts.com gliffy.com cacoo.com lucidchart.com + UML sequence diagram
-------- Ebook Database
-------- Infographics: Visual.ly Wordle Hohli ManyEyes Google Public Data Explorer Planet Stat Creately
-------- Share screen: screenleap
-------- JPEGMini + Background Burner
-------- 2epub
-------- acronym finder
-------- pdf unlock 1 2
-------- Thue
-------- socialav
-------- Ky thuat vien
-------- Calendar 1 2 3
-------- Domains 1 2 3 4 5
-------- UML online
-------- Unshorten.It Unshorten.com Xpnd.It
-------- scan virus online
-------- English Grammar Checker:: After The Deadline or PolishMyWriting
-------- flash player checker , check version in Windows, uninstaller
-------- web proxy: 1 2 3 4* 5 6 7 8 9 10 11 12 13 14 15 16 17 18* 19 20
-------- x-Proxy
-------- VNNIC

m. Programming:
------- google code search
------- krugle
------- MyTool in CodePlex + git clone altonjuve
------- GNU tools for Win
------- koding hoangviet2105 yahoo mail


n. Forums:
-------- xmarks: altonjuve/awl pin: 66F22944
-------- probux: altonjuve/awl
-------- http://xanhpôn.vn/ or http://xn--xanhpn-mxa.vn/
-------- Body Mass Index 
-------- dogsinvietnam.com: viet/awl
-------- forum.vietpet.com: hviet/awl


o. Cloud:

-------- Dropbox viet + dung + vav.info + viet2105_at_iClould_dot_com. Send to Dropbox: 1 2 3 4 5
-------- outlook.com viet2105, hoangviet2105, bsbac, bsthuy, ngong, fansipan, ga.trong OneDrive refl
-------- me.com viet2105

-------- zoho.com hoangviet2105@/awl
-------- box.com hoangviet2105@/awl
-------- Alfresco
-------- my.jolicloud.com altonjuve/awl hoangviet2105@
-------- www.cloudme.com alton/awl
-------- desktop.glidesociety.com/ altonjuve2105/awl
-------- www.zeropc.com /awl
-------- Weezo PC server at home
-------- CloudConvert.org
-------- Sher.ly: share huge files between 2 PCs + safeshared for 4GB file + entouragebox shared folder
-------- OneTimeBox (file share) + WiFi File Transfer + AirDroid + AirForShare + 

AirDisk Pro

-------- Mega hoangviet2105@g total 50GB max


-------- box.com: hoangviet2105@yawl total 5GB max
-------- gdrivehoangviet2105 Only stored files (.PDF, .DOC, .JPG, etc.) count towards your storage limit.  total 5GB max + My Dropzone
-------- skydrivehoangviet2105 link download
-------- jolicloud: altonjuve@awl
-------- pogoplug drive
-------- mediafire.com/hoangviet2105@gawl register link
-------- shared.com/hoangviet2105@gawl  signup home pricing
-------- tresorit Vi12
-------- hubiC hoangviet2105#g/ alton juve/wl
-------- FreeNAS small/tiny server

p. Airlines:

- Vietjetair: 19001886
- Jetstar: 19001550 – 0835473550
- Vietnamairlines: 1900545486 – (04/08)38320320 – (04)39381835 – (04)39381836
-------- vna member: 92439168

- booking: vna + payment where + problems + vna2 + vna3
- booking: vja
q. Windows Run:
-------- Windows Memory Diagnostic MdSched.exe
-------- Performance Monitor: perfmon.exe
-------- Computer Management/Event Viewer/Device Manager: compmgmt.msc
-------- User Accounts:  netplwiz 
-------------- Disk Cleanup: cleanmgr.exe
-------------- Group Policy Editor: gpedit.msc
-------------- MS Config/System Configuration:      msconfig
-------------- System Information: msinfo32.exe
-------------- Task Scheduler taskschd.msc


r. Android:
------- OTA Rootkeeper:
------- APK downloader in Google Play
------- AndroidHub
------- AppLock
------- AntiRoid
------- QR Roid Zapper or QR Droid Private or QR Code Scanner
------- Root Browser
------- Tasker (pay)
------- AirDroid  
------- Link2SD
------- Network Connection
------- Clean Master

s. iOS:
-------

t.

Game

* Thi 9d352973d

From:
http://www.pendriveapps.com/
http://roadkil.net/
0. Tipradar.com
3. http://qduc.blogspot.com/ - trang tiếng Việt
8. http://www.visaonho.info/ - trang tiếng Việt
9. http://www.ictsoft.tk/ - trang tiếng Việt





Tags: parasoft, useful tools, vav, pendrive, pendriverapps, free, MagicDisc


Labels