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-03-26 21:33:09 +01:00
|
|
|
meson git ca-certificates ccache automake autoconf libtool \
|
2019-03-26 20:58:39 +01:00
|
|
|
libxkbcommon-dev python3-mako python3-numpy python3-six \
|
|
|
|
x11-utils x11-xserver-utils xauth xvfb \
|
|
|
|
libgl1 libglx-mesa0
|
|
|
|
|
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
|
|
|
|
xvfb-run make -j$(nproc)
|
|
|
|
cd ..
|
|
|
|
|
2019-03-26 21:38:22 +01:00
|
|
|
git clone https://gitlab.freedesktop.org/xorg/test/rendercheck --depth 1
|
|
|
|
cd rendercheck
|
|
|
|
meson build
|
|
|
|
ninja -C build install
|
|
|
|
cd ..
|
|
|
|
|
2019-03-18 11:09:29 +01:00
|
|
|
rm -rf piglit/.git xts/.git
|
|
|
|
|
|
|
|
echo '[xts]' > piglit/piglit.conf
|
|
|
|
echo 'path=/root/xts' >> piglit/piglit.conf
|
|
|
|
|
|
|
|
find -name \*.a -o -name \*.o | xargs rm
|
|
|
|
|
2019-03-26 21:33:09 +01:00
|
|
|
apt-get purge -y git libxkbcommon-dev \
|
2019-03-18 11:09:29 +01:00
|
|
|
x11-utils x11-xserver-utils xauth xvfb
|
|
|
|
apt-get autoremove -y --purge
|