ci: Print the renderer/version that our dEQP invocation is using.
authorEric Anholt <eric@anholt.net>
Thu, 5 Mar 2020 22:35:55 +0000 (14:35 -0800)
committerMarge Bot <eric+marge@anholt.net>
Wed, 11 Mar 2020 21:36:47 +0000 (21:36 +0000)
This is useful for sanity checking how the driver loads.

Lightly-reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4076>

.gitlab-ci/deqp-runner.sh

index b527444468c8bc97a5235a33d36083732c47a9bd..0a32207ba4a8483a172fc8ba09257024a99c6d81 100755 (executable)
@@ -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=$?