Added a stylesheet for the check output as well as a make rule for it...
--- a/configure.ac Sun Feb 10 03:03:30 2008 -0600
+++ b/configure.ac Sun Feb 10 07:40:05 2008 -0600
@@ -169,6 +169,7 @@
dnl #######################################################################
--- a/tests/Makefile.am Sun Feb 10 03:03:30 2008 -0600
+++ b/tests/Makefile.am Sun Feb 10 07:40:05 2008 -0600
@@ -3,6 +3,8 @@
@@ -27,4 +29,14 @@
+ --stringparam project GPlate \ + --stringparam arch `uname -m` \ + --stringparam version $(VERSION) \ --- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/check.xsl Sun Feb 10 07:40:05 2008 -0600
@@ -0,0 +1,146 @@
+<?xml version="1.0" encoding="utf-8"?> +<xsl:stylesheet version="1.1" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:check="http://check.sourceforge.net/ns" + <xsl:param name="project"/> + <xsl:param name="arch"/> + <xsl:output method="xml" + doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" + doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" + <xsl:variable name="script"> + <script type="text/javascript"> + element = document.getElementById(div); + if(element.style.display == 'block') { + element.style.display = 'none'; + element.style.display = 'block'; + <xsl:variable name="css"> + <style type="text/css"> + ul { list-style-type: none; margin: 0px; padding: 0px; } + a, a:hover { color: #000000; text-decoration: none; background-color: #ffffff; } + div { display: none; padding: 0px; margin: 0px; } + div.header { display: block; } + div.passed-message { margin: 2px 0px; background-color: #cfffcf; border: solid 1px #7fff7f; color: #000000; } + div.failed-message { margin: 2px 0px; background-color: #ffcfcf; border: solid 1px #ff7f7f; color: #000000; } + <xsl:variable name="title"> + <xsl:when test="$project"> + <xsl:value-of select="$project"/> + <xsl:text>Unnamed Project</xsl:text> + <xsl:text> - Check Results</xsl:text> + <xsl:template match="check:testsuites"> + <html xmlns="http://www.w3.org/1999/xhtml"> + <xsl:copy-of select="$script"/> + <xsl:copy-of select="$css"/> + <title><xsl:copy-of select="$title"/></title> + <h1><xsl:copy-of select="$title"/></h1> + <td><strong><xsl:text>Version:</xsl:text></strong></td> + <td><xsl:value-of select="$version"/></td> + <td><strong><xsl:text>Architect:</xsl:text></strong></td> + <td><xsl:value-of select="$arch"/></td> + <td><strong><xsl:text>Ran on:</xsl:text></strong></td> + <td><xsl:value-of select="check:datetime"/></td> + <td><strong><xsl:text>Duration:</xsl:text></strong></td> + <td><xsl:value-of select="check:duration"/><xsl:text> seconds</xsl:text></td> + <xsl:template match="check:suite"> + <xsl:if test="check:test"> + <h2><xsl:value-of select="check:title"/></h2> + <xsl:for-each select="check:test"> + <xsl:attribute name="href"> + <xsl:text>javascript:toggle('</xsl:text> + <xsl:value-of select="check:id"/> + <xsl:text>')</xsl:text> + <xsl:value-of select="check:id"/> + <xsl:when test="@result='success'"> + <img src="passed.png" alt="passed"/> + <img src="failed.png" alt="failed"/> + <xsl:element name="div"> + <xsl:attribute name="id"> + <xsl:value-of select="check:id"/> + <xsl:attribute name="class"> + <xsl:when test="@result='success'"> + <xsl:text>passed-message</xsl:text> + <xsl:text>failed-message</xsl:text> + <pre><xsl:value-of select="check:message"/></pre> + <!-- these too are handled manually earlier, but need matches to not be + <xsl:template match="check:datetime"/> + <xsl:template match="check:duration"/> --- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/html/Makefile.am Sun Feb 10 07:40:05 2008 -0600
@@ -0,0 +1,3 @@
Binary file tests/html/failed.png has changed
Binary file tests/html/passed.png has changed