summaryrefslogtreecommitdiff
path: root/.gitlab-ci
diff options
context:
space:
mode:
authorDavid Heidelberg <david.heidelberg@collabora.com>2023-03-18 15:33:45 +0100
committerMarge Bot <emma+marge@anholt.net>2023-04-05 16:26:20 +0000
commite261e46c094c8f0bf5a537f2ad87ffa4e7f73038 (patch)
tree14769febfb108615e662568eeeb75df28eac2af9 /.gitlab-ci
parent981f512037ded3cb5ac189b9f8d5d25b9d274c59 (diff)
downloadmesa-e261e46c094c8f0bf5a537f2ad87ffa4e7f73038.tar.gz
mesa-e261e46c094c8f0bf5a537f2ad87ffa4e7f73038.tar.bz2
mesa-e261e46c094c8f0bf5a537f2ad87ffa4e7f73038.zip
ci: implement sections for cuttlefish
Reviewed-by: Helen Koike <helen.koike@collabora.com> Signed-off-by: David Heidelberg <david.heidelberg@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22005>
Diffstat (limited to '.gitlab-ci')
-rwxr-xr-x.gitlab-ci/cuttlefish-runner.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/.gitlab-ci/cuttlefish-runner.sh b/.gitlab-ci/cuttlefish-runner.sh
index 48ed85c9083..10945c72cfb 100755
--- a/.gitlab-ci/cuttlefish-runner.sh
+++ b/.gitlab-ci/cuttlefish-runner.sh
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
-
+section_start cuttlefish_setup "cuttlefish: setup"
set -xe
export HOME=/cuttlefish
@@ -84,9 +84,9 @@ $ADB shell rm /vendor/lib64/egl/libGLESv1_CM_emulation.so
$ADB shell rm /vendor/lib64/egl/libGLESv2_angle.so
$ADB shell rm /vendor/lib64/egl/libGLESv2_emulation.so
-# run tests
RESULTS=/data/results
+uncollapsed_section_switch cuttlefish_test "cuttlefish: testing"
set +e
$ADB shell "mkdir /data/results; cd /data; strace -o /data/results/out.strace -f -s 1000 ./deqp-runner \
@@ -103,6 +103,7 @@ $ADB shell "mkdir /data/results; cd /data; strace -o /data/results/out.strace -f
EXIT_CODE=$?
set -e
+section_switch cuttlefish_results "cuttlefish: gathering the results"
$ADB pull $RESULTS results
@@ -110,4 +111,5 @@ cp /cuttlefish/cuttlefish/instances/cvd-1/logs/logcat results
cp /cuttlefish/cuttlefish/instances/cvd-1/kernel.log results
cp /cuttlefish/cuttlefish/instances/cvd-1/logs/launcher.log results
+section_end cuttlefish_results
exit $EXIT_CODE