Skip to content
Merged
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 @@ -113,6 +113,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-fault-injection:
rootfs_type: debos
debian_release: bookworm
Expand Down
54 changes: 54 additions & 0 deletions config/rootfs/debos/scripts/bookworm-deqp-runner.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
#!/usr/bin/env bash
# SPDX-License-Identifier: GPL-2.0-or-later
#
# Copyright (C) 2025 Collabora, Vignesh Raman <vignesh.raman@collabora.com>
#
# 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://gitlab.freedesktop.org/mesa/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

# 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