• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/bin/bash
2
3set -ex
4
5if [ -n "$INCLUDE_OPENCL_TESTS" ]; then
6    PIGLIT_OPTS="-DPIGLIT_BUILD_CL_TESTS=ON"
7fi
8
9git clone https://gitlab.freedesktop.org/mesa/piglit.git --single-branch --no-checkout /piglit
10pushd /piglit
11git checkout 404862743cf8a7b37a4e3a93b4ba1858d59cd4ab
12patch -p1 <$OLDPWD/.gitlab-ci/piglit/disable-vs_in.diff
13cmake -G Ninja -DCMAKE_BUILD_TYPE=Release $PIGLIT_OPTS
14ninja
15find -name .git -o -name '*ninja*' -o -iname '*cmake*' -o -name '*.[chao]' | xargs rm -rf
16rm -rf target_api
17popd
18