Add more structure constructor tests.
[piglit/hramrach.git] / documentation / build-results.sh
blobbb7ea0a63f60d36e84d179697b369b49c5fb6508
1 #!/bin/sh
3 # Hacked-together script for building the results summaries on
4 # http://people.freedesktop.org/~nh/piglit/results/
5 # The script is based on a database of results in the ${databasedir}.
6 # The ${classesdir} is supposed to contain one file classes which
7 # is simply a list of class names, and one file for each class which
8 # contains names of results for that class, in chronological order.
10 # So for example, ${classesdir} might contain the files:
12 # ${classesdir}/classes:
13 # R300
14 # R500
16 # ${classesdir}/R300:
17 # R300ND-2008-06-12
18 # R300ND-2008-06-13-2
19 # R300ND-2008-06-30
20 # R300ND-2008-07-04
22 # And similarly, ${classesdir}/R500.
23 # Corresponding results of test runs must exist in ${databasedir}
26 ### Configuration
27 piglitdir=~/dev/xorg/piglit/repo
28 resultsdir=../html/piglit/results
29 classesdir=./classes
30 databasedir=./database
33 ### Script starts here
34 SUMMARY=${piglitdir}/piglit-summary-html.py
36 mkdir -p ${resultsdir}
37 classes=$(cat ${classesdir}/classes)
39 echo "[" > tmpresults.all
41 latest=
42 for class in ${classes}; do
43 echo "Building report for class ${class}"
44 echo "['${databasedir}/$(tail -n 1 ${classesdir}/${class})'," >> tmpresults.all
45 echo "{'name': '${class}', 'href': '../${class}/index.html'}]," >> tmpresults.all
47 classlist=$(tail -n 4 ${classesdir}/${class} | sed s@^@${databasedir}/@)
48 ${SUMMARY} -o ${resultsdir}/${class} ${classlist}
49 done
51 echo "Building report across classes"
52 echo "]" >> tmpresults.all
53 ${SUMMARY} -o -l tmpresults.all ${resultsdir}/all
54 rm tmpresults.all