blob: 2de268286860a786444a840570741e4454e751cf [file] [log] [blame]
Andres Gomezfc2338d2020-02-20 15:30:36 +02001#!/bin/bash
2
3set -ex
4
Eric Anholtf70030d2020-05-28 12:33:37 -07005git config --global user.email "mesa@example.com"
6git config --global user.name "Mesa CI"
Andres Gomezfc2338d2020-02-20 15:30:36 +02007git clone \
Samuel Pitoiset35a7ec72019-11-18 09:26:00 +01008 https://github.com/KhronosGroup/VK-GL-CTS.git \
Eric Anholteb02b312020-08-26 16:57:44 -07009 -b vulkan-cts-1.2.3.2 \
Samuel Pitoiset35a7ec72019-11-18 09:26:00 +010010 /VK-GL-CTS
Andres Gomezfc2338d2020-02-20 15:30:36 +020011pushd /VK-GL-CTS
Samuel Pitoiset35a7ec72019-11-18 09:26:00 +010012
Rob Clark8abe3bb2020-09-02 15:43:20 -070013# cherry-pick fix for surfaceless config choosing:
Rob Clark8abe3bb2020-09-02 15:43:20 -070014git cherry-pick -x 8f3bfc6c7def0c0cb452d5dadf31aa7fef242365
15
16
Samuel Pitoiset35a7ec72019-11-18 09:26:00 +010017# --insecure is due to SSL cert failures hitting sourceforge for zlib and
18# libpng (sigh). The archives get their checksums checked anyway, and git
19# always goes through ssh or https.
20python3 external/fetch_sources.py --insecure
21
22mkdir -p /deqp
Andres Gomezfc2338d2020-02-20 15:30:36 +020023
Eric Anholtdd167782020-05-28 12:50:51 -070024# Save the testlog stylesheets:
25cp doc/testlog-stylesheet/testlog.{css,xsl} /deqp
Andres Gomezfc2338d2020-02-20 15:30:36 +020026popd
27
28pushd /deqp
Samuel Pitoiset35a7ec72019-11-18 09:26:00 +010029cmake -G Ninja \
Eric Anholtdd167782020-05-28 12:50:51 -070030 -DDEQP_TARGET=${DEQP_TARGET:-x11_glx} \
Samuel Pitoiset35a7ec72019-11-18 09:26:00 +010031 -DCMAKE_BUILD_TYPE=Release \
Eric Anholtdd167782020-05-28 12:50:51 -070032 $EXTRA_CMAKE_ARGS \
Samuel Pitoiset35a7ec72019-11-18 09:26:00 +010033 /VK-GL-CTS
Eric Anholtc1e7e832020-02-11 15:44:56 -080034ninja
Samuel Pitoiset35a7ec72019-11-18 09:26:00 +010035
Eric Anholtdd167782020-05-28 12:50:51 -070036# Copy out the mustpass lists we want.
Samuel Pitoiset35a7ec72019-11-18 09:26:00 +010037mkdir /deqp/mustpass
38cp /VK-GL-CTS/external/vulkancts/mustpass/master/vk-default.txt \
39 /deqp/mustpass/vk-master.txt
40
Eric Anholteb02b312020-08-26 16:57:44 -070041cp \
42 /deqp/external/openglcts/modules/gl_cts/data/mustpass/gles/aosp_mustpass/3.2.6.x/*.txt \
43 /deqp/mustpass/.
44cp \
45 /deqp/external/openglcts/modules/gl_cts/data/mustpass/gl/khronos_mustpass/4.6.1.x/*-master.txt \
46 /deqp/mustpass/.
Eric Anholtdd167782020-05-28 12:50:51 -070047
48# Save *some* executor utils, but otherwise strip things down
49# to reduct deqp build size:
50mkdir /deqp/executor.save
51cp /deqp/executor/testlog-to-* /deqp/executor.save
Samuel Pitoiset35a7ec72019-11-18 09:26:00 +010052rm -rf /deqp/executor
Eric Anholtdd167782020-05-28 12:50:51 -070053mv /deqp/executor.save /deqp/executor
54
Eric Anholteb02b312020-08-26 16:57:44 -070055rm -rf /deqp/external/openglcts/modules/gl_cts/data/mustpass
56rm -rf /deqp/external/openglcts/modules/cts-runner
Eric Anholtdd167782020-05-28 12:50:51 -070057rm -rf /deqp/modules/internal
Samuel Pitoiset35a7ec72019-11-18 09:26:00 +010058rm -rf /deqp/execserver
59rm -rf /deqp/modules/egl
60rm -rf /deqp/framework
61find -iname '*cmake*' -o -name '*ninja*' -o -name '*.o' -o -name '*.a' | xargs rm -rf
Eric Anholtdd167782020-05-28 12:50:51 -070062${STRIP_CMD:-strip} external/vulkancts/modules/vulkan/deqp-vk
Eric Anholteb02b312020-08-26 16:57:44 -070063${STRIP_CMD:-strip} external/openglcts/modules/glcts
Eric Anholtdd167782020-05-28 12:50:51 -070064${STRIP_CMD:-strip} modules/*/deqp-*
Samuel Pitoiset35a7ec72019-11-18 09:26:00 +010065du -sh *
66rm -rf /VK-GL-CTS
Andres Gomezfc2338d2020-02-20 15:30:36 +020067popd