5
if [ -n "$INCLUDE_OPENCL_TESTS" ]; then
6
PIGLIT_OPTS="-DPIGLIT_BUILD_CL_TESTS=ON"
9
git clone https://gitlab.freedesktop.org/mesa/piglit.git --single-branch --no-checkout /piglit
11
git checkout 6a4be9e9946df310d9402f995f371c7deb8c27ba
12
patch -p1 <$OLDPWD/.gitlab-ci/piglit/disable-vs_in.diff
13
cmake -S . -B . -G Ninja -DCMAKE_BUILD_TYPE=Release $PIGLIT_OPTS $EXTRA_CMAKE_ARGS
14
ninja $PIGLIT_BUILD_TARGETS
15
find -name .git -o -name '*ninja*' -o -iname '*cmake*' -o -name '*.[chao]' | xargs rm -rf
17
if [ "x$PIGLIT_BUILD_TARGETS" = "xpiglit_replayer" ]; then
18
find ! -regex "^\.$" \
19
! -regex "^\.\/piglit.*" \
20
! -regex "^\.\/framework.*" \
21
! -regex "^\.\/bin$" \
22
! -regex "^\.\/bin\/replayer\.py" \
23
! -regex "^\.\/templates.*" \
24
! -regex "^\.\/tests$" \
25
! -regex "^\.\/tests\/replay\.py" 2>/dev/null | xargs rm -rf