Andres Gomez | fc2338d | 2020-02-20 15:30:36 +0200 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
| 3 | set -ex |
| 4 | |
Eric Anholt | f70030d | 2020-05-28 12:33:37 -0700 | [diff] [blame] | 5 | git config --global user.email "mesa@example.com" |
| 6 | git config --global user.name "Mesa CI" |
Andres Gomez | fc2338d | 2020-02-20 15:30:36 +0200 | [diff] [blame] | 7 | git clone \ |
Samuel Pitoiset | 35a7ec7 | 2019-11-18 09:26:00 +0100 | [diff] [blame] | 8 | https://github.com/KhronosGroup/VK-GL-CTS.git \ |
Eric Anholt | eb02b31 | 2020-08-26 16:57:44 -0700 | [diff] [blame] | 9 | -b vulkan-cts-1.2.3.2 \ |
Samuel Pitoiset | 35a7ec7 | 2019-11-18 09:26:00 +0100 | [diff] [blame] | 10 | /VK-GL-CTS |
Andres Gomez | fc2338d | 2020-02-20 15:30:36 +0200 | [diff] [blame] | 11 | pushd /VK-GL-CTS |
Samuel Pitoiset | 35a7ec7 | 2019-11-18 09:26:00 +0100 | [diff] [blame] | 12 | |
Rob Clark | 8abe3bb | 2020-09-02 15:43:20 -0700 | [diff] [blame] | 13 | # cherry-pick fix for surfaceless config choosing: |
Rob Clark | 8abe3bb | 2020-09-02 15:43:20 -0700 | [diff] [blame] | 14 | git cherry-pick -x 8f3bfc6c7def0c0cb452d5dadf31aa7fef242365 |
| 15 | |
| 16 | |
Samuel Pitoiset | 35a7ec7 | 2019-11-18 09:26:00 +0100 | [diff] [blame] | 17 | # --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. |
| 20 | python3 external/fetch_sources.py --insecure |
| 21 | |
| 22 | mkdir -p /deqp |
Andres Gomez | fc2338d | 2020-02-20 15:30:36 +0200 | [diff] [blame] | 23 | |
Eric Anholt | dd16778 | 2020-05-28 12:50:51 -0700 | [diff] [blame] | 24 | # Save the testlog stylesheets: |
| 25 | cp doc/testlog-stylesheet/testlog.{css,xsl} /deqp |
Andres Gomez | fc2338d | 2020-02-20 15:30:36 +0200 | [diff] [blame] | 26 | popd |
| 27 | |
| 28 | pushd /deqp |
Samuel Pitoiset | 35a7ec7 | 2019-11-18 09:26:00 +0100 | [diff] [blame] | 29 | cmake -G Ninja \ |
Eric Anholt | dd16778 | 2020-05-28 12:50:51 -0700 | [diff] [blame] | 30 | -DDEQP_TARGET=${DEQP_TARGET:-x11_glx} \ |
Samuel Pitoiset | 35a7ec7 | 2019-11-18 09:26:00 +0100 | [diff] [blame] | 31 | -DCMAKE_BUILD_TYPE=Release \ |
Eric Anholt | dd16778 | 2020-05-28 12:50:51 -0700 | [diff] [blame] | 32 | $EXTRA_CMAKE_ARGS \ |
Samuel Pitoiset | 35a7ec7 | 2019-11-18 09:26:00 +0100 | [diff] [blame] | 33 | /VK-GL-CTS |
Eric Anholt | c1e7e83 | 2020-02-11 15:44:56 -0800 | [diff] [blame] | 34 | ninja |
Samuel Pitoiset | 35a7ec7 | 2019-11-18 09:26:00 +0100 | [diff] [blame] | 35 | |
Eric Anholt | dd16778 | 2020-05-28 12:50:51 -0700 | [diff] [blame] | 36 | # Copy out the mustpass lists we want. |
Samuel Pitoiset | 35a7ec7 | 2019-11-18 09:26:00 +0100 | [diff] [blame] | 37 | mkdir /deqp/mustpass |
| 38 | cp /VK-GL-CTS/external/vulkancts/mustpass/master/vk-default.txt \ |
| 39 | /deqp/mustpass/vk-master.txt |
| 40 | |
Eric Anholt | eb02b31 | 2020-08-26 16:57:44 -0700 | [diff] [blame] | 41 | cp \ |
| 42 | /deqp/external/openglcts/modules/gl_cts/data/mustpass/gles/aosp_mustpass/3.2.6.x/*.txt \ |
| 43 | /deqp/mustpass/. |
| 44 | cp \ |
| 45 | /deqp/external/openglcts/modules/gl_cts/data/mustpass/gl/khronos_mustpass/4.6.1.x/*-master.txt \ |
| 46 | /deqp/mustpass/. |
Eric Anholt | dd16778 | 2020-05-28 12:50:51 -0700 | [diff] [blame] | 47 | |
| 48 | # Save *some* executor utils, but otherwise strip things down |
| 49 | # to reduct deqp build size: |
| 50 | mkdir /deqp/executor.save |
| 51 | cp /deqp/executor/testlog-to-* /deqp/executor.save |
Samuel Pitoiset | 35a7ec7 | 2019-11-18 09:26:00 +0100 | [diff] [blame] | 52 | rm -rf /deqp/executor |
Eric Anholt | dd16778 | 2020-05-28 12:50:51 -0700 | [diff] [blame] | 53 | mv /deqp/executor.save /deqp/executor |
| 54 | |
Eric Anholt | eb02b31 | 2020-08-26 16:57:44 -0700 | [diff] [blame] | 55 | rm -rf /deqp/external/openglcts/modules/gl_cts/data/mustpass |
| 56 | rm -rf /deqp/external/openglcts/modules/cts-runner |
Eric Anholt | dd16778 | 2020-05-28 12:50:51 -0700 | [diff] [blame] | 57 | rm -rf /deqp/modules/internal |
Samuel Pitoiset | 35a7ec7 | 2019-11-18 09:26:00 +0100 | [diff] [blame] | 58 | rm -rf /deqp/execserver |
| 59 | rm -rf /deqp/modules/egl |
| 60 | rm -rf /deqp/framework |
| 61 | find -iname '*cmake*' -o -name '*ninja*' -o -name '*.o' -o -name '*.a' | xargs rm -rf |
Eric Anholt | dd16778 | 2020-05-28 12:50:51 -0700 | [diff] [blame] | 62 | ${STRIP_CMD:-strip} external/vulkancts/modules/vulkan/deqp-vk |
Eric Anholt | eb02b31 | 2020-08-26 16:57:44 -0700 | [diff] [blame] | 63 | ${STRIP_CMD:-strip} external/openglcts/modules/glcts |
Eric Anholt | dd16778 | 2020-05-28 12:50:51 -0700 | [diff] [blame] | 64 | ${STRIP_CMD:-strip} modules/*/deqp-* |
Samuel Pitoiset | 35a7ec7 | 2019-11-18 09:26:00 +0100 | [diff] [blame] | 65 | du -sh * |
| 66 | rm -rf /VK-GL-CTS |
Andres Gomez | fc2338d | 2020-02-20 15:30:36 +0200 | [diff] [blame] | 67 | popd |