aboutsummaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorBrooks Davis <brooks@FreeBSD.org>2020-03-17 16:56:50 +0000
committerBrooks Davis <brooks@FreeBSD.org>2020-03-17 16:56:50 +0000
commit08334c51dbb99d9ecd2bb86a2d94ed06da9e167a (patch)
treec43eb24d59bd5c963583a5190caef80fc8387322 /misc
Notes
Diffstat (limited to 'misc')
-rw-r--r--misc/Makefile.am.inc32
-rw-r--r--misc/context.html55
-rw-r--r--misc/index.html187
-rw-r--r--misc/report.css78
-rw-r--r--misc/test_result.html76
5 files changed, 428 insertions, 0 deletions
diff --git a/misc/Makefile.am.inc b/misc/Makefile.am.inc
new file mode 100644
index 000000000000..e235c7ee364e
--- /dev/null
+++ b/misc/Makefile.am.inc
@@ -0,0 +1,32 @@
+# Copyright 2011 The Kyua Authors.
+# All rights reserved.
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions are
+# met:
+#
+# * Redistributions of source code must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+# * Redistributions in binary form must reproduce the above copyright
+# notice, this list of conditions and the following disclaimer in the
+# documentation and/or other materials provided with the distribution.
+# * Neither the name of Google Inc. nor the names of its contributors
+# may be used to endorse or promote products derived from this software
+# without specific prior written permission.
+#
+# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+dist_misc_DATA = misc/context.html
+dist_misc_DATA += misc/index.html
+dist_misc_DATA += misc/report.css
+dist_misc_DATA += misc/test_result.html
diff --git a/misc/context.html b/misc/context.html
new file mode 100644
index 000000000000..cb8f16c582fb
--- /dev/null
+++ b/misc/context.html
@@ -0,0 +1,55 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<!--
+ Copyright 2012 The Kyua Authors.
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are
+ met:
+
+ * Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+ * Neither the name of Google Inc. nor the names of its contributors
+ may be used to endorse or promote products derived from this software
+ without specific prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+-->
+<html>
+<head>
+ <title>Execution context</title>
+ <link rel="stylesheet" type="text/css" href="%%css%%" />
+</head>
+
+<body>
+
+<h1>Execution context</h1>
+
+<ul>
+ <li>Work directory: %%cwd%%</li>
+</ul>
+
+<h2>Environment variables</h2>
+
+<ul>
+%loop env_var iter
+ <li>%%env_var(iter)%%: %%env_var_value(iter)%%</li>
+%endloop
+</ul>
+
+</body>
+</html>
diff --git a/misc/index.html b/misc/index.html
new file mode 100644
index 000000000000..ca53ff3623fb
--- /dev/null
+++ b/misc/index.html
@@ -0,0 +1,187 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<!--
+ Copyright 2012 The Kyua Authors.
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are
+ met:
+
+ * Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+ * Neither the name of Google Inc. nor the names of its contributors
+ may be used to endorse or promote products derived from this software
+ without specific prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+-->
+
+<html>
+<head>
+ <title>Tests summary</title>
+ <link rel="stylesheet" type="text/css" href="%%css%%" />
+</head>
+
+<body>
+
+
+<h1>Summary of test results</h1>
+
+<p class="overall">Overall result:
+%if bad_tests_count
+ <font class="bad">%%bad_tests_count%% TESTS FAILING</font>
+%else
+ <font class="good">ALL TESTS PASSING</font>
+%endif
+</p>
+
+<table class="tests-count">
+ <thead>
+ <tr>
+ <td>Test case result</td>
+ <td>Count</td>
+ </tr>
+ </thead>
+
+ <tbody>
+%if length(broken_test_cases)
+ <tr class="bad">
+ <td><a href="#broken">Broken</a></td>
+ <td class="numeric">%%length(broken_test_cases)%%</td>
+ </tr>
+%else
+ <tr>
+ <td>Broken</td>
+ <td class="numeric">%%broken_tests_count%%</td>
+ </tr>
+%endif
+%if length(failed_test_cases)
+ <tr class="bad">
+ <td><a href="#failed">Failed</a></td>
+ <td class="numeric">%%length(failed_test_cases)%%</td>
+ </tr>
+%else
+ <tr>
+ <td>Failed</td>
+ <td class="numeric">%%failed_tests_count%%</td>
+ </tr>
+%endif
+ <tr>
+%if length(xfail_test_cases)
+ <td><a href="#xfail">Expected failures</a></td>
+%else
+ <td>Expected failures</td>
+%endif
+ <td class="numeric">%%xfail_tests_count%%</td>
+ </tr>
+ <tr>
+%if length(skipped_test_cases)
+ <td><a href="#skipped">Skipped</a></td>
+%else
+ <td>Skipped</td>
+%endif
+ <td class="numeric">%%skipped_tests_count%%</td>
+ </tr>
+ <tr>
+%if length(passed_test_cases)
+ <td><a href="#passed">Passed</a></td>
+%else
+ <td>Passed</td>
+%endif
+ <td class="numeric">%%passed_tests_count%%</td>
+ </tr>
+ </tbody>
+</table>
+
+<p><a href="context.html">Execution context</a></p>
+
+<p>Timing data:</p>
+
+<ul>
+ <li>Start time: %%start_time%%</li>
+ <li>End time: %%end_time%%</li>
+ <li>Duration: %%duration%%</li>
+</ul>
+
+
+%if length(broken_test_cases)
+<h2><a name="broken">Broken test cases</a></h2>
+
+<ul>
+%loop broken_test_cases iter
+ <li>
+ <a href="%%broken_test_cases_file(iter)%%">%%broken_test_cases(iter)%%</a>
+ </li>
+%endloop
+</ul>
+%endif
+
+
+%if length(failed_test_cases)
+<h2><a name="failed">Failed test cases</a></h2>
+
+<ul>
+%loop failed_test_cases iter
+ <li>
+ <a href="%%failed_test_cases_file(iter)%%">%%failed_test_cases(iter)%%</a>
+ </li>
+%endloop
+</ul>
+%endif
+
+
+%if length(xfail_test_cases)
+<h2><a name="xfail">Expected failures</a></h2>
+
+<ul>
+%loop xfail_test_cases iter
+ <li>
+ <a href="%%xfail_test_cases_file(iter)%%">%%xfail_test_cases(iter)%%</a>
+ </li>
+%endloop
+</ul>
+%endif
+
+
+%if length(skipped_test_cases)
+<h2><a name="skipped">Skipped test cases</a></h2>
+
+<ul>
+%loop skipped_test_cases iter
+ <li>
+ <a href="%%skipped_test_cases_file(iter)%%">%%skipped_test_cases(iter)%%</a>
+ </li>
+%endloop
+</ul>
+%endif
+
+
+%if length(passed_test_cases)
+<h2><a name="passed">Passed test cases</a></h2>
+
+<ul>
+%loop passed_test_cases iter
+ <li>
+ <a href="%%passed_test_cases_file(iter)%%">%%passed_test_cases(iter)%%</a>
+ </li>
+%endloop
+</ul>
+%endif
+
+
+</body>
+</html>
diff --git a/misc/report.css b/misc/report.css
new file mode 100644
index 000000000000..ede4c5255fd6
--- /dev/null
+++ b/misc/report.css
@@ -0,0 +1,78 @@
+/* Copyright 2012 The Kyua Authors.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are
+ * met:
+ *
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ * * Neither the name of Google Inc. nor the names of its contributors
+ * may be used to endorse or promote products derived from this software
+ * without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */
+
+body {
+ background: white;
+ text-color: black;
+}
+
+h1 {
+ color: #00d000;
+}
+
+h2 {
+ color: #00a000;
+}
+
+p.overall font.good {
+ color: #00ff00;
+}
+
+p.overall font.bad {
+ color: #ff0000;
+}
+
+pre {
+ background-color: #e0f0e0;
+ margin-left: 20px;
+ margin-right: 20px;
+ padding: 5px;
+}
+
+table.tests-count {
+ border-width: 1;
+ border-style: solid;
+ border-color: #b0e0b0;
+ padding: 0;
+}
+
+table.tests-count td {
+ padding: 3px;
+}
+
+table.tests-count td.numeric {
+ text-align: right;
+}
+
+table.tests-count tr.bad {
+ background: #e0b0b0;
+}
+
+table.tests-count thead tr {
+ background: #b0e0b0;
+}
diff --git a/misc/test_result.html b/misc/test_result.html
new file mode 100644
index 000000000000..4c4a4132b66c
--- /dev/null
+++ b/misc/test_result.html
@@ -0,0 +1,76 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<!--
+ Copyright 2012 The Kyua Authors.
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are
+ met:
+
+ * Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+ * Neither the name of Google Inc. nor the names of its contributors
+ may be used to endorse or promote products derived from this software
+ without specific prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+-->
+<html>
+<head>
+ <title>Test case: %%test_case%%</title>
+ <link rel="stylesheet" type="text/css" href="%%css%%" />
+</head>
+
+<body>
+
+<h1>Test case: %%test_case%%</h1>
+
+<ul>
+ <li>Test program: %%test_program%%</li>
+ <li>Result: %%result%%</li>
+ <li>Start time: %%start_time%%</li>
+ <li>End time: %%end_time%%</li>
+ <li>Duration: %%duration%%</li>
+ <li><a href="context.html">Execution context</a></li>
+</ul>
+
+<h2>Metadata</h2>
+
+<ul>
+%loop metadata_var iter
+ <li><tt>%%metadata_var(iter)%% = %%metadata_value(iter)%%</tt></li>
+%endloop
+</ul>
+
+<h2>Standard output</h2>
+
+%if defined(stdout)
+<pre>%%stdout%%</pre>
+%else
+Test case did not write anything to stdout.
+%endif
+
+<h2>Standard error</h2>
+
+%if defined(stderr)
+<pre>%%stderr%%</pre>
+%else
+Test case did not write anything to stderr.
+%endif
+
+</body>
+</html>