~mmach/netext73/mesa-haswell

« back to all changes in this revision

Viewing changes to .gitlab-ci/container/build-piglit.sh

  • Committer: mmach
  • Date: 2021-05-06 16:56:42 UTC
  • Revision ID: netbit73@gmail.com-20210506165642-uhshc048mfmhnj9y
2021-05-06 18:48:09

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash
 
2
 
 
3
set -ex
 
4
 
 
5
if [ -n "$INCLUDE_OPENCL_TESTS" ]; then
 
6
    PIGLIT_OPTS="-DPIGLIT_BUILD_CL_TESTS=ON"
 
7
fi
 
8
 
 
9
git clone https://gitlab.freedesktop.org/mesa/piglit.git --single-branch --no-checkout /piglit
 
10
pushd /piglit
 
11
git checkout 6a4be9e9946df310d9402f995f371c7deb8c27ba
 
12
patch -p1 <$OLDPWD/.gitlab-ci/piglit/disable-vs_in.diff
 
13
cmake -S . -B . -G Ninja -DCMAKE_BUILD_TYPE=Release $PIGLIT_OPTS $EXTRA_CMAKE_ARGS
 
14
ninja $PIGLIT_BUILD_TARGETS
 
15
find -name .git -o -name '*ninja*' -o -iname '*cmake*' -o -name '*.[chao]' | xargs rm -rf
 
16
rm -rf target_api
 
17
if [ "x$PIGLIT_BUILD_TARGETS" = "xpiglit_replayer" ]; then
 
18
    find ! -regex "^\.$" \
 
19
         ! -regex "^\.\/piglit.*" \
 
20
         ! -regex "^\.\/framework.*" \
 
21
         ! -regex "^\.\/bin$" \
 
22
         ! -regex "^\.\/bin\/replayer\.py" \
 
23
         ! -regex "^\.\/templates.*" \
 
24
         ! -regex "^\.\/tests$" \
 
25
         ! -regex "^\.\/tests\/replay\.py" 2>/dev/null | xargs rm -rf
 
26
fi
 
27
popd