Clone of mesa.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

lava-deqp-runner.sh 1.6KB

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