generate HTML reports for test-report perf-report full-report.
author15:17:04 Tim Janik <timj@imendio.com>
Thu, 20 Dec 2007 14:14:50 +0000 (14:14 +0000)
committerTim Janik <timj@src.gnome.org>
Thu, 20 Dec 2007 14:14:50 +0000 (14:14 +0000)
2007-12-20 15:17:04  Tim Janik  <timj@imendio.com>

        * Makefile.decl: generate HTML reports for test-report perf-report full-report.

svn path=/trunk/; revision=6172

ChangeLog
Makefile.decl

index a1940b4..02c2f84 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2007-12-20 15:17:04  Tim Janik  <timj@imendio.com>
+
+       * Makefile.decl: generate HTML reports for test-report perf-report full-report.
+
 2007-12-20 15:03:51  Tim Janik  <timj@imendio.com>
 
        * glib/gtester-report: new python script that generates an HTML
index 2c061b3..c86d1fc 100644 (file)
@@ -1,7 +1,8 @@
 # GLIB - Library of useful C routines
 
 #GTESTER = gtester                     # for non-GLIB packages
-GTESTER = $(top_builddir)/glib/gtester # for the GLIB package
+GTESTER = $(top_builddir)/glib/gtester                 # for the GLIB package
+GTESTER_REPORT = $(top_builddir)/glib/gtester-report   # for the GLIB package
 
 # initialize variables for unconditional += appending
 EXTRA_DIST =
@@ -50,6 +51,7 @@ test-report perf-report full-report:  ${TEST_PROGS}
            echo >> $@.xml ; \
            echo '</report-collection>' >> $@.xml ; \
            rm -rf "$$GTESTER_LOGDIR"/ ; \
+           ${GTESTER_REPORT} --version 2>/dev/null 1>&2 ; test "$$?" != 0 || ${GTESTER_REPORT} $@.xml >$@.html ; \
          }
 .PHONY: test test-report perf-report full-report
 # run make test as part of make check