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