2020-02-20 13:30:36 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -ex
|
|
|
|
|
2020-05-28 20:33:37 +01:00
|
|
|
git config --global user.email "mesa@example.com"
|
|
|
|
git config --global user.name "Mesa CI"
|
2020-02-20 13:30:36 +00:00
|
|
|
git clone \
|
2019-11-18 08:26:00 +00:00
|
|
|
https://github.com/KhronosGroup/VK-GL-CTS.git \
|
2020-05-28 20:33:37 +01:00
|
|
|
-b vulkan-cts-1.2.2.1 \
|
2019-11-18 08:26:00 +00:00
|
|
|
/VK-GL-CTS
|
2020-02-20 13:30:36 +00:00
|
|
|
pushd /VK-GL-CTS
|
2019-11-18 08:26:00 +00:00
|
|
|
|
2020-05-28 20:33:37 +01:00
|
|
|
# Cherry pick a fix that's not in 1.2.2.1 yet. Re-add --depth 1 to the clone
|
|
|
|
# when an uprev removes this.
|
|
|
|
git cherry-pick -x ea6f1ffae14de94bbd9c354ad5a6c3f452f65ac4
|
|
|
|
|
2019-11-18 08:26:00 +00:00
|
|
|
# --insecure is due to SSL cert failures hitting sourceforge for zlib and
|
|
|
|
# libpng (sigh). The archives get their checksums checked anyway, and git
|
|
|
|
# always goes through ssh or https.
|
|
|
|
python3 external/fetch_sources.py --insecure
|
|
|
|
|
|
|
|
mkdir -p /deqp
|
2020-02-20 13:30:36 +00:00
|
|
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
pushd /deqp
|
2019-11-18 08:26:00 +00:00
|
|
|
cmake -G Ninja \
|
|
|
|
-DDEQP_TARGET=x11_glx \
|
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
|
|
/VK-GL-CTS
|
2020-02-11 23:44:56 +00:00
|
|
|
ninja
|
2019-11-18 08:26:00 +00:00
|
|
|
|
|
|
|
# Copy out the mustpass list we want.
|
|
|
|
mkdir /deqp/mustpass
|
|
|
|
cp /VK-GL-CTS/external/vulkancts/mustpass/master/vk-default.txt \
|
|
|
|
/deqp/mustpass/vk-master.txt
|
|
|
|
|
|
|
|
rm -rf /deqp/modules/internal
|
|
|
|
rm -rf /deqp/executor
|
|
|
|
rm -rf /deqp/execserver
|
|
|
|
rm -rf /deqp/modules/egl
|
|
|
|
rm -rf /deqp/framework
|
|
|
|
find -iname '*cmake*' -o -name '*ninja*' -o -name '*.o' -o -name '*.a' | xargs rm -rf
|
|
|
|
strip external/vulkancts/modules/vulkan/deqp-vk
|
|
|
|
du -sh *
|
|
|
|
rm -rf /VK-GL-CTS
|
2020-02-20 13:30:36 +00:00
|
|
|
popd
|