drisw: Port the MIT-SHM check to XCB
[mesa.git] / .gitlab-ci / container / x86_test-gl.sh
1 #!/bin/bash
2
3 set -e
4 set -o xtrace
5
6 export DEBIAN_FRONTEND=noninteractive
7
8 # Ephemeral packages (installed for this script and removed again at the end)
9 STABLE_EPHEMERAL=" \
10 autoconf \
11 automake \
12 ccache \
13 cmake \
14 g++ \
15 libgbm-dev \
16 libgles2-mesa-dev \
17 libpcre3-dev \
18 libpciaccess-dev \
19 libpng-dev \
20 libvulkan-dev \
21 libwaffle-dev \
22 libxcb-keysyms1-dev \
23 libxkbcommon-dev \
24 libxrender-dev \
25 make \
26 meson \
27 patch \
28 pkg-config \
29 python3-distutils \
30 python3.7-dev \
31 wget \
32 xz-utils \
33 "
34
35 apt-get install -y --no-remove \
36 libxcb-shm0 \
37 $STABLE_EPHEMERAL
38
39
40 . .gitlab-ci/container/container_pre_build.sh
41
42 ############### Build virglrenderer
43
44 . .gitlab-ci/build-virglrenderer.sh
45
46 ############### Build piglit
47
48 . .gitlab-ci/build-piglit.sh
49
50 ############### Build dEQP runner
51
52 . .gitlab-ci/build-cts-runner.sh
53
54 ############### Build dEQP GL
55
56 . .gitlab-ci/build-deqp-gl.sh
57
58 ############### Build apitrace
59
60 . .gitlab-ci/build-apitrace.sh
61
62 ############### Build renderdoc
63
64 . .gitlab-ci/build-renderdoc.sh
65
66 ############### Build libdrm
67
68 . .gitlab-ci/build-libdrm.sh
69
70 ############### Uninstall the build software
71
72 ccache --show-stats
73
74 apt-get purge -y \
75 $STABLE_EPHEMERAL
76
77 apt-get autoremove -y --purge