Options of ctc2html

The following command-line options are available with ctc2html. They can be given in any order.

-h
Prints a brief description of the command-line options.
-i inputfile
Specifies the input file name, which must be an execution profile listing produced by ctcpost (or by ctcxmlmerge or by ctcdiff). If this option is omitted, ctc2html reads inputfile from stdin.
-o outputdir
Specifies a directory where the HTML files are generated. Default is the subdirectory "CTCHTML" in the current directory.
-s sourcedir

Specifies additional directories where ctc2html searches for the original source files for making an HTML-lized variant of them. By default, ctc2html looks for the source files by the name given in the input execution profile listing. If they cannot be found this way, the (one ore more) directories specified with -s are used.

This option may be used if the directory setup differs from the setup at instrumenting time, or if the parameter SOURCE_IDENTIFICATION is not set to absolute.

There can be many directories in one –s option, separated by semicolon. There can also be many –s options, which means their union. As implicit (last) –s option, ctc2html uses the directories where the symbol files are, as determined from the input execution profile listing header lines.

-t threshold
Sets the threshold percent, which is 100 by default. TER (Test Effectiveness Ratios) below the threshold specified are highlighted in red. This threshold applies both to structural coverage and to statement coverage, unless for statement coverage a separate threshold is given.
-nsb
(no start browser) At Windows only. By default the PC’s default browser is automatically started to show the generated HTML report. This option prevents it.
--enable-help

Prints a brief description of the configuration settings --enable-XXX=value. The current default values, either the initial hard-coded values or the values that are read from ctc2html.ini file are shown.