|
Revision 803, 1.9 kB
(checked in by Gregor, 1 year ago)
|
--
|
- Property svn:executable set to
*
|
| Line | |
|---|
| 1 |
#!/bin/bash |
|---|
| 2 |
. plats.sh |
|---|
| 3 |
rm -rf logs-* |
|---|
| 4 |
|
|---|
| 5 |
echo '<HTML><head><title>DSSS test results</title></head><body>' |
|---|
| 6 |
echo '<h1>DSSS test results</h1>' |
|---|
| 7 |
echo 'NOTE: Tango and Tangobos tests for Windows do not yet work.<br>' |
|---|
| 8 |
echo '<span style="background-color: yellow">HALF-PASS</span> means the library built, but either cannot be compiled into an application or unit tests failed.<br>' |
|---|
| 9 |
echo 'NOTE: The half-pass feature is being tested. Many half-passes are false negatives.<br>' |
|---|
| 10 |
echo 'Tests run on '`date --iso`'<br>' |
|---|
| 11 |
|
|---|
| 12 |
for lib in phobos tango tangobos |
|---|
| 13 |
do |
|---|
| 14 |
echo '<hr><h1>'$lib'</h1>' |
|---|
| 15 |
|
|---|
| 16 |
echo '<table border=1><tr><td></td>' |
|---|
| 17 |
for i in $PLATS |
|---|
| 18 |
do |
|---|
| 19 |
echo '<th>'$i'</th>' |
|---|
| 20 |
done |
|---|
| 21 |
echo '</tr>' |
|---|
| 22 |
|
|---|
| 23 |
|
|---|
| 24 |
for i in `ls /opt/dsss-test/$PRIMARY_PLAT/tests-$lib | grep -v LIST | grep -v UNITFAILS` |
|---|
| 25 |
do |
|---|
| 26 |
mkdir -p logs-$lib/$i |
|---|
| 27 |
|
|---|
| 28 |
echo '<tr><th>'$i'</th>' |
|---|
| 29 |
for j in $PLATS |
|---|
| 30 |
do |
|---|
| 31 |
cp -f /opt/dsss-test/$j/tests-$lib/$i logs-$lib/$i/$j.txt |
|---|
| 32 |
|
|---|
| 33 |
echo -n '<td bgcolor='\' |
|---|
| 34 |
LINK='<a href='\''logs-'$lib'/'$i'/'$j'.txt'\''>' |
|---|
| 35 |
if [ "`grep $i /opt/dsss-test/$j/tests-$lib/LIST`" ] |
|---|
| 36 |
then |
|---|
| 37 |
if [ "`grep $i /opt/dsss-test/$j/tests-$lib/UNITFAILS`" ] |
|---|
| 38 |
then |
|---|
| 39 |
echo -n 'yellow'\''>'$LINK'HALF-PASS' |
|---|
| 40 |
else |
|---|
| 41 |
echo -n 'green'\''>'$LINK'SUCCESS' |
|---|
| 42 |
fi |
|---|
| 43 |
else |
|---|
| 44 |
echo -n 'red'\''>'$LINK'FAILURE' |
|---|
| 45 |
fi |
|---|
| 46 |
echo '</a></td>' |
|---|
| 47 |
done |
|---|
| 48 |
echo '</tr>' |
|---|
| 49 |
done |
|---|
| 50 |
|
|---|
| 51 |
echo '</table>' |
|---|
| 52 |
|
|---|
| 53 |
done |
|---|
| 54 |
|
|---|
| 55 |
echo '<hr><h1>Sundry data</h1>' |
|---|
| 56 |
echo '<table border=1><tr><td></td><th>DSSS Version</th><th>GDC Version</th><th>DMD Version</th></tr>' |
|---|
| 57 |
for i in $PLATS |
|---|
| 58 |
do |
|---|
| 59 |
echo '<tr><th>'$i'</th><td>' |
|---|
| 60 |
/opt/dsss-test/$i/bin/dsss | head -n 1 |
|---|
| 61 |
echo '</td><td>' |
|---|
| 62 |
/opt/dsss-test/$i/bin/gdc --version 2> /dev/null | head -n 1 |
|---|
| 63 |
echo '</td><td>' |
|---|
| 64 |
/opt/dsss-test/$i/bin/dmd 2> /dev/null | head -n 1 |
|---|
| 65 |
echo '</td></tr>' |
|---|
| 66 |
done |
|---|
| 67 |
echo '</table>' |
|---|
| 68 |
|
|---|
| 69 |
echo '</body></HTML>' |
|---|