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:
22 # And similarly, ${classesdir}/R500.
23 # Corresponding results of test runs must exist in ${databasedir}
27 piglitdir
=~
/dev
/xorg
/piglit
/repo
28 resultsdir
=..
/html
/piglit
/results
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
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}
51 echo "Building report across classes"
52 echo "]" >> tmpresults.all
53 ${SUMMARY} -o -l tmpresults.all
${resultsdir}/all