mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2024-12-03 23:24:17 +08:00
cf0e065dcc
Main change is new traces YAML format! Signed-off-by: David Heidelberg <david.heidelberg@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18329>
27 lines
1016 B
Bash
27 lines
1016 B
Bash
#!/bin/bash
|
|
# shellcheck disable=SC2086 # we want word splitting
|
|
|
|
set -ex
|
|
|
|
git clone https://gitlab.freedesktop.org/mesa/piglit.git --single-branch --no-checkout /piglit
|
|
pushd /piglit
|
|
git checkout 591c91865012de4224bea551eac5d2274acf06ad
|
|
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
|
|
# shellcheck disable=SC2038,SC2185 # TODO: rewrite find
|
|
find -name .git -o -name '*ninja*' -o -iname '*cmake*' -o -name '*.[chao]' | xargs rm -rf
|
|
rm -rf target_api
|
|
if [ "$PIGLIT_BUILD_TARGETS" = "piglit_replayer" ]; then
|
|
# shellcheck disable=SC2038,SC2185 # TODO: rewrite find
|
|
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
|