2023-05-21 06:47:05 +08:00
|
|
|
#!/usr/bin/env bash
|
2020-02-26 16:33:14 +08:00
|
|
|
|
|
|
|
set -ex
|
|
|
|
|
|
|
|
if [ -z "$VK_DRIVER" ]; then
|
|
|
|
echo 'VK_DRIVER must be to something like "radeon" or "intel" for the test run'
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2023-05-21 06:47:05 +08:00
|
|
|
INSTALL=$PWD/install
|
2020-02-26 16:33:14 +08:00
|
|
|
|
|
|
|
# Set up the driver environment.
|
2023-05-21 06:47:05 +08:00
|
|
|
export LD_LIBRARY_PATH="$INSTALL/lib/"
|
|
|
|
export VK_ICD_FILENAMES="$INSTALL/share/vulkan/icd.d/${VK_DRIVER}_icd.x86_64.json"
|
2020-02-26 16:33:14 +08:00
|
|
|
|
2020-06-25 17:21:12 +08:00
|
|
|
# To store Fossilize logs on failure.
|
2023-05-21 06:47:05 +08:00
|
|
|
RESULTS="$PWD/results"
|
2020-06-25 17:21:12 +08:00
|
|
|
mkdir -p results
|
|
|
|
|
|
|
|
"$INSTALL/fossils/fossils.sh" "$INSTALL/fossils.yml" "$RESULTS"
|