ci: Bump the GLES CTS version to 3.2.6.1.
[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 apt-get install -y \
9 ca-certificates \
10 gnupg \
11
12 # Upstream LLVM package repository
13 apt-key add .gitlab-ci/container/llvm-snapshot.gpg.key
14 echo "deb https://apt.llvm.org/buster/ llvm-toolchain-buster-9 main" >/etc/apt/sources.list.d/llvm9.list
15
16 sed -i -e 's/http:\/\/deb/https:\/\/deb/g' /etc/apt/sources.list
17 echo 'deb https://deb.debian.org/debian buster-backports main' >/etc/apt/sources.list.d/backports.list
18
19 apt-get update
20
21 # Use newer packages from backports by default
22 cat >/etc/apt/preferences <<EOF
23 Package: *
24 Pin: release a=buster-backports
25 Pin-Priority: 500
26 EOF
27
28 apt-get dist-upgrade -y
29
30 apt-get install -y --no-remove \
31 cmake \
32 g++ \
33 git \
34 gcc \
35 libexpat1 \
36 libgbm-dev \
37 libgles2-mesa-dev \
38 libpng16-16 \
39 libpng-dev \
40 libvulkan1 \
41 libvulkan-dev \
42 libwaffle-dev \
43 libwayland-server0 \
44 libxcb-xfixes0 \
45 libxkbcommon0 \
46 libxkbcommon-dev \
47 libxrender1 \
48 libxrender-dev \
49 libllvm9 \
50 meson \
51 patch \
52 pkg-config \
53 python3-distutils \
54 python3-mako \
55 python3-numpy \
56 python3-six \
57 python \
58 waffle-utils \
59 xauth \
60 xvfb \
61 zlib1g
62
63
64 ############### Build piglit
65
66 . .gitlab-ci/build-piglit.sh
67
68 ############### Build dEQP runner
69
70 . .gitlab-ci/build-cts-runner.sh
71
72 ############### Build dEQP GL
73
74 . .gitlab-ci/build-deqp-gl.sh
75
76
77 ############### Uninstall the build software
78
79 apt-get purge -y \
80 cmake \
81 g++ \
82 gcc \
83 git \
84 gnupg \
85 libc6-dev \
86 libgbm-dev \
87 libgles2-mesa-dev \
88 libpng-dev \
89 libwaffle-dev \
90 libxkbcommon-dev \
91 libxrender-dev \
92 meson \
93 patch \
94 pkg-config \
95 python \
96 python3-distutils
97
98 apt-get autoremove -y --purge