
Verify that the Mesa version used when running tracie tests is the one that was built by CI, rather than any installed distro version. Signed-off-by: Alexandros Frantzis <alexandros.frantzis@collabora.com> Reviewed-by: Rohan Garg <rohan.garg@collabora.com> Reviewed-by: Andres Gomez <agomez@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3894>
34 lines
1.1 KiB
Bash
Executable File
34 lines
1.1 KiB
Bash
Executable File
#!/bin/sh
|
|
|
|
set -ex
|
|
|
|
INSTALL="$(pwd)/install"
|
|
|
|
# Set up the driver environment.
|
|
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$(pwd)/install/lib/"
|
|
|
|
# Set environment for renderdoc libraries.
|
|
export PYTHONPATH="$PYTHONPATH:/renderdoc/build/lib"
|
|
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/renderdoc/build/lib"
|
|
|
|
# Set environment for the waffle library.
|
|
export LD_LIBRARY_PATH="/waffle/build/lib:$LD_LIBRARY_PATH"
|
|
|
|
# Set environment for apitrace executable.
|
|
export PATH=/apitrace/build:$PATH
|
|
|
|
# Use the surfaceless EGL platform.
|
|
export EGL_PLATFORM=surfaceless
|
|
export DISPLAY=
|
|
export WAFFLE_PLATFORM=surfaceless_egl
|
|
|
|
# Perform a self-test to ensure tracie is working properly.
|
|
"$INSTALL/tracie/tests/test.sh"
|
|
|
|
# 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" | sed 's/\./\\./g')
|
|
wflinfo --platform surfaceless_egl --api gles2 | grep "Mesa $MESA_VERSION\(\s\|$\)"
|
|
|
|
python3 $INSTALL/tracie/tracie.py --file $INSTALL/traces.yml --device-name $DEVICE_NAME
|