blob: 69ea3ef61fd00b03a600427904e3cbf59039de32 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
xdpyinfo >/dev/null 2>&1 || return 1 # LuxMark expects an X connection
test -e "$LUXMARK_FOLDER/luxmark.bin" || return 1
__luxmark__() {
cd $LUXMARK_FOLDER # set me in test_options.sh!
LD_LIBRARY_PATH=./lib:$LD_LIBRARY_PATH \
run_bench 0 ./luxmark.bin --single-run --mode=BENCHMARK_OCL_GPU --scene=$1 \
| awk '{print $2 }' || return 1
}
while read name scene; do
test_name="$test_name luxmark:$name"
eval "luxmark:${name}_run() { __luxmark__ $scene; }"
done<<EOF
LuxBall LUXBALL_HDR
Microphone MICROPHONE
Hotel HOTEL
EOF
test_exec_time=121
|