From: Eric Anholt Date: Thu, 5 Mar 2020 22:35:55 +0000 (-0800) Subject: ci: Print the renderer/version that our dEQP invocation is using. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ff1183648a69f8d082a3fa0b067ccc66b5a78c23;p=mesa.git ci: Print the renderer/version that our dEQP invocation is using. This is useful for sanity checking how the driver loads. Lightly-reviewed-by: Kristian H. Kristensen Part-of: --- diff --git a/.gitlab-ci/deqp-runner.sh b/.gitlab-ci/deqp-runner.sh index b527444468c..0a32207ba4a 100755 --- a/.gitlab-ci/deqp-runner.sh +++ b/.gitlab-ci/deqp-runner.sh @@ -178,6 +178,22 @@ generate_junit() { echo "" } +parse_renderer() { + RENDERER=`grep -A1 TestCaseResult.\*info.renderer $RESULTS/deqp-info.qpa | grep '||g' | sed 's|||g'` + VERSION=`grep -A1 TestCaseResult.\*info.version $RESULTS/deqp-info.qpa | grep '||g' | sed 's|||g'` + echo "Renderer: $RENDERER" + echo "Version: $VERSION " +} + +check_renderer() { + echo "Capturing renderer info for driver sanity checks" + # If you're having trouble loading your driver, uncommenting this may help + # debug. + # export EGL_LOG_LEVEL=debug + $DEQP $DEQP_OPTIONS --deqp-case=dEQP-GLES2.info.\* --deqp-log-filename=$RESULTS/deqp-info.qpa + parse_renderer +} + # wrapper to supress +x to avoid spamming the log quiet() { set +x @@ -185,6 +201,10 @@ quiet() { set -x } +if [ $DEQP_VER != vk ]; then + quiet check_renderer +fi + run_cts $DEQP /tmp/case-list.txt $RESULTS/cts-runner-results.txt DEQP_EXITCODE=$?