diff --git a/config/core/rootfs-configs.yaml b/config/core/rootfs-configs.yaml index 6b5a50f7f6..bf389322d5 100644 --- a/config/core/rootfs-configs.yaml +++ b/config/core/rootfs-configs.yaml @@ -117,6 +117,18 @@ rootfs_configs: script: "scripts/bookworm-cros-ec-tests.sh" test_overlay: "" + bookworm-deqp-runner: + rootfs_type: debos + debian_release: bookworm + arch_list: + - amd64 + - arm64 + - armhf + script: "scripts/bookworm-deqp-runner.sh" + imagesize: 4GB + debos_memory: 8G + debos_scratchsize: 16G + bookworm-gst-fluster: rootfs_type: debos debian_release: bookworm diff --git a/config/rootfs/debos/scripts/bookworm-deqp-runner.sh b/config/rootfs/debos/scripts/bookworm-deqp-runner.sh new file mode 100755 index 0000000000..8ba26f92f2 --- /dev/null +++ b/config/rootfs/debos/scripts/bookworm-deqp-runner.sh @@ -0,0 +1,59 @@ +#!/usr/bin/env bash +# SPDX-License-Identifier: GPL-2.0-or-later +# +# Copyright (C) 2025 Collabora, Vignesh Raman +# +# Based on the build-deqp-runner.sh script from the mesa project: +# https://gitlab.freedesktop.org/mesa/mesa/-/blob/main/.gitlab-ci/container/build-deqp-runner.sh +# +# shellcheck disable=SC2086 # we want word splitting + +set -uex + +# Build-depends needed to build the test suites, they'll be removed later +BUILD_DEPS="\ + build-essential \ + ca-certificates \ + curl \ + git +" + +export DEBIAN_FRONTEND=noninteractive + +apt-get update +apt-get install --no-install-recommends -y ${BUILD_DEPS} + +# Install rust +curl https://sh.rustup.rs -sSf | sh -s -- -y +. "$HOME/.cargo/env" || true + +rustup component add clippy rustfmt + +DEQP_RUNNER_GIT_URL="${DEQP_RUNNER_GIT_URL:-https://github.com/vigneshraman/deqp-runner.git}" +DEQP_RUNNER_GIT_TAG="${DEQP_RUNNER_GIT_TAG:-v0.20.0}" + +git clone $DEQP_RUNNER_GIT_URL --single-branch --no-checkout +pushd deqp-runner +git checkout $DEQP_RUNNER_GIT_TAG + +cargo install --locked \ + -j ${FDO_CI_CONCURRENT:-4} \ + --root /usr/local \ + ${EXTRA_CARGO_ARGS:-} \ + --path . + +popd +rm -rf deqp-runner + +# Remove unused test runners +if [ -z "${DEQP_RUNNER_GIT_TAG:-}" ]; then + rm -f /usr/local/bin/igt-runner +fi + +# Cleanup cargo cache +rm -rf /root/.cargo/registry +rustup self uninstall -y + +apt-get remove --purge -y ${BUILD_DEPS} +apt-get autoremove --purge -y +apt-get clean