ci/vkd3d: add support for *-skips.txt list files

Allows annotating the skips to document them, and avoids running the
entire CI for that driver when changing the skips for one device.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30413>
This commit is contained in:
Eric Engestrom
2024-07-25 19:41:09 +02:00
committed by Marge Bot
parent ab1e99de62
commit f54cb2476f
5 changed files with 16 additions and 3 deletions

View File

@@ -2,6 +2,11 @@
set -ex
comma_separated() {
local IFS=,
echo "$*"
}
if [[ -z "$VK_DRIVER" ]]; then
exit 1
fi
@@ -29,6 +34,12 @@ export WINEDEBUG="-all"
export WINEPREFIX="/vkd3d-proton-wine64"
export WINEESYNC=1
if [ -f "$INSTALL/$GPU_VERSION-vkd3d-skips.txt" ]; then
mapfile -t skips < <(grep -vE '^#|^$' "$INSTALL/$GPU_VERSION-vkd3d-skips.txt")
VKD3D_TEST_EXCLUDE=$(comma_separated "${skips[@]}")
export VKD3D_TEST_EXCLUDE
fi
# Sanity check to ensure that our environment is sufficient to make our tests
# run against the Mesa built by CI, rather than any installed distro version.
MESA_VERSION=$(cat "$INSTALL/VERSION")