diff options
author | Eric Anholt <[email protected]> | 2020-04-17 12:39:32 -0700 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-04-27 22:10:10 +0000 |
commit | 8b221e091427a749499179511d1c8438fd0dcd64 (patch) | |
tree | 61c7b398a8d6e8492c1909d05c5a99f6b0ae27c3 /.gitlab-ci | |
parent | a9e6a3ecc7de79dbaa8899d77c3b86fd303b513a (diff) |
ci: Add sanity checking that dEQP gets the expected GL_RENDERER.
It's easy to get something wrong in the driver build or container or
something that results in falling back to swrast, and then your only clue
was runtime and how your failure cases suspiciously match a swrast
driver's.
Reviewed-by: Tomeu Vizoso <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4621>
Diffstat (limited to '.gitlab-ci')
-rwxr-xr-x | .gitlab-ci/bare-metal/fastboot.sh | 1 | ||||
-rw-r--r-- | .gitlab-ci/bare-metal/init.sh | 1 | ||||
-rwxr-xr-x | .gitlab-ci/deqp-runner.sh | 5 | ||||
-rw-r--r-- | .gitlab-ci/lava-gitlab-ci.yml | 14 |
4 files changed, 14 insertions, 7 deletions
diff --git a/.gitlab-ci/bare-metal/fastboot.sh b/.gitlab-ci/bare-metal/fastboot.sh index 3136f0f5801..f2693c6b384 100755 --- a/.gitlab-ci/bare-metal/fastboot.sh +++ b/.gitlab-ci/bare-metal/fastboot.sh @@ -46,6 +46,7 @@ cp -Rp $BM_ROOTFS rootfs cp $BM/init.sh rootfs/init sed -i "s|DEQP_VER_REPLACE|$DEQP_VER|g" rootfs/init sed -i "s|DEQP_PARALLEL_REPLACE|$DEQP_PARALLEL|g" rootfs/init +sed -i "s|DEQP_EXPECTED_RENDERER_REPLACE|$DEQP_EXPECTED_RENDERER|g" rootfs/init sed -i "s|CI_NODE_INDEX_REPLACE|$CI_NODE_INDEX|g" rootfs/init sed -i "s|CI_NODE_TOTAL_REPLACE|$CI_NODE_TOTAL|g" rootfs/init diff --git a/.gitlab-ci/bare-metal/init.sh b/.gitlab-ci/bare-metal/init.sh index 437474b6266..ba0168691d0 100644 --- a/.gitlab-ci/bare-metal/init.sh +++ b/.gitlab-ci/bare-metal/init.sh @@ -11,6 +11,7 @@ mount -t devpts devpts /dev/pts export DEQP_NO_SAVE_RESULTS=1 export DEQP_VER=DEQP_VER_REPLACE export DEQP_PARALLEL=DEQP_PARALLEL_REPLACE +export DEQP_EXPECTED_RENDERER=DEQP_EXPECTED_RENDERER_REPLACE export CI_NODE_INDEX=CI_NODE_INDEX_REPLACE export CI_NODE_TOTAL=CI_NODE_TOTAL_REPLACE export DEQP_SKIPS=deqp-skips.txt diff --git a/.gitlab-ci/deqp-runner.sh b/.gitlab-ci/deqp-runner.sh index 5467be58f30..1ac0f07bd31 100755 --- a/.gitlab-ci/deqp-runner.sh +++ b/.gitlab-ci/deqp-runner.sh @@ -188,6 +188,11 @@ parse_renderer() { 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 " + + if ! echo $RENDERER | grep -q $DEQP_EXPECTED_RENDERER; then + echo "Expected GL_RENDERER $DEQP_EXPECTED_RENDERER" + exit 1 + fi } check_renderer() { diff --git a/.gitlab-ci/lava-gitlab-ci.yml b/.gitlab-ci/lava-gitlab-ci.yml index 9e923c48194..2e15e923b68 100644 --- a/.gitlab-ci/lava-gitlab-ci.yml +++ b/.gitlab-ci/lava-gitlab-ci.yml @@ -83,7 +83,7 @@ panfrost-t720-gles2:arm64: variables: DEVICE_TYPE: sun50i-h6-pine-h64 GPU_VERSION: panfrost-t720 - ENV_VARS: "PAN_MESA_DEBUG=gles3 DEQP_PARALLEL=6" + ENV_VARS: "PAN_MESA_DEBUG=gles3 DEQP_PARALLEL=6 DEQP_EXPECTED_RENDERER=T720" FILES_HOST_NAME: "mesa-ci-lava-files.freedesktop.org" FILES_HOST_URL: "https://mesa-ci-lava-files.freedesktop.org" tags: @@ -98,7 +98,7 @@ panfrost-t760-gles2:armhf: GPU_VERSION: panfrost-t760 BOOT_METHOD: depthcharge KERNEL_IMAGE_TYPE: "" - ENV_VARS: "PAN_MESA_DEBUG=gles3 DEQP_PARALLEL=6" + ENV_VARS: "PAN_MESA_DEBUG=gles3 DEQP_PARALLEL=6 DEQP_EXPECTED_RENDERER=T760" FILES_HOST_NAME: "mesa-ci-lava-files.freedesktop.org" FILES_HOST_URL: "https://mesa-ci-lava-files.freedesktop.org" tags: @@ -113,7 +113,7 @@ panfrost-t860-gles2:arm64: GPU_VERSION: panfrost-t860 BOOT_METHOD: depthcharge KERNEL_IMAGE_TYPE: "" - ENV_VARS: "PAN_MESA_DEBUG=gles3 DEQP_PARALLEL=6" + ENV_VARS: "PAN_MESA_DEBUG=gles3 DEQP_PARALLEL=6 DEQP_EXPECTED_RENDERER=T860" FILES_HOST_NAME: "mesa-ci-lava-files.freedesktop.org" FILES_HOST_URL: "https://mesa-ci-lava-files.freedesktop.org" tags: @@ -129,7 +129,7 @@ panfrost-t860-gles3:arm64: BOOT_METHOD: depthcharge KERNEL_IMAGE_TYPE: "" DEQP_VERSION: gles3 - ENV_VARS: "PAN_MESA_DEBUG=gles3 DEQP_PARALLEL=6" + ENV_VARS: "PAN_MESA_DEBUG=gles3 DEQP_PARALLEL=6 DEQP_EXPECTED_RENDERER=T860" CI_NODE_INDEX: 1 CI_NODE_TOTAL: 5 FILES_HOST_NAME: "mesa-ci-lava-files.freedesktop.org" @@ -145,7 +145,7 @@ panfrost-t860-gles3:arm64: DEVICE_TYPE: meson-gxm-khadas-vim2 GPU_VERSION: panfrost-t820 LAVA_TAGS: panfrost - ENV_VARS: "PAN_MESA_DEBUG=gles3 DEQP_PARALLEL=6" + ENV_VARS: "PAN_MESA_DEBUG=gles3 DEQP_PARALLEL=6 DEQP_EXPECTED_RENDERER=T820" tags: - mesa-ci-aarch64-lava-baylibre @@ -157,7 +157,7 @@ panfrost-t860-gles3:arm64: variables: DEVICE_TYPE: sun8i-h3-libretech-all-h3-cc GPU_VERSION: lima - ENV_VARS: "DEQP_PARALLEL=3" + ENV_VARS: "DEQP_PARALLEL=3 DEQP_EXPECTED_RENDERER=Mali400" tags: - mesa-ci-aarch64-lava-baylibre @@ -168,6 +168,6 @@ panfrost-t860-gles3:arm64: variables: DEVICE_TYPE: meson-gxl-s905x-libretech-cc GPU_VERSION: lima - ENV_VARS: "DEQP_PARALLEL=6" + ENV_VARS: "DEQP_PARALLEL=6 DEQP_EXPECTED_RENDERER=Mali450" tags: - mesa-ci-aarch64-lava-baylibre |