2019-04-29 17:33:22 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
2019-09-18 15:43:30 +01:00
|
|
|
GPU_VERSION="$1"
|
|
|
|
|
2019-05-07 09:00:23 +01:00
|
|
|
DEQP_OPTIONS="--deqp-surface-width=256 --deqp-surface-height=256"
|
|
|
|
DEQP_OPTIONS="$DEQP_OPTIONS --deqp-visibility=hidden"
|
|
|
|
DEQP_OPTIONS="$DEQP_OPTIONS --deqp-log-images=disable"
|
|
|
|
DEQP_OPTIONS="$DEQP_OPTIONS --deqp-watchdog=enable"
|
|
|
|
DEQP_OPTIONS="$DEQP_OPTIONS --deqp-crashhandler=enable"
|
2019-09-10 16:43:25 +01:00
|
|
|
DEQP_OPTIONS="$DEQP_OPTIONS --deqp-surface-type=pbuffer"
|
2019-05-07 09:00:23 +01:00
|
|
|
|
2019-05-03 16:48:48 +01:00
|
|
|
export LIBGL_DRIVERS_PATH=/mesa/lib/dri/
|
|
|
|
export LD_LIBRARY_PATH=/mesa/lib/
|
2019-06-24 21:17:28 +01:00
|
|
|
export MESA_GLES_VERSION_OVERRIDE=3.0
|
2019-04-29 17:33:22 +01:00
|
|
|
|
2019-09-02 07:33:11 +01:00
|
|
|
DEVFREQ_GOVERNOR=`echo /sys/devices/platform/*.gpu/devfreq/devfreq0/governor`
|
|
|
|
echo performance > $DEVFREQ_GOVERNOR
|
|
|
|
|
2019-04-29 17:33:22 +01:00
|
|
|
cd /deqp/modules/gles2
|
|
|
|
|
|
|
|
# Generate test case list file
|
2019-05-07 09:00:23 +01:00
|
|
|
./deqp-gles2 $DEQP_OPTIONS --deqp-runmode=stdout-caselist | grep "TEST: dEQP-GLES2" | cut -d ' ' -f 2 > /tmp/case-list.txt
|
2019-04-29 17:33:22 +01:00
|
|
|
|
2019-10-06 23:21:39 +01:00
|
|
|
# Note: not using sorted input and comm, becuase I want to run the tests in
|
|
|
|
# the same order that dEQP would.
|
|
|
|
while read -r line; do
|
|
|
|
if echo "$line" | grep -q '^[^#]'; then
|
|
|
|
sed -i "/$line/d" /tmp/case-list.txt
|
|
|
|
fi
|
|
|
|
done < /deqp/deqp-$GPU_VERSION-skips.txt
|
2019-08-15 09:41:21 +01:00
|
|
|
|
|
|
|
/deqp/deqp-volt --cts-build-dir=/deqp \
|
|
|
|
--threads=8 \
|
|
|
|
--test-names-file=/tmp/case-list.txt \
|
|
|
|
--results-file=/tmp/results.txt \
|
|
|
|
--no-passed-results \
|
2019-10-06 16:49:56 +01:00
|
|
|
--regression-file=/deqp/deqp-$GPU_VERSION-fails.txt \
|
2019-08-29 13:44:17 +01:00
|
|
|
--no-rerun-tests \
|
|
|
|
--print-regression \
|
|
|
|
--no-print-fail \
|
|
|
|
--no-print-quality \
|
2019-09-10 16:43:25 +01:00
|
|
|
--no-colour-term \
|
|
|
|
$DEQP_OPTIONS
|
2019-08-15 09:41:21 +01:00
|
|
|
|
|
|
|
if [ $? -ne 0 ]; then
|
2019-08-29 13:44:17 +01:00
|
|
|
echo "Regressions detected"
|
2019-08-15 09:41:21 +01:00
|
|
|
echo "deqp: fail"
|
|
|
|
else
|
|
|
|
echo "No regressions detected"
|
|
|
|
echo "deqp: pass"
|
|
|
|
fi
|