summaryrefslogtreecommitdiffstats
path: root/pts-core/results-viewer
diff options
context:
space:
mode:
authorMichael Larabel <michael@phx-laptop.(none)>2008-10-26 13:23:49 -0400
committerMichael Larabel <michael@phx-laptop.(none)>2008-10-26 13:23:49 -0400
commit031aa7c4b28953c8b9fe2ccef4503b8fbf4a97b9 (patch)
tree1a7dc5107c8b4e91bee853ef91940a39d82964cc /pts-core/results-viewer
parent6ce3ea3d071a1ed56337883a5670ef848c30c558 (diff)
downloadphoronix-test-suite-upstream-031aa7c4b28953c8b9fe2ccef4503b8fbf4a97b9.tar.gz
phoronix-test-suite-upstream-031aa7c4b28953c8b9fe2ccef4503b8fbf4a97b9.tar.xz
phoronix-test-suite-upstream-031aa7c4b28953c8b9fe2ccef4503b8fbf4a97b9.zip
pts-core: Rename pts-core/pts-results-viewer/ to
pts-core/results-viewer/
Diffstat (limited to 'pts-core/results-viewer')
-rw-r--r--pts-core/results-viewer/fonts/Sans.ttfbin0 -> 160692 bytes
-rw-r--r--pts-core/results-viewer/pts-logo.pngbin0 -> 4033 bytes
-rw-r--r--pts-core/results-viewer/pts-monitor-viewer.html46
-rw-r--r--pts-core/results-viewer/pts-results-viewer.xsl84
-rw-r--r--pts-core/results-viewer/pts-svg-results-viewer.xsl84
-rw-r--r--pts-core/results-viewer/pts-viewer.css181
-rw-r--r--pts-core/results-viewer/pts.js46
7 files changed, 441 insertions, 0 deletions
diff --git a/pts-core/results-viewer/fonts/Sans.ttf b/pts-core/results-viewer/fonts/Sans.ttf
new file mode 100644
index 0000000..f1466ec
--- /dev/null
+++ b/pts-core/results-viewer/fonts/Sans.ttf
Binary files differ
diff --git a/pts-core/results-viewer/pts-logo.png b/pts-core/results-viewer/pts-logo.png
new file mode 100644
index 0000000..6dc254e
--- /dev/null
+++ b/pts-core/results-viewer/pts-logo.png
Binary files differ
diff --git a/pts-core/results-viewer/pts-monitor-viewer.html b/pts-core/results-viewer/pts-monitor-viewer.html
new file mode 100644
index 0000000..56219f4
--- /dev/null
+++ b/pts-core/results-viewer/pts-monitor-viewer.html
@@ -0,0 +1,46 @@
+<!--
+
+Phoronix Test Suite "Trondheim"
+URLs: http://www.phoronix.com, http://www.phoronix-test-suite.com/
+Copyright (C) 2008, Phoronix Media
+Copyright (C) 2008, Michael Larabel
+
+This program is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 3 of the License, or
+(at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+-->
+
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <title>Phoronix Test Suite - Results Viewer</title>
+ <link href="pts-monitor-viewer/pts-viewer.css" rel="stylesheet" type="text/css" />
+ <script src="pts-monitor-viewer/pts.js" type="text/javascript"></script>
+ </head>
+ <body>
+ <div id="pts_header_top">
+ <div id="pts_header_top_center">
+ <div id="pts_header_top_title">Phoronix Test Suite</div>
+ <div id="pts_header_top_link_group"><a href="http://www.phoronix-test-suite.com/">Phoronix Test Suite</a><a href="http://global.phoronix.com/">Phoronix Global</a></div>
+ </div>
+ </div>
+ <div id="pts_container">
+ <div style="padding: 90px 0;">
+ <div id="pts_monitor"></div>
+ </div>
+ </div>
+ <div id="pts_header_bottom">
+ <div id="pts_header_bottom_center">The <a href="http://www.phoronix-test-suite.com/">Phoronix Test Suite</a> is developed by <a href="http://www.phoronix.com/">Phoronix</a>, an Internet resource devoted to Linux hardware reviews, video driver articles, and much more.</div>
+ </div>
+ <script type="text/javascript">setImagesFromURL();</script>
+ </body>
+</html>
diff --git a/pts-core/results-viewer/pts-results-viewer.xsl b/pts-core/results-viewer/pts-results-viewer.xsl
new file mode 100644
index 0000000..d50869e
--- /dev/null
+++ b/pts-core/results-viewer/pts-results-viewer.xsl
@@ -0,0 +1,84 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+<xsl:template match="/">
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <title>Phoronix Test Suite - <xsl:value-of select="PhoronixTestSuite/Suite/Title" /> - Results Viewer</title>
+ <link href="../pts-results-viewer/pts-viewer.css" rel="stylesheet" type="text/css" />
+ <script src="../pts-results-viewer/pts.js" type="text/javascript"></script>
+ </head>
+ <body>
+ <div id="pts_header_top">
+ <div id="pts_header_top_center">
+ <div id="pts_header_top_title">Phoronix Test Suite</div>
+ <div id="pts_header_top_link_group"><a href="http://www.phoronix-test-suite.com/">Phoronix Test Suite</a><a href="http://global.phoronix.com/">Phoronix Global</a></div>
+ </div>
+ </div>
+ <div id="pts_container">
+ <div class="pts_box">
+
+ <div style="float: left; width: 60%;">
+ <h1><xsl:value-of select="PhoronixTestSuite/Suite/Title" /></h1>
+ <div class="pts_chart_box">
+ <p><strong><xsl:value-of select="PhoronixTestSuite/Suite/Name" /> v<xsl:value-of select="PhoronixTestSuite/Suite/Version" /> (<xsl:value-of select="PhoronixTestSuite/Suite/Type" />)</strong></p>
+ </div>
+ </div>
+ <div style="float: right; width: 40%;">
+ <p align="right"><img src="../pts-results-viewer/pts-logo.png" /></p>
+ </div>
+ <div class="pts_chart_box">
+ <p><xsl:value-of select="PhoronixTestSuite/Suite/Description"/></p>
+ </div>
+
+ <xsl:variable name="idcount"><xsl:value-of select="count(PhoronixTestSuite/System)" /></xsl:variable>
+ <xsl:variable name="idwidth"><xsl:value-of select="floor(815 div $idcount) - 3" /></xsl:variable>
+
+ <h1>System Hardware</h1>
+ <div class="pts_chart_box">
+ <xsl:for-each select="PhoronixTestSuite/System"><div class="pts_column_head"><xsl:attribute name="style">width: <xsl:value-of select="$idwidth" />px;</xsl:attribute><xsl:value-of select="AssociatedIdentifiers" /></div></xsl:for-each>
+ <xsl:for-each select="PhoronixTestSuite/System"><div class="pts_column_body"><xsl:attribute name="style">width: <xsl:value-of select="$idwidth" />px;</xsl:attribute><xsl:value-of select="Hardware" /></div></xsl:for-each>
+ </div>
+ <h1>System Software</h1>
+ <div class="pts_chart_box">
+ <xsl:for-each select="PhoronixTestSuite/System"><div class="pts_column_head"><xsl:attribute name="style">width: <xsl:value-of select="$idwidth" />px;</xsl:attribute><xsl:value-of select="AssociatedIdentifiers" /></div></xsl:for-each>
+ <xsl:for-each select="PhoronixTestSuite/System"><div class="pts_column_body"><xsl:attribute name="style">width: <xsl:value-of select="$idwidth" />px;</xsl:attribute><xsl:value-of select="Software" /></div></xsl:for-each>
+ </div>
+ <h1>Additional Details</h1>
+ <div class="pts_chart_box">
+ <xsl:for-each select="PhoronixTestSuite/System"><div class="pts_column_head"><xsl:attribute name="style">width: <xsl:value-of select="$idwidth" />px;</xsl:attribute><xsl:value-of select="AssociatedIdentifiers" /></div></xsl:for-each>
+ <xsl:for-each select="PhoronixTestSuite/System"><div class="pts_column_body"><xsl:attribute name="style">width: <xsl:value-of select="$idwidth" />px;</xsl:attribute><strong>Test Administrator:</strong> <xsl:value-of select="Author" /><br /><strong>Test Date/Time:</strong> <xsl:value-of select="TestDate" /> (UTC)<br /><strong>PTS Version:</strong> <xsl:value-of select="Version" /><br /><strong>Test Notes:</strong><br /><xsl:value-of select="TestNotes" /></div></xsl:for-each>
+ </div>
+ </div>
+
+ <div class="pts_box">
+ <h1>Test Results</h1>
+
+ <div id="pts_benchmark_area">
+ <xsl:for-each select="PhoronixTestSuite/Benchmark">
+ <div class="pts_benchmark_bar"><span class="pts_benchmark_bar_header"><xsl:value-of select="Name"/></span> <span class="pts_benchmark_bar_version">v<xsl:value-of select="Version"/></span><br /><strong><xsl:value-of select="Attributes"/></strong></div>
+ <div class="pts_benchmark_text">
+ <xsl:if test="not(contains(ResultFormat,'MULTI_'))">
+ <xsl:for-each select="Results/Group">
+ <div style="padding: 5px 0;">
+ <xsl:for-each select="Entry">
+ <strong><xsl:value-of select="Identifier"/>:</strong><span style="padding-left: 5px;"><xsl:value-of select="Value"/></span><br />
+ </xsl:for-each>
+ </div>
+ </xsl:for-each>
+ </xsl:if>
+ </div>
+ <div class="pts_benchmark_img_area"><img><xsl:attribute name="src">result-graphs/<xsl:number value="position()" />.png</xsl:attribute></img></div>
+ </xsl:for-each>
+ </div>
+
+
+ </div>
+ </div>
+ <div id="pts_header_bottom">
+ <div id="pts_header_bottom_center">The <a href="http://www.phoronix-test-suite.com/">Phoronix Test Suite</a> is developed by <a href="http://www.phoronix.com/">Phoronix</a>, an Internet resource devoted to Linux hardware reviews, video driver articles, and much more.<br />Copyright &#xA9; 2008 by Phoronix Media.</div>
+ </div>
+
+ </body>
+</html>
+</xsl:template>
+</xsl:stylesheet>
diff --git a/pts-core/results-viewer/pts-svg-results-viewer.xsl b/pts-core/results-viewer/pts-svg-results-viewer.xsl
new file mode 100644
index 0000000..225d3e7
--- /dev/null
+++ b/pts-core/results-viewer/pts-svg-results-viewer.xsl
@@ -0,0 +1,84 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+<xsl:template match="/">
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <title>Phoronix Test Suite - <xsl:value-of select="PhoronixTestSuite/Suite/Title" /> - Results Viewer</title>
+ <link href="../pts-results-viewer/pts-viewer.css" rel="stylesheet" type="text/css" />
+ <script src="../pts-results-viewer/pts.js" type="text/javascript"></script>
+ </head>
+ <body>
+ <div id="pts_header_top">
+ <div id="pts_header_top_center">
+ <div id="pts_header_top_title">Phoronix Test Suite</div>
+ <div id="pts_header_top_link_group"><a href="http://www.phoronix-test-suite.com/">Phoronix Test Suite</a><a href="http://global.phoronix.com/">Phoronix Global</a></div>
+ </div>
+ </div>
+ <div id="pts_container">
+ <div class="pts_box">
+
+ <div style="float: left; width: 60%;">
+ <h1><xsl:value-of select="PhoronixTestSuite/Suite/Title" /></h1>
+ <div class="pts_chart_box">
+ <p><strong><xsl:value-of select="PhoronixTestSuite/Suite/Name" /> v<xsl:value-of select="PhoronixTestSuite/Suite/Version" /> (<xsl:value-of select="PhoronixTestSuite/Suite/Type" />)</strong></p>
+ </div>
+ </div>
+ <div style="float: right; width: 40%;">
+ <p align="right"><img src="../pts-results-viewer/pts-logo.png" /></p>
+ </div>
+ <div class="pts_chart_box">
+ <p><xsl:value-of select="PhoronixTestSuite/Suite/Description"/></p>
+ </div>
+
+ <xsl:variable name="idcount"><xsl:value-of select="count(PhoronixTestSuite/System)" /></xsl:variable>
+ <xsl:variable name="idwidth"><xsl:value-of select="floor(815 div $idcount) - 3" /></xsl:variable>
+
+ <h1>System Hardware</h1>
+ <div class="pts_chart_box">
+ <xsl:for-each select="PhoronixTestSuite/System"><div class="pts_column_head"><xsl:attribute name="style">width: <xsl:value-of select="$idwidth" />px;</xsl:attribute><xsl:value-of select="AssociatedIdentifiers" /></div></xsl:for-each>
+ <xsl:for-each select="PhoronixTestSuite/System"><div class="pts_column_body"><xsl:attribute name="style">width: <xsl:value-of select="$idwidth" />px;</xsl:attribute><xsl:value-of select="Hardware" /></div></xsl:for-each>
+ </div>
+ <h1>System Software</h1>
+ <div class="pts_chart_box">
+ <xsl:for-each select="PhoronixTestSuite/System"><div class="pts_column_head"><xsl:attribute name="style">width: <xsl:value-of select="$idwidth" />px;</xsl:attribute><xsl:value-of select="AssociatedIdentifiers" /></div></xsl:for-each>
+ <xsl:for-each select="PhoronixTestSuite/System"><div class="pts_column_body"><xsl:attribute name="style">width: <xsl:value-of select="$idwidth" />px;</xsl:attribute><xsl:value-of select="Software" /></div></xsl:for-each>
+ </div>
+ <h1>Additional Details</h1>
+ <div class="pts_chart_box">
+ <xsl:for-each select="PhoronixTestSuite/System"><div class="pts_column_head"><xsl:attribute name="style">width: <xsl:value-of select="$idwidth" />px;</xsl:attribute><xsl:value-of select="AssociatedIdentifiers" /></div></xsl:for-each>
+ <xsl:for-each select="PhoronixTestSuite/System"><div class="pts_column_body"><xsl:attribute name="style">width: <xsl:value-of select="$idwidth" />px;</xsl:attribute><strong>Test Administrator:</strong> <xsl:value-of select="Author" /><br /><strong>Test Date/Time:</strong> <xsl:value-of select="TestDate" /> (UTC)<br /><strong>PTS Version:</strong> <xsl:value-of select="Version" /><br /><strong>Test Notes:</strong><br /><xsl:value-of select="TestNotes" /></div></xsl:for-each>
+ </div>
+ </div>
+
+ <div class="pts_box">
+ <h1>Test Results</h1>
+
+ <div id="pts_benchmark_area">
+ <xsl:for-each select="PhoronixTestSuite/Benchmark">
+ <div class="pts_benchmark_bar"><span class="pts_benchmark_bar_header"><xsl:value-of select="Name"/></span> <span class="pts_benchmark_bar_version">v<xsl:value-of select="Version"/></span><br /><strong><xsl:value-of select="Attributes"/></strong></div>
+ <div class="pts_benchmark_text">
+ <xsl:if test="not(contains(ResultFormat,'MULTI_'))">
+ <xsl:for-each select="Results/Group">
+ <div style="padding: 5px 0;">
+ <xsl:for-each select="Entry">
+ <strong><xsl:value-of select="Identifier"/>:</strong><span style="padding-left: 5px;"><xsl:value-of select="Value"/></span><br />
+ </xsl:for-each>
+ </div>
+ </xsl:for-each>
+ </xsl:if>
+ </div>
+ <div class="pts_benchmark_img_area"><object type="image/svg+xml"><xsl:attribute name="data">result-graphs/<xsl:number value="position()" />.svg</xsl:attribute></object></div>
+ </xsl:for-each>
+ </div>
+
+
+ </div>
+ </div>
+ <div id="pts_header_bottom">
+ <div id="pts_header_bottom_center">The <a href="http://www.phoronix-test-suite.com/">Phoronix Test Suite</a> is developed by <a href="http://www.phoronix.com/">Phoronix</a>, an Internet resource devoted to Linux hardware reviews, video driver articles, and much more.<br />Copyright &#xA9; 2008 by Phoronix Media.</div>
+ </div>
+
+ </body>
+</html>
+</xsl:template>
+</xsl:stylesheet>
diff --git a/pts-core/results-viewer/pts-viewer.css b/pts-core/results-viewer/pts-viewer.css
new file mode 100644
index 0000000..89a5fdf
--- /dev/null
+++ b/pts-core/results-viewer/pts-viewer.css
@@ -0,0 +1,181 @@
+body
+{
+ text-align: center;
+ margin: 0;
+ padding: 0;
+ font-family: arial, helvetica, sans-serif;
+ font-size: 13px;
+ background-color: #F9F9F9;
+ color: #000;
+}
+a
+{
+ color: #3B433A;
+}
+div#pts_header_top
+{
+ width: 100%;
+ margin: 0;
+ color: #FFF;
+ background-color: #2b6b29;
+ border: solid #000;
+ border-width: 0 0 1px;
+}
+div#pts_header_top_center
+{
+ width: 1030px;
+ margin: 0 auto;
+ overflow: hidden;
+}
+div#pts_header_top_title
+{
+ font-size: 42px;
+ font-weight: bold;
+ float: left;
+}
+div#pts_header_top_link_group
+{
+ padding: 14px 0 0;
+ float: right;
+}
+div#pts_header_top_link_group a
+{
+ margin: auto 6px;
+ text-decoration: none;
+ font-weight: bold;
+ font-size: 18px;
+ color: #FFF;
+ padding: 4px 8px;
+ border: solid #EEE 1px;
+}
+div#pts_header_top_link_group a:hover
+{
+ color: #000;
+ background-color: #FFF;
+}
+div#pts_container
+{
+ text-align: left;
+ width: 920px;
+ margin: 0 auto;
+ overflow: hidden;
+ border: solid #EEE;
+ border-width: 0 1px;
+ min-height: 700px;
+ background-color: #FFF;
+}
+div.pts_box
+{
+ text-align: left;
+ border: solid #969696 1px;
+ margin: 10px 10px 20px;
+ padding: 1px 10px 15px;
+}
+div#pts_header_bottom a
+{
+ color: #FFF;
+}
+div#pts_header_bottom
+{
+ width: 100%;
+ margin: 0;
+ color: #FFF;
+ background-color: #2b6b29;
+ border: solid #000;
+ border-width: 1px 0 0;
+}
+div#pts_header_bottom_center
+{
+ margin: 2px auto;
+ padding: 6px 0 10px;
+ width: 970px;
+ overflow: hidden;
+ font-size: 12px;
+ text-align: center;
+}
+div.pts_column_head
+{
+ font-size: 13px;
+ color: #FFF;
+ text-align: center;
+ margin: 0 3px;
+ background-color: #2b6b29;
+ font-weight: bold;
+ float: left;
+ border: solid #3B433A;
+ border-width: 1px;
+}
+div.pts_column_body
+{
+ font-size: 12px;
+ color: #000;
+ text-align: center;
+ margin: 0 3px;
+ background-color: #F8F8F8;
+ float: left;
+ border: solid #66695B;
+ border-width: 0 1px 1px;
+}
+h1
+{
+ margin-top: 10px;
+ font-size: 21px;
+ color: #2b6b29;
+ font-weight: bold;
+}
+div.pts_chart_box
+{
+ width: 95%;
+ overflow: hidden;
+ margin: 5px auto;
+}
+div.pts_chart_box a
+{
+ text-decoration: none;
+ font-weight: bold;
+}
+div.pts_chart_box a:hover
+{
+ text-decoration: underline;
+}
+div#pts_benchmark_area
+{
+ background-color: #FFF;
+ width: 95%;
+ margin: 10px auto;
+ color: #000;
+ overflow: hidden;
+}
+div.pts_benchmark_bar
+{
+ background-color: #2b6b29;
+ color: #FFF;
+ padding: 4px;
+ border: solid #000 1px;
+ clear: both;
+}
+span.pts_benchmark_bar_header
+{
+ font-size: 18px;
+ font-weight: bold;
+}
+span.pts_benchmark_bar_version
+{
+ vertical-align: super;
+ padding-left: 5px;
+ font-size: 10px;
+}
+div.pts_benchmark_text
+{
+ padding: 50px 15px 15px;
+ float: left;
+ overflow: hidden;
+}
+div.pts_benchmark_img_area
+{
+ padding: 15px 0 15px 35px;
+ float: right;
+ overflow: hidden;
+ height: 100%;
+ vertical-align: middle;
+}
diff --git a/pts-core/results-viewer/pts.js b/pts-core/results-viewer/pts.js
new file mode 100644
index 0000000..8313283
--- /dev/null
+++ b/pts-core/results-viewer/pts.js
@@ -0,0 +1,46 @@
+
+function switchShow(i)
+{
+ if(document.getElementById(i).style.display == "none")
+ showObject(i);
+ else
+ hideObject(i);
+}
+function hideObject(i)
+{
+ document.getElementById(i).style.display = "none";
+}
+function showObject(i)
+{
+ document.getElementById(i).style.display = "block";
+}
+function setImagesFromURL()
+{
+ var html = "";
+ var pf = location.href;
+ pf = pf.substring(pf.search(/#/) + 1);
+ var imgarray = pf.split(",");
+
+ for(i = 0; i < imgarray.length; i++)
+ {
+ var exsplit = imgarray[i].split(".");
+
+ if(exsplit[1] == "svg")
+ html += "<p align=\"center\"><object type=\"image/svg+xml\" data=\"" + imgarray[i] + "\" /></p>";
+ else
+ html += "<p align=\"center\"><img src=\"" + imgarray[i] + "\" /></p>";
+ }
+
+ document.getElementById("pts_monitor").innerHTML = html;
+}
+function boldBodyComponents()
+{
+ var el = document.getElementsByName('pts_column_body');
+
+ for(var i = 0; i < el.length; i++)
+ {
+ el[i].innerHTML = el[i].innerHTML.replace(/:/, ":</strong>");
+ el[i].innerHTML = el[i].innerHTML.replace(/,/, ", <strong>");
+ el[i].innerHTML = "<strong>" + el[i].innerHTML;
+ }
+}