2 # SPDX-License-Identifier: LGPL-2.1-or-later
3 # Copyright 2018 Jacob Lifshay
8 if [[ "$*" == '--no-update' ]]; then
10 elif [[ "$*" != '' ]]; then
11 printf "unknown arguments\nusage: %s [--no-update]\n" "$0" >&2
15 cts_output
="$(realpath TestResults.qpa)"
17 cts_source
="$(realpath VK-GL-CTS)"
19 if [[ ! -d "$cts_source" ]]; then
20 if ((do_update
)); then
21 git clone
"https://github.com/KhronosGroup/VK-GL-CTS"
23 echo "need to run without --no-update" >&2
27 cts_build
="$(realpath VK-GL-CTS/build)"
28 if ((do_update
)); then
32 python2 external
/fetch_sources.py
35 if [[ ! -d "$cts_build" ]]; then
36 if ((do_update
)); then
40 cmake
-G Ninja
-DCMAKE_BUILD_TYPE=Debug ..
43 echo "need to run without --no-update" >&2
51 exec .
/run.sh bash
-c "cd '$cts_build'/external/vulkancts/modules/vulkan; exec ./deqp-vk --deqp-caselist-file='$cts_source'/external/vulkancts/mustpass/1.1.3/vk-default.txt --deqp-log-images=disable --deqp-log-shader-sources=disable --deqp-log-filename='$cts_output'"