2 # SPDX-License-Identifier: LGPL-2.1-or-later
3 # Copyright 2018 Jacob Lifshay
9 if [[ "$*" == '--no-update' ]]; then
11 elif [[ "$*" == '--update-only' ]]; then
14 elif [[ "$*" != '' ]]; then
15 printf "unknown arguments\nusage: %s [--no-update] [--update-only]\n" "$0" >&2
19 cts_output
="$(realpath TestResults.qpa)"
21 cts_source
="$(realpath VK-GL-CTS)"
23 if [[ ! -d "$cts_source" ]]; then
24 if ((do_update
)); then
25 git clone
"https://github.com/KhronosGroup/VK-GL-CTS"
27 echo "need to run without --no-update" >&2
30 elif ((do_update
)); then
36 cts_build
="$(realpath VK-GL-CTS/build)"
37 if ((do_update
)); then
40 python2 external
/fetch_sources.py
43 if [[ ! -d "$cts_build" ]]; then
44 if ((do_update
)); then
48 cmake
-G Ninja
-DCMAKE_BUILD_TYPE=Debug ..
51 echo "need to run without --no-update" >&2
60 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'"