Informational options

The informational options each return a single item of information. You can specify these options, one at a time, on a command line after purecov. You can also embed them in other commands for evaluation before the commands are executed

Option

Default

-help

 

Prints a short help message about how to use the command line options.

 

 

 

-print-home-dir

 

Prints the name of the directory where PureCoverage is installed, then exits. You can use this option, for example, to build the compiler command when including the purecov.h file from the installation directory:

$CC -c $CFLAGS -I`purecov -print-home-dir` foo.c
 

 

 

-test-license

 

Verifies that you are licensed for the correct feature version of PureCoverage.

 

 

 

-usage

 

Prints a short help message about how to use the command line options.

 

 

 

-version

 

Prints the PureCoverage version number string to stdout and then exits. You can use this option, for example, to identify which version of PureCoverage is in use while running a test suite, by incorporating this line in your test harness scripts:

#!/bin/sh
...
 echo "Run monitored by PureCoverage: \
    `purecov -version`"..