Samuel Pitoiset | 24dd730 | 2019-11-15 12:02:08 +0100 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
| 3 | set -ex |
| 4 | |
Christian Gmeiner | 556bb17 | 2020-10-09 11:00:23 +0200 | [diff] [blame] | 5 | if [ -n "$INCLUDE_OPENCL_TESTS" ]; then |
| 6 | PIGLIT_OPTS="-DPIGLIT_BUILD_CL_TESTS=ON" |
| 7 | fi |
| 8 | |
Samuel Pitoiset | 24dd730 | 2019-11-15 12:02:08 +0100 | [diff] [blame] | 9 | git clone https://gitlab.freedesktop.org/mesa/piglit.git --single-branch --no-checkout /piglit |
| 10 | pushd /piglit |
Dave Airlie | 5714cd3 | 2020-07-16 12:49:28 +1000 | [diff] [blame] | 11 | git checkout 404862743cf8a7b37a4e3a93b4ba1858d59cd4ab |
Samuel Pitoiset | 24dd730 | 2019-11-15 12:02:08 +0100 | [diff] [blame] | 12 | patch -p1 <$OLDPWD/.gitlab-ci/piglit/disable-vs_in.diff |
Christian Gmeiner | 556bb17 | 2020-10-09 11:00:23 +0200 | [diff] [blame] | 13 | cmake -G Ninja -DCMAKE_BUILD_TYPE=Release $PIGLIT_OPTS |
Eric Anholt | c1e7e83 | 2020-02-11 15:44:56 -0800 | [diff] [blame] | 14 | ninja |
Samuel Pitoiset | 24dd730 | 2019-11-15 12:02:08 +0100 | [diff] [blame] | 15 | find -name .git -o -name '*ninja*' -o -iname '*cmake*' -o -name '*.[chao]' | xargs rm -rf |
| 16 | rm -rf target_api |
| 17 | popd |