summaryrefslogtreecommitdiff
path: root/.gitlab-ci/container/x86_test-gl.sh
diff options
context:
space:
mode:
Diffstat (limited to '.gitlab-ci/container/x86_test-gl.sh')
-rw-r--r--.gitlab-ci/container/x86_test-gl.sh88
1 files changed, 88 insertions, 0 deletions
diff --git a/.gitlab-ci/container/x86_test-gl.sh b/.gitlab-ci/container/x86_test-gl.sh
new file mode 100644
index 00000000000..6160e8b01f3
--- /dev/null
+++ b/.gitlab-ci/container/x86_test-gl.sh
@@ -0,0 +1,88 @@
+#!/bin/bash
+
+set -e
+set -o xtrace
+
+export DEBIAN_FRONTEND=noninteractive
+
+apt-get install -y ca-certificates
+
+sed -i -e 's/http:\/\/deb/https:\/\/deb/g' /etc/apt/sources.list
+echo 'deb https://deb.debian.org/debian buster-backports main' >/etc/apt/sources.list.d/backports.list
+
+apt-get update
+
+# Use newer packages from backports by default
+cat >/etc/apt/preferences <<EOF
+Package: *
+Pin: release a=buster-backports
+Pin-Priority: 500
+EOF
+
+apt-get dist-upgrade -y
+
+apt-get install -y --no-remove \
+ cmake \
+ g++ \
+ git \
+ gcc \
+ libexpat1 \
+ libgbm-dev \
+ libgles2-mesa-dev \
+ libpng16-16 \
+ libpng-dev \
+ libvulkan1 \
+ libvulkan-dev \
+ libwaffle-dev \
+ libwayland-server0 \
+ libxcb-xfixes0 \
+ libxkbcommon0 \
+ libxkbcommon-dev \
+ libxrender1 \
+ libxrender-dev \
+ meson \
+ patch \
+ pkg-config \
+ python3-mako \
+ python3-numpy \
+ python3-six \
+ python \
+ waffle-utils \
+ xauth \
+ xvfb \
+ zlib1g
+
+
+############### Build piglit
+
+. .gitlab-ci/build-piglit.sh
+
+############### Build dEQP runner
+
+. .gitlab-ci/build-cts-runner.sh
+
+############### Build dEQP GL
+
+. .gitlab-ci/build-deqp-gl.sh
+
+
+############### Uninstall the build software
+
+apt-get purge -y \
+ cmake \
+ g++ \
+ gcc \
+ git \
+ libc6-dev \
+ libgbm-dev \
+ libgles2-mesa-dev \
+ libpng-dev \
+ libwaffle-dev \
+ libxkbcommon-dev \
+ libxrender-dev \
+ meson \
+ patch \
+ pkg-config \
+ python
+
+apt-get autoremove -y --purge