• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/bin/bash
2
3set -ex
4
5git clone https://gitlab.freedesktop.org/mesa/piglit.git --single-branch --no-checkout /piglit
6pushd /piglit
7git checkout 7d7dd2688c214e1b3c00f37226500cbec4a58efb
8patch -p1 <$OLDPWD/.gitlab-ci/piglit/disable-vs_in.diff
9cmake -S . -B . -G Ninja -DCMAKE_BUILD_TYPE=Release $PIGLIT_OPTS $EXTRA_CMAKE_ARGS
10ninja $PIGLIT_BUILD_TARGETS
11find -name .git -o -name '*ninja*' -o -iname '*cmake*' -o -name '*.[chao]' | xargs rm -rf
12rm -rf target_api
13if [ "x$PIGLIT_BUILD_TARGETS" = "xpiglit_replayer" ]; then
14    find ! -regex "^\.$" \
15         ! -regex "^\.\/piglit.*" \
16         ! -regex "^\.\/framework.*" \
17         ! -regex "^\.\/bin$" \
18         ! -regex "^\.\/bin\/replayer\.py" \
19         ! -regex "^\.\/templates.*" \
20         ! -regex "^\.\/tests$" \
21         ! -regex "^\.\/tests\/replay\.py" 2>/dev/null | xargs rm -rf
22fi
23popd
24