-git clone --depth 1 \
+#!/bin/bash
+
+set -ex
+
+git clone \
+ --depth 1 \
https://github.com/KhronosGroup/VK-GL-CTS.git \
-b vulkan-cts-1.1.6.0 \
/VK-GL-CTS
-cd /VK-GL-CTS
+pushd /VK-GL-CTS
# --insecure is due to SSL cert failures hitting sourceforge for zlib and
# libpng (sigh). The archives get their checksums checked anyway, and git
python3 external/fetch_sources.py --insecure
mkdir -p /deqp
-cd /deqp
+
+popd
+
+pushd /deqp
cmake -G Ninja \
-DDEQP_TARGET=x11_glx \
-DCMAKE_BUILD_TYPE=Release \
strip external/vulkancts/modules/vulkan/deqp-vk
du -sh *
rm -rf /VK-GL-CTS
+popd