blob: f027116d5a87174716f5936d7a9470dcaed5c098 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
#!/bin/bash
#
# Hacked-together script for updating and building the results summaries on
# http://people.freedesktop.org/~nh/piglit/results/
# The script is based on a database of results in the ${database}.
# The structure of the database is:
# classes/classes:
# File listing device classes, one per line, e.g.:
# R300
# R500
# classes/${classname}: (for every class listed above)
# Listing all results in this class in chronological order, one per line, e.g.:
# R300ND-2008-06-12
# R300ND-2008-06-13-2
# R300ND-2008-06-30
# R300ND-2008-07-04
# database/${resultname}: (for all results appearing in a classes/${classname} file)
# a Piglit summary file
# incoming/${classname}/
# directory where new results may be placed that will be automatically
# moved to their right place by this script
### Configuration
piglitdir=${DXO_PATH}/piglit/repo
webdir=~/web/fdo/html/piglit/results
database=~/web/fdo/piglit-results
### Script starts here
mkdir -p ${webdir}
classes=$(cat ${database}/classes/classes)
for class in ${classes}; do
incomingdir=${database}/incoming/${class}
mkdir -p ${incomingdir}
rm -f ${incomingdir}/*~
newresults=`find ${incomingdir} -type f -printf '%f '`
for newresult in ${newresults}; do
echo "Got new report ${newresult} in class ${class}"
echo ${newresult} >> ${database}/classes/${class}
mv ${incomingdir}/${newresult} ${database}/database/${newresult}
done
done
echo "[" > tmpresults.all
for class in ${classes}; do
echo "Building report for class ${class}"
echo "['${database}/database/$(tail -n 1 ${database}/classes/${class})'," >> tmpresults.all
echo "{'name': '${class}', 'href': '../${class}/index.html'}]," >> tmpresults.all
classlist=$(tail -n 4 ${database}/classes/${class} | sed s@^@${database}/database/@)
${piglitdir}/piglit-summary-html.py -o ${webdir}/${class} ${classlist}
done
echo "Building report across classes"
echo "]" >> tmpresults.all
${piglitdir}/piglit-summary-html.py -o -l tmpresults.all ${webdir}/all
rm tmpresults.all
|