mesa: add ARB_texture_buffer_range glTextureBufferRangeEXT function
[mesa.git] / .gitlab-ci / lava-deqp-runner.sh
1 #!/bin/sh
2
3 GPU_VERSION="$1"
4
5 DEQP_OPTIONS="--deqp-surface-width=256 --deqp-surface-height=256"
6 DEQP_OPTIONS="$DEQP_OPTIONS --deqp-visibility=hidden"
7 DEQP_OPTIONS="$DEQP_OPTIONS --deqp-log-images=disable"
8 DEQP_OPTIONS="$DEQP_OPTIONS --deqp-watchdog=enable"
9 DEQP_OPTIONS="$DEQP_OPTIONS --deqp-crashhandler=enable"
10 DEQP_OPTIONS="$DEQP_OPTIONS --deqp-surface-type=pbuffer"
11
12 export LIBGL_DRIVERS_PATH=/mesa/lib/dri/
13 export LD_LIBRARY_PATH=/mesa/lib/
14 export MESA_GLES_VERSION_OVERRIDE=3.0
15
16 DEVFREQ_GOVERNOR=`echo /sys/devices/platform/*.gpu/devfreq/devfreq0/governor`
17 echo performance > $DEVFREQ_GOVERNOR
18
19 cd /deqp/modules/gles2
20
21 # Generate test case list file
22 ./deqp-gles2 $DEQP_OPTIONS --deqp-runmode=stdout-caselist | grep "TEST: dEQP-GLES2" | cut -d ' ' -f 2 > /tmp/case-list.txt
23
24 # Note: not using sorted input and comm, becuase I want to run the tests in
25 # the same order that dEQP would.
26 while read -r line; do
27 if echo "$line" | grep -q '^[^#]'; then
28 sed -i "/$line/d" /tmp/case-list.txt
29 fi
30 done < /deqp/deqp-$GPU_VERSION-skips.txt
31
32 /deqp/deqp-volt --cts-build-dir=/deqp \
33 --threads=8 \
34 --test-names-file=/tmp/case-list.txt \
35 --results-file=/tmp/results.txt \
36 --no-passed-results \
37 --regression-file=/deqp/deqp-$GPU_VERSION-fails.txt \
38 --no-rerun-tests \
39 --print-regression \
40 --no-print-fail \
41 --no-print-quality \
42 --no-colour-term \
43 $DEQP_OPTIONS
44
45 if [ $? -ne 0 ]; then
46 echo "Regressions detected"
47 echo "deqp: fail"
48 else
49 echo "No regressions detected"
50 echo "deqp: pass"
51 fi