#265 Add testing of opreport --xml option to testsuite

None
closed
None
5
2015-01-13
2014-01-10
Maynard Johnson
No

Some simple tests using xmllint could be incorporated into oprofile-tests to validate XML output of opreport, for example:

1)
opreport --symbols --callgraph --xml --outputfile=out.xml
xmllint --noout --schema <oprof-install-dir>/share/doc/oprofile/opreport.xsd out.xml

2)
opreport --symbols --debug-ifo --xml --outputfile=out.xml
xmllint --noout --schema <oprof-install-dir>/share/doc/oprofile/opreport.xsd out.xml

3)
ophelp --xml > out.xml
xmllint --noout --schema <oprof-install-dir>/share/doc/oprofile/ophelp.xsd out.xml

Discussion

  • A patch was posted to the oprofile-list on May 28.

     
    • status: open --> open-fixed
    • assigned_to: Maynard Johnson
    • Group: -->
     
  • The patch was pushed upstream on May 30. Bug fixed.

     
    • Status: open-fixed --> closed