mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2024-12-13 12:14:18 +08:00
cdf8a14bff
Bring up the piglit replay jwt-file argument feature. Signed-off-by: Guilherme Gallo <guilherme.gallo@collabora.com> Reviewed-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14004>
24 lines
849 B
Bash
24 lines
849 B
Bash
#!/bin/bash
|
|
|
|
set -ex
|
|
|
|
git clone https://gitlab.freedesktop.org/mesa/piglit.git --single-branch --no-checkout /piglit
|
|
pushd /piglit
|
|
git checkout 00b82804aaa4b27fe7fd134e784a23a2d358ebe1
|
|
patch -p1 <$OLDPWD/.gitlab-ci/piglit/disable-vs_in.diff
|
|
cmake -S . -B . -G Ninja -DCMAKE_BUILD_TYPE=Release $PIGLIT_OPTS $EXTRA_CMAKE_ARGS
|
|
ninja $PIGLIT_BUILD_TARGETS
|
|
find -name .git -o -name '*ninja*' -o -iname '*cmake*' -o -name '*.[chao]' | xargs rm -rf
|
|
rm -rf target_api
|
|
if [ "x$PIGLIT_BUILD_TARGETS" = "xpiglit_replayer" ]; then
|
|
find ! -regex "^\.$" \
|
|
! -regex "^\.\/piglit.*" \
|
|
! -regex "^\.\/framework.*" \
|
|
! -regex "^\.\/bin$" \
|
|
! -regex "^\.\/bin\/replayer\.py" \
|
|
! -regex "^\.\/templates.*" \
|
|
! -regex "^\.\/tests$" \
|
|
! -regex "^\.\/tests\/replay\.py" 2>/dev/null | xargs rm -rf
|
|
fi
|
|
popd
|