2019-03-18 11:09:29 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
set -o xtrace
|
|
|
|
|
|
|
|
echo 'deb-src https://deb.debian.org/debian testing main' > /etc/apt/sources.list.d/deb-src.list
|
|
|
|
apt-get update
|
2019-03-26 20:58:39 +01:00
|
|
|
apt-get install -y \
|
2019-12-23 09:32:07 +01:00
|
|
|
autoconf \
|
|
|
|
automake \
|
|
|
|
ca-certificates \
|
|
|
|
ccache \
|
|
|
|
git \
|
|
|
|
libgl1 \
|
|
|
|
libglx-mesa0 \
|
2019-12-23 09:53:26 +01:00
|
|
|
libnvidia-egl-wayland-dev \
|
2019-12-23 09:32:07 +01:00
|
|
|
libtool \
|
|
|
|
libxkbcommon-dev \
|
|
|
|
meson \
|
|
|
|
python3-mako \
|
|
|
|
python3-numpy \
|
|
|
|
python3-six \
|
|
|
|
x11-utils \
|
|
|
|
x11-xserver-utils \
|
|
|
|
xauth \
|
|
|
|
xvfb \
|
2019-03-26 20:58:39 +01:00
|
|
|
|
2019-03-18 11:09:29 +01:00
|
|
|
apt-get build-dep -y xorg-server
|
|
|
|
|
|
|
|
cd /root
|
2019-03-26 21:33:09 +01:00
|
|
|
|
2019-03-26 21:35:41 +01:00
|
|
|
git clone https://gitlab.freedesktop.org/mesa/piglit.git --depth 1
|
2019-03-18 11:09:29 +01:00
|
|
|
|
2019-03-26 21:35:41 +01:00
|
|
|
git clone https://gitlab.freedesktop.org/xorg/test/xts --depth 1
|
2019-03-18 11:09:29 +01:00
|
|
|
cd xts
|
|
|
|
./autogen.sh
|
2019-12-23 09:35:09 +01:00
|
|
|
xvfb-run make -j4
|
2019-03-18 11:09:29 +01:00
|
|
|
cd ..
|
|
|
|
|
2019-03-26 21:38:22 +01:00
|
|
|
git clone https://gitlab.freedesktop.org/xorg/test/rendercheck --depth 1
|
|
|
|
cd rendercheck
|
|
|
|
meson build
|
2019-12-23 09:35:09 +01:00
|
|
|
ninja -j4 -C build install
|
2019-03-26 21:38:22 +01:00
|
|
|
cd ..
|
|
|
|
|
2019-12-23 09:51:43 +01:00
|
|
|
rm -rf piglit/.git xts/.git piglit/tests/spec/
|
2019-03-18 11:09:29 +01:00
|
|
|
|
|
|
|
echo '[xts]' > piglit/piglit.conf
|
|
|
|
echo 'path=/root/xts' >> piglit/piglit.conf
|
|
|
|
|
2019-12-23 09:51:43 +01:00
|
|
|
find -name \*.a -o -name \*.o -o -name \*.c -o -name \*.h -o -name \*.la\* | xargs rm
|
|
|
|
strip xts/xts5/*/.libs/*
|
2019-03-18 11:09:29 +01:00
|
|
|
|
2019-12-23 09:32:07 +01:00
|
|
|
apt-get purge -y \
|
|
|
|
git \
|
|
|
|
libxkbcommon-dev \
|
|
|
|
x11-utils \
|
|
|
|
x11-xserver-utils \
|
|
|
|
xauth \
|
|
|
|
xvfb \
|
|
|
|
|
2019-03-18 11:09:29 +01:00
|
|
|
apt-get autoremove -y --purge
|