1
0
Fork 0

drm_hwcomposer: CI: Add job to run headless

Currently VtsHalGraphicsComposer3_TargetTest is run with a crosvm
display with a connected display. Use the configurable vkms driver to
run VtsHalGraphicsComposer3_TargetTest with a disconnected display.

This job should help to catch errors that arise only in headless mode.

Signed-off-by: Deborah Brouwer <deborah.brouwer@collabora.com>
This commit is contained in:
Deborah Brouwer 2025-09-15 15:53:38 -07:00
parent c567d34443
commit acb3e3d8f7
2 changed files with 41 additions and 0 deletions

23
.ci/android/headless.sh Executable file
View file

@ -0,0 +1,23 @@
#!/usr/bin/env bash
# shellcheck disable=SC1091 # no need to follow references to other shell scripts
set -e
EXIT_CODE=1
source "${CI_PROJECT_DIR}/.ci/android/vts-runner.sh"
fdo_log_section_start_collapsed headless "headless"
reload_vkms
configure_vkms
stop_hwc
adb shell "echo 0 > ${VKMS_DIR}/enabled"
adb shell "echo 2 > ${VKMS_DIR}/connectors/CONNECTOR_0/status" # disconnected=2
adb shell "echo 1 > ${VKMS_DIR}/enabled"
print_vkms_config
start_hwc
set +e
run_vts "headless"
# shellcheck disable=SC2034
export EXIT_CODE=$?
fdo_log_section_end headless

View file

@ -126,3 +126,21 @@ vkms-hotplugs:
expire_in: 1 week
tags:
- kvm
vts-headless:
stage: android
extends:
.use-ubuntu/x86_64_android
script:
- "${CI_PROJECT_DIR}/.ci/android/headless.sh"
needs:
- job: build_x86_64
artifacts: true
- job: ubuntu/x86_64_android
artifacts:
paths:
- "${RESULTS_DIR}"
when: always
expire_in: 1 week
tags:
- kvm