The XML-Merging Tool ctcxmlmerge
XML reports for different build variants of the same code base can be merged with the tool ctcxmlmerge.
If a code base is compiled in different variants using conditional compilation, flags etc., the variants usually have to be tested independently. Hence the coverage data shall not be combined and it is typically not possible to generate a combined report with ctcpost for the symbol- and data files involved.
With ctcxmlmerge, it is possible to combine these kind of results based on the XML output of ctcpost.
Note: The user has to decide if this kind of merging is appropriate for the code and test
cases. The merging algorithm relies on formal criteria only, like file names, function
names and their line numbers.
Command line syntax
ctcxmlmerge inputfiles {-p | -x } filename [@optionfile] [-f source-file-list] [-nf source-file-list] [-h] [-ndl]
Options of ctcxmlmerge
- -h
- Prints a brief description of the command-line options.
- inputfiles
- Two or more XML reports separated by a space. Only XML reports generated by ctcpost can be merged this way. The resulting reports of ctcxmlmerge cannot be merged any further.
- -p filename
- The output is a text report (full content).
- -x filename
- The output is an XML report (summary levels only).
- -f source-file-list
- Restricts the output to the given source files. The source files are separated with semicolon, and the list shall be included in double quotes.
- -nf source-file-list
- Excludes the given source files from the output. The source files are separated with semicolon, and the list shall be included in double quotes.
- -ndl
- Drive letters in source file names are ignored for the identification of file names as well as in the output.
- @optionfile
- All commands and inputs can also be loaded using a text file containing all options.