summaryrefslogtreecommitdiff
path: root/testing/do-tests.in
diff options
context:
space:
mode:
Diffstat (limited to 'testing/do-tests.in')
-rwxr-xr-xtesting/do-tests.in54
1 files changed, 35 insertions, 19 deletions
diff --git a/testing/do-tests.in b/testing/do-tests.in
index 27ad200fb..2c5c07278 100755
--- a/testing/do-tests.in
+++ b/testing/do-tests.in
@@ -117,13 +117,7 @@ done
KERNEL_VERSION=`basename $KERNEL .tar.bz2`
IPSEC_VERSION=`basename $STRONGSWAN .tar.bz2`
-cat > $INDEX <<@EOF
-<html>
-<head>
- <title>strongSwan UML Tests</title>
-</head>
-<body>
- <h2>strongSwan UML Tests</h2>
+ENVIRONMENT_HEADER=$(cat <<@EOF
<table border="0" cellspacing="2">
<tr valign="top">
<td><b>Host:</b></td>
@@ -148,9 +142,27 @@ cat > $INDEX <<@EOF
<td >&nbsp;</td>
</tr>
@EOF
+)
-cat $INDEX > $TESTRESULTSHTML
-cat >> $TESTRESULTSHTML <<@EOF
+cat > $INDEX <<@EOF
+<html>
+<head>
+ <title>strongSwan UML Tests</title>
+</head>
+<body>
+ <h2>strongSwan UML Tests</h2>
+ $ENVIRONMENT_HEADER
+@EOF
+
+cat > $TESTRESULTSHTML <<@EOF
+<html>
+<head>
+ <title>strongSwan UML Tests - All Tests</title>
+</head>
+<body>
+ <div><a href="index.html">strongSwan UML Tests</a> / All Tests</div>
+ <h2>All Tests</h2>
+ $ENVIRONMENT_HEADER
<tr align="left">
<th>Number</th>
<th>Test</th>
@@ -213,6 +225,7 @@ do
<title>strongSwan $SUBDIR Tests</title>
</head>
<body>
+ <div><a href="../index.html">strongSwan UML Tests</a> / $SUBDIR</div>
<h2>strongSwan $SUBDIR Tests</h2>
<table border="0" cellspacing="2">
<tr valign="top">
@@ -455,8 +468,9 @@ do
<title>Test $testname</title>
</head>
<body>
-<table border="0" width="600">
+<table border="0" cellpadding="0" cellspacing="0" width="600">
<tr><td>
+ <div><a href="../../index.html">strongSwan UML Tests</a> / <a href="../index.html">$SUBDIR</a> / $name</div>
<h2>Test $testname</h2>
<h3>Description</h3>
@EOF
@@ -576,9 +590,6 @@ do
cat >> $TESTRESULTDIR/index.html <<@EOF
</td></tr>
- <tr><td align="right">
- <b><a href="../index.html">Back</a></b>
- </td></tr>
</table>
</body>
</html>
@@ -670,7 +681,7 @@ do
cat >> $TESTRESULTSHTML << @EOF
<tr>
<td>$testnumber</td>
- <td><a href="$testname/">$testname</a></td>
+ <td><a href="$testname/index.html">$testname</a></td>
<td><a href="$testname/console.log"><font color="$COLOR">$STATUS</font></a></td>
<td>&nbsp;</td>
</tr>
@@ -678,7 +689,7 @@ do
cat >> $SUBTESTSINDEX << @EOF
<tr>
<td>$testnumber</td>
- <td><a href="$name/">$name</a></td>
+ <td><a href="$name/index.html">$name</a></td>
<td><a href="$name/console.log"><font color="$COLOR">$STATUS</font></a></td>
<td>&nbsp;</td>
</tr>
@@ -705,11 +716,16 @@ done
#
cat >> $TESTRESULTSHTML << @EOF
+ <tr>
+ <td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td>
+ </tr>
+ <tr>
+ <td><b>Passed:</b></td><td><b><font color="green">$passed_cnt</font></b></td><td>&nbsp;</td><td>&nbsp;</td>
+ </tr>
+ <tr>
+ <td><b>Failed:</b></td><td><b><font color="red">$failed_cnt</font></b></td><td>&nbsp;</td><td>&nbsp;</td>
+ </tr>
</table>
- <p>
- <b>Passed: &nbsp; <font color="green">$passed_cnt</font></b><br>
- <b>Failed: &nbsp; <font color="red">$failed_cnt</font></b><br>
- <p>
</body>
</html>
@EOF