Andres Gomez | 0ac731b1 | 2020-02-20 18:26:30 +0200 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | |
| 3 | set -ex |
| 4 | |
Tomeu Vizoso | 92f3c51 | 2020-03-24 12:58:30 +0100 | [diff] [blame] | 5 | INSTALL="$(pwd)/install" |
Andres Gomez | 0ac731b1 | 2020-02-20 18:26:30 +0200 | [diff] [blame] | 6 | |
| 7 | # Set the Vulkan driver to use. |
| 8 | export VK_ICD_FILENAMES="$(pwd)/install/share/vulkan/icd.d/${VK_DRIVER}_icd.x86_64.json" |
| 9 | |
| 10 | # Set environment for VulkanTools' VK_LAYER_LUNARG_screenshot layer. |
| 11 | export VK_LAYER_PATH="$VK_LAYER_PATH:/VulkanTools/build/etc/vulkan/explicit_layer.d" |
| 12 | export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/VulkanTools/build/lib" |
| 13 | |
Andres Gomez | 07e5b3a | 2020-03-20 20:26:48 +0200 | [diff] [blame] | 14 | # Set environment for Wine |
| 15 | export WINEDEBUG="-all" |
| 16 | export WINEPREFIX="/dxvk-wine64" |
| 17 | export WINEESYNC=1 |
| 18 | |
| 19 | # Set environment for DXVK |
| 20 | export DXVK_LOG_LEVEL="none" |
| 21 | export DXVK_STATE_CACHE=0 |
| 22 | |
Andres Gomez | 0ac731b1 | 2020-02-20 18:26:30 +0200 | [diff] [blame] | 23 | # Perform a self-test to ensure tracie is working properly. |
Pablo Saavedra | 550a4f7 | 2020-05-04 18:11:08 +0200 | [diff] [blame] | 24 | python3 -m pytest -v --pyargs $INSTALL/tracie/tests/test.py |
Andres Gomez | 0ac731b1 | 2020-02-20 18:26:30 +0200 | [diff] [blame] | 25 | |
Alexandros Frantzis | 4c6ce82 | 2020-04-09 18:40:38 +0300 | [diff] [blame] | 26 | # Sanity check to ensure that our environment is sufficient to make our tests |
| 27 | # run against the Mesa built by CI, rather than any installed distro version. |
| 28 | MESA_VERSION=$(cat "$INSTALL/VERSION" | sed 's/\./\\./g') |
| 29 | vulkaninfo | grep "Mesa $MESA_VERSION\(\s\|$\)" |
| 30 | |
Andres Gomez | 0ac731b1 | 2020-02-20 18:26:30 +0200 | [diff] [blame] | 31 | # Run gfxreconstruct traces against the host's running X server (xvfb |
| 32 | # doesn't have DRI3 support). |
| 33 | # Set the DISPLAY env variable in each gitlab-runner's configuration |
| 34 | # file: |
| 35 | # https://docs.gitlab.com/runner/configuration/advanced-configuration.html#the-runners-section |
| 36 | PATH="/gfxreconstruct/build/bin:$PATH" \ |
Tomeu Vizoso | 7d5f4d3 | 2020-08-05 10:17:26 +0200 | [diff] [blame] | 37 | python3 "$INSTALL/tracie/tracie.py" --file "$INSTALL/traces-$DRIVER_NAME.yml" --device-name "$DEVICE_NAME" |