1#!/bin/bash 2# shellcheck disable=SC2086 # we want word splitting 3set -ex 4 5# When changing this file, you need to bump the following 6# .gitlab-ci/image-tags.yml tags: 7# DEBIAN_X86_64_TEST_GL_TAG 8# DEBIAN_X86_64_TEST_VK_TAG 9# KERNEL_ROOTFS_TAG 10 11REV="2a1c49a81cd9a6bf5d0c3a9b87225be94771ca96" 12 13git clone https://gitlab.freedesktop.org/mesa/piglit.git --single-branch --no-checkout /piglit 14pushd /piglit 15git checkout "$REV" 16patch -p1 <$OLDPWD/.gitlab-ci/piglit/disable-vs_in.diff 17cmake -S . -B . -G Ninja -DCMAKE_BUILD_TYPE=Release $PIGLIT_OPTS $EXTRA_CMAKE_ARGS 18ninja $PIGLIT_BUILD_TARGETS 19find . -depth \( -name .git -o -name '*ninja*' -o -iname '*cmake*' -o -name '*.[chao]' \) -exec rm -rf {} \; 20rm -rf target_api 21if [ "$PIGLIT_BUILD_TARGETS" = "piglit_replayer" ]; then 22 find . -depth \ 23 ! -regex "^\.$" \ 24 ! -regex "^\.\/piglit.*" \ 25 ! -regex "^\.\/framework.*" \ 26 ! -regex "^\.\/bin$" \ 27 ! -regex "^\.\/bin\/replayer\.py" \ 28 ! -regex "^\.\/templates.*" \ 29 ! -regex "^\.\/tests$" \ 30 ! -regex "^\.\/tests\/replay\.py" \ 31 -exec rm -rf {} \; 2>/dev/null 32fi 33popd 34