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

-print-home-dir

 

This option instructs PureCoverage to print the name of the directory where PureCoverage is installed, and then exit. 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
 

-version

 

This option instructs PureCoverage to print its version number string to stdout and then exit. 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`"..