4 # Quick hack to generate html from result directory
12 echo "* ERROR * ERROR * ERROR * ERROR * ERROR * ERROR *"
16 echo "* ERROR * ERROR * ERROR * ERROR * ERROR * ERROR *"
23 echo "Running in resdir $resdir"
25 cd "$resdir" || die
"Failed to cd into $resdir"
27 echo "<html>" > index.html
28 echo " <head>" >> index.html
29 echo " </head>" >> index.html
30 echo " <body>" >> index.html
31 echo " <h1>Test Results</h1>" >> index.html
32 echo " <table bgcolor=\"#99a\">" >> index.html
33 echo " <tr bgcolor=\"#bbbbff\">" >> index.html
34 echo " <td><b>Suite</b></td>" >> index.html
35 echo " <td><b>Fail</b></td>" >> index.html
36 echo " <td><b>Skip</b></td>" >> index.html
37 echo " <td><b>All</b></td>" >> index.html
38 echo " <td><b>Link</b></td>" >> index.html
39 echo " </tr>" >> index.html
42 if ! [ -d "$i" ]; then
46 echo " <tr><td colspan=\"6\" bgcolor=\"#bbf\"> $i</td></tr>" >> index.html
48 for j
in "$i/"*.json
; do
49 ts_name
=$
(basename "$j" ".json")
50 echo "$j -> $i/$ts_name.html"
51 $BINDIR/log2html.py
-s "$i/$ts_name.html" "$j" >> index.html
52 $BINDIR/log2html.py
"$j" > "$i/$ts_name.html"
56 echo " </table>" >> index.html
57 echo " </body>" >> index.html
58 echo "</html>" >> index.html