diff options
author | Eric Anholt <[email protected]> | 2020-03-05 14:35:55 -0800 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-03-11 21:36:47 +0000 |
commit | ff1183648a69f8d082a3fa0b067ccc66b5a78c23 (patch) | |
tree | 4f5ea246650266390672e8a9732e2b5892ae34b5 /.gitlab-ci | |
parent | 32b7ba66b0156d9fd40b059f20da79a74451f7fd (diff) |
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 <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4076>
Diffstat (limited to '.gitlab-ci')
-rwxr-xr-x | .gitlab-ci/deqp-runner.sh | 20 |
1 files changed, 20 insertions, 0 deletions
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 "</testsuites>" } +parse_renderer() { + RENDERER=`grep -A1 TestCaseResult.\*info.renderer $RESULTS/deqp-info.qpa | grep '<Text' | sed 's|.*<Text>||g' | sed 's|</Text>||g'` + VERSION=`grep -A1 TestCaseResult.\*info.version $RESULTS/deqp-info.qpa | grep '<Text' | sed 's|.*<Text>||g' | sed 's|</Text>||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=$? |