ci: Bump vulkan CTS version to 1.2.3.2, and keep the GL CTS around.
[mesa.git] / .gitlab-ci / build-deqp-vk.sh
1 #!/bin/bash
2
3 set -ex
4
5 git config --global user.email "mesa@example.com"
6 git config --global user.name "Mesa CI"
7 git clone \
8 https://github.com/KhronosGroup/VK-GL-CTS.git \
9 -b vulkan-cts-1.2.3.2 \
10 --depth 1 \
11 /VK-GL-CTS
12 pushd /VK-GL-CTS
13
14 # --insecure is due to SSL cert failures hitting sourceforge for zlib and
15 # libpng (sigh). The archives get their checksums checked anyway, and git
16 # always goes through ssh or https.
17 python3 external/fetch_sources.py --insecure
18
19 mkdir -p /deqp
20
21 # Save the testlog stylesheets:
22 cp doc/testlog-stylesheet/testlog.{css,xsl} /deqp
23 popd
24
25 pushd /deqp
26 cmake -G Ninja \
27 -DDEQP_TARGET=${DEQP_TARGET:-x11_glx} \
28 -DCMAKE_BUILD_TYPE=Release \
29 $EXTRA_CMAKE_ARGS \
30 /VK-GL-CTS
31 ninja
32
33 # Copy out the mustpass lists we want.
34 mkdir /deqp/mustpass
35 cp /VK-GL-CTS/external/vulkancts/mustpass/master/vk-default.txt \
36 /deqp/mustpass/vk-master.txt
37
38 cp \
39 /deqp/external/openglcts/modules/gl_cts/data/mustpass/gles/aosp_mustpass/3.2.6.x/*.txt \
40 /deqp/mustpass/.
41 cp \
42 /deqp/external/openglcts/modules/gl_cts/data/mustpass/gl/khronos_mustpass/4.6.1.x/*-master.txt \
43 /deqp/mustpass/.
44
45 # Save *some* executor utils, but otherwise strip things down
46 # to reduct deqp build size:
47 mkdir /deqp/executor.save
48 cp /deqp/executor/testlog-to-* /deqp/executor.save
49 rm -rf /deqp/executor
50 mv /deqp/executor.save /deqp/executor
51
52 rm -rf /deqp/external/openglcts/modules/gl_cts/data/mustpass
53 rm -rf /deqp/external/openglcts/modules/cts-runner
54 rm -rf /deqp/modules/internal
55 rm -rf /deqp/execserver
56 rm -rf /deqp/modules/egl
57 rm -rf /deqp/framework
58 find -iname '*cmake*' -o -name '*ninja*' -o -name '*.o' -o -name '*.a' | xargs rm -rf
59 ${STRIP_CMD:-strip} external/vulkancts/modules/vulkan/deqp-vk
60 ${STRIP_CMD:-strip} external/openglcts/modules/glcts
61 ${STRIP_CMD:-strip} modules/*/deqp-*
62 du -sh *
63 rm -rf /VK-GL-CTS
64 popd