mesa/piglit!996 fixed up Piglit to allow us to do trace downloads again, so we can now bring these jobs back. The fdno trace jobs hosted at Google are still disabled whilst we try to fix their nginx. Signed-off-by: Daniel Stone <daniels@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34245>
39 lines
1.2 KiB
Bash
39 lines
1.2 KiB
Bash
#!/bin/bash
|
|
# shellcheck disable=SC2086 # we want word splitting
|
|
set -uex
|
|
|
|
uncollapsed_section_start piglit "Building piglit"
|
|
|
|
# When changing this file, you need to bump the following
|
|
# .gitlab-ci/image-tags.yml tags:
|
|
# DEBIAN_TEST_GL_TAG
|
|
# DEBIAN_TEST_VK_TAG
|
|
# KERNEL_ROOTFS_TAG
|
|
|
|
REV="68658566da1c9cd6a378b5ca36999617e26440e7"
|
|
|
|
git clone https://gitlab.freedesktop.org/mesa/piglit.git --single-branch --no-checkout /piglit
|
|
pushd /piglit
|
|
git checkout "$REV"
|
|
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 . -depth \( -name .git -o -name '*ninja*' -o -iname '*cmake*' -o -name '*.[chao]' \) \
|
|
! -name 'include_test.h' -exec rm -rf {} \;
|
|
rm -rf target_api
|
|
if [ "${PIGLIT_BUILD_TARGETS:-}" = "piglit_replayer" ]; then
|
|
find . -depth \
|
|
! -regex "^\.$" \
|
|
! -regex "^\.\/piglit.*" \
|
|
! -regex "^\.\/framework.*" \
|
|
! -regex "^\.\/bin$" \
|
|
! -regex "^\.\/bin\/replayer\.py" \
|
|
! -regex "^\.\/templates.*" \
|
|
! -regex "^\.\/tests$" \
|
|
! -regex "^\.\/tests\/replay\.py" \
|
|
-exec rm -rf {} \; 2>/dev/null
|
|
fi
|
|
popd
|
|
|
|
section_end piglit
|