gitlab-ci: Remove limit on kernel logging
[mesa.git] / .gitlab-ci / build-deqp.sh
1 git config --global user.email "mesa@example.com"
2 git config --global user.name "Mesa CI"
3 # XXX: Use --depth 1 once we can drop the cherry-picks.
4 git clone \
5 https://github.com/KhronosGroup/VK-GL-CTS.git \
6 -b opengl-es-cts-3.2.5.1 \
7 /VK-GL-CTS
8 cd /VK-GL-CTS
9 # Fix surfaceless build
10 git cherry-pick -x 22f41e5e321c6dcd8569c4dad91bce89f06b3670
11 git cherry-pick -x 1daa8dff73161ea60ead965bd6c9f2a0a2165648
12
13 # surfaceless links against libkms and such despite not using it.
14 sed -i '/gbm/d' targets/surfaceless/surfaceless.cmake
15 sed -i '/libkms/d' targets/surfaceless/surfaceless.cmake
16 sed -i '/libgbm/d' targets/surfaceless/surfaceless.cmake
17
18 # --insecure is due to SSL cert failures hitting sourceforge for zlib and
19 # libpng (sigh). The archives get their checksums checked anyway, and git
20 # always goes through ssh or https.
21 python3 external/fetch_sources.py --insecure
22
23 mkdir -p /deqp
24 cd /deqp
25 cmake -G Ninja \
26 -DDEQP_TARGET=surfaceless \
27 -DCMAKE_BUILD_TYPE=Release \
28 /VK-GL-CTS
29 ninja
30
31 # Copy out the mustpass lists we want from a bunch of other junk.
32 mkdir /deqp/mustpass
33 for gles in gles2 gles3 gles31; do
34 cp \
35 /deqp/external/openglcts/modules/gl_cts/data/mustpass/gles/aosp_mustpass/3.2.5.x/$gles-master.txt \
36 /deqp/mustpass/$gles-master.txt
37 done
38
39 rm -rf /deqp/external
40 rm -rf /deqp/modules/internal
41 rm -rf /deqp/executor
42 rm -rf /deqp/execserver
43 rm -rf /deqp/modules/egl
44 rm -rf /deqp/framework
45 find -iname '*cmake*' -o -name '*ninja*' -o -name '*.o' -o -name '*.a' | xargs rm -rf
46 strip modules/*/deqp-*
47 du -sh *
48 rm -rf /VK-GL-CTS