Commit 7ae87e19 authored by Nigel McNie's avatar Nigel McNie
Browse files

Make the output filename customisable, and change it to default to...

Make the output filename customisable, and change it to default to TestSuite.html. Removed some junk lines too.
parent 4e30b571
#!/bin/sh
#
# Generates the testsuite from the files in this directory
#
# Author: Nigel McNie
# Copyright (C) 2007 Catalyst IT Ltd.
#
set -e
FILENAME="TestSuite.html"
#
# Helper function - inserts a test suite into the helper file
#
function insert_testsuite {
#cat $1/index.html | grep '<td><strong>' >> index.html
testname=$(echo $1 | cut -c 3-)
cat $1/index.html | grep '<td><a href' | sed "s/href=\"/href=\"$testname\//g" >> index.html
cat $1/index.html | grep '<td><a href' | sed "s/href=\"/href=\"$testname\//g" >> $FILENAME
}
# Output header
cat > index.html <<EOF
cat > $FILENAME <<EOF
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
......@@ -37,7 +35,7 @@ for TS in $(find . -mindepth 1 -type d -not -name 'shared' -not -name '*install*
done
# Output footer
cat >> index.html <<EOF
cat >> $FILENAME <<EOF
</tbody>
</table>
</body>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment