~mmach/netext73/mesa-haswell

« back to all changes in this revision

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

  • Committer: mmach
  • Date: 2022-09-22 19:56:13 UTC
  • Revision ID: netbit73@gmail.com-20220922195613-wtik9mmy20tmor0i
2022-09-22 21:17:09

Show diffs side-by-side

added added

removed removed

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