6 ############### Install packages for building
7 apt-get
-y install ca-certificates
8 sed -i -e 's/http:\/\/deb/https:\/\/deb/g' /etc
/apt
/sources.list
9 echo 'deb https://deb.debian.org/debian buster-backports main' >/etc
/apt
/sources.list.d
/backports.list
33 ############### Build dEQP
35 git config
--global user.email
"mesa@example.com"
36 git config
--global user.name
"Mesa CI"
37 # XXX: Use --depth 1 once we can drop the cherry-picks.
39 https
://github.com
/KhronosGroup
/VK-GL-CTS.git \
40 -b opengl-es-cts-3.2
.5.1 \
43 # Fix surfaceless build
44 git cherry-pick
-x 22f41e5e321c6dcd8569c4dad91bce89f06b3670
45 git cherry-pick
-x 1daa8dff73161ea60ead965bd6c9f2a0a2165648
47 # surfaceless links against libkms and such despite not using it.
48 sed -i '/gbm/d' targets
/surfaceless
/surfaceless.cmake
49 sed -i '/libkms/d' targets
/surfaceless
/surfaceless.cmake
50 sed -i '/libgbm/d' targets
/surfaceless
/surfaceless.cmake
52 # --insecure is due to SSL cert failures hitting sourceforge for zlib and
53 # libpng (sigh). The archives get their checksums checked anyway, and git
54 # always goes through ssh or https.
55 python3 external
/fetch_sources.py
--insecure
60 -DDEQP_TARGET=surfaceless \
61 -DCMAKE_BUILD_TYPE=Release \
65 # Copy out the mustpass lists we want from a bunch of other junk.
67 for gles
in gles2 gles3 gles31
; do
69 /deqp
/external
/openglcts
/modules
/gl_cts
/data
/mustpass
/gles
/aosp_mustpass
/3.2.5.x
/$gles-master.txt \
70 /deqp
/mustpass
/$gles-master.txt
74 rm -rf /deqp
/modules
/internal
76 rm -rf /deqp
/execserver
77 rm -rf /deqp
/modules
/egl
78 rm -rf /deqp
/framework
79 find -iname '*cmake*' -o -name '*ninja*' -o -name '*.o' -o -name '*.a' |
xargs rm -rf
80 strip modules
/*/deqp-
*
84 ############### Uninstall the build software
101 apt-get autoremove
-y --purge