Skip to content

rootfs-config.yaml: Add bookworm-deqp-runner #2826

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions config/core/rootfs-configs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
59 changes: 59 additions & 0 deletions config/rootfs/debos/scripts/bookworm-deqp-runner.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
#!/usr/bin/env bash
# SPDX-License-Identifier: GPL-2.0-or-later
#
# Copyright (C) 2025 Collabora, Vignesh Raman <[email protected]>
#
# 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