x86_test-gl.sh 1.83 KB
Newer Older
1
2
3
4
5
6
7
#!/bin/bash

set -e
set -o xtrace

export DEBIAN_FRONTEND=noninteractive

8
9
# Ephemeral packages (installed for this script and removed again at the end)
STABLE_EPHEMERAL=" \
10
11
      autoconf \
      automake \
12
      ccache \
13
      clang-10 \
14
      cmake \
15
      g++ \
16
      libclang-cpp10-dev \
17
18
      libgbm-dev \
      libgles2-mesa-dev \
19
      libpcre3-dev \
20
      libpciaccess-dev \
21
      libpng-dev \
22
      libvulkan-dev \
23
      libwaffle-dev \
24
      libxcb-keysyms1-dev \
25
26
      libxkbcommon-dev \
      libxrender-dev \
27
      llvm-10-dev \
28
      make \
29
      meson \
30
      ocl-icd-opencl-dev \
31
32
      patch \
      pkg-config \
33
      python3-distutils \
34
      python3.7-dev \
Tomeu Vizoso's avatar
Tomeu Vizoso committed
35
36
      wget \
      xz-utils \
37
38
39
      "

apt-get install -y --no-remove \
40
      $STABLE_EPHEMERAL \
41
42
43
      clinfo \
      libclang-common-10-dev \
      libclang-cpp10 \
44
      libxcb-shm0 \
45
      ocl-icd-libopencl1 \
46
      python3-lxml \
47
      python3-simplejson
48

49

50
. .gitlab-ci/container/container_pre_build.sh
51

Dave Airlie's avatar
Dave Airlie committed
52
53
54
55
56

############### Build spirv-tools (debian too old)

. .gitlab-ci/build-spirv-tools.sh

57
58
59
60
############### Build libclc

. .gitlab-ci/build-libclc.sh

Tomeu Vizoso's avatar
Tomeu Vizoso committed
61
62
63
64
############### Build virglrenderer

. .gitlab-ci/build-virglrenderer.sh

65
66
############### Build piglit

67
INCLUDE_OPENCL_TESTS=1 . .gitlab-ci/build-piglit.sh
68

69
70
71
72
############### Build dEQP runner (and install rust temporarily for it)
. .gitlab-ci/build-rust.sh
. .gitlab-ci/build-deqp-runner.sh
rm -rf /root/.rustup /root/.cargo
73

74
############### Build dEQP GL
75

76
DEQP_TARGET=surfaceless . .gitlab-ci/build-deqp.sh
77

78
79
80
81
82
83
84
############### Build apitrace

. .gitlab-ci/build-apitrace.sh

############### Build renderdoc

. .gitlab-ci/build-renderdoc.sh
85

86
87
88
89
############### Build libdrm

. .gitlab-ci/build-libdrm.sh

90
91
############### Uninstall the build software

92
93
ccache --show-stats

94
apt-get purge -y \
95
      $STABLE_EPHEMERAL
96

97
apt-get autoremove -y --purge