GNOME Bugzilla – Bug 520550
Add package and version to the test-report XML
Last modified: 2010-06-15 06:04:55 UTC
the XML report created by test-report should contain the package and version, so that applications reading this file can display this data. another cool options would be: - adding base directory (from top_srcdir) - adding SCM information (like revision or commit object) but those can wait. patch attached.
Created attachment 106632 [details] [review] [PATCH] Add package and version to the test report XML This patch adds the PACKAGE and VERSION using the Makefile.decl as tags to the generated XML. rationale: projects are going to copy Makefile.decl from GLib, and then tweaking it.
hm, i need to investigate if $PACKAGE and $VERSION can reasonably be expected to have the right values for most packages. do you think you can extend the patch to cover gtester-report as well, so we can generate some sample HTML files for glib & gtk+ already?
$PACKAGE and $VERSION are safe and used throughout an autotooled project. here's a new patch, adding an <info> section (so we can expand it later) and patching gtester-report as well to produce a line in the HTML report.
Created attachment 106969 [details] [review] [PATCH] Add package and version to the test report XML this patch adds the <info> section and makes gtester-report parse it and generate a line in the HTML report like this: <h3>Package: %(package)s, version: %(version)s</h3>
Created attachment 107002 [details] [review] [PATCH] Add package and version to the test report XML same patch as above, but this makes gtester-report executable upon installation, so that the check in Makefile.decl that converts the XML into HTML.