mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 22:49:13 +02:00
ci/container: Add new container for libva and fluster testing
The new debian/x86_64_test-video container includes va tools and Fluster. Signed-off-by: Valentine Burley <valentine.burley@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34451>
This commit is contained in:
parent
751ff1a41e
commit
414e1a22c8
8 changed files with 102 additions and 0 deletions
|
|
@ -4,6 +4,10 @@
|
|||
# shellcheck disable=SC2034 # Variables are used in scripts called from here
|
||||
# shellcheck disable=SC2086 # we want word splitting
|
||||
|
||||
# When changing this file, you need to bump the following
|
||||
# .gitlab-ci/image-tags.yml tags:
|
||||
# DEBIAN_TEST_VIDEO_TAG
|
||||
|
||||
# Install fluster in /usr/local.
|
||||
|
||||
section_start fluster "Install fluster"
|
||||
|
|
|
|||
|
|
@ -1,7 +1,9 @@
|
|||
#!/usr/bin/env bash
|
||||
# shellcheck disable=SC2086 # we want word splitting
|
||||
|
||||
# When changing this file, you need to bump the following
|
||||
# .gitlab-ci/image-tags.yml tags:
|
||||
# DEBIAN_TEST_VIDEO_TAG
|
||||
# KERNEL_ROOTFS_TAG
|
||||
|
||||
set -uex
|
||||
|
|
|
|||
71
.gitlab-ci/container/debian/x86_64_test-video.sh
Executable file
71
.gitlab-ci/container/debian/x86_64_test-video.sh
Executable file
|
|
@ -0,0 +1,71 @@
|
|||
#!/usr/bin/env bash
|
||||
# The relative paths in this file only become valid at runtime.
|
||||
# shellcheck disable=SC1091
|
||||
#
|
||||
# When changing this file, you need to bump the following
|
||||
# .gitlab-ci/image-tags.yml tags:
|
||||
# DEBIAN_TEST_VIDEO_TAG
|
||||
|
||||
set -e
|
||||
|
||||
. .gitlab-ci/setup-test-env.sh
|
||||
|
||||
set -o xtrace
|
||||
|
||||
section_start debian_setup "Base Debian system setup"
|
||||
|
||||
export DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
apt-get install -y gstreamer1.0-vaapi # This interferes with systemd deps, install separately
|
||||
|
||||
# Ephemeral packages (installed for this script and removed again at the end)
|
||||
EPHEMERAL=(
|
||||
g++
|
||||
libdrm-dev
|
||||
libva-dev
|
||||
meson
|
||||
pkgconf
|
||||
)
|
||||
|
||||
DEPS=(
|
||||
gstreamer1.0-plugins-bad
|
||||
gstreamer1.0-plugins-base
|
||||
gstreamer1.0-plugins-good
|
||||
gstreamer1.0-plugins-ugly
|
||||
gstreamer1.0-tools
|
||||
libgstreamer1.0-0
|
||||
libva-drm2
|
||||
libva-wayland2
|
||||
libva2
|
||||
)
|
||||
|
||||
apt-get update
|
||||
|
||||
apt-get install -y --no-remove --no-install-recommends \
|
||||
"${DEPS[@]}" "${EPHEMERAL[@]}" "${EXTRA_LOCAL_PACKAGES:-}"
|
||||
|
||||
. .gitlab-ci/container/container_pre_build.sh
|
||||
|
||||
section_end debian_setup
|
||||
|
||||
############### Build libva tests
|
||||
|
||||
. .gitlab-ci/container/build-va-tools.sh
|
||||
|
||||
############### Install Fluster
|
||||
|
||||
. .gitlab-ci/container/build-fluster.sh
|
||||
|
||||
############### Uninstall the build software
|
||||
|
||||
section_switch debian_cleanup "Cleaning up base Debian system"
|
||||
|
||||
apt-get purge -y "${EPHEMERAL[@]}"
|
||||
|
||||
. .gitlab-ci/container/container_post_build.sh
|
||||
|
||||
section_end debian_cleanup
|
||||
|
||||
############### Remove unused packages
|
||||
|
||||
. .gitlab-ci/container/strip-rootfs.sh
|
||||
|
|
@ -16,6 +16,7 @@
|
|||
# When changing this file, you need to bump the following
|
||||
# .gitlab-ci/image-tags.yml tags:
|
||||
# DEBIAN_TEST_GL_TAG
|
||||
# DEBIAN_TEST_VIDEO_TAG
|
||||
# DEBIAN_TEST_VK_TAG
|
||||
|
||||
set -eux -o pipefail
|
||||
|
|
|
|||
|
|
@ -489,6 +489,27 @@ debian/x86_64_test-android:
|
|||
needs:
|
||||
- debian/x86_64_test-android
|
||||
|
||||
# Debian based x86_64 test image for video
|
||||
debian/x86_64_test-video:
|
||||
extends:
|
||||
- .use-debian/x86_64_test-base
|
||||
- .export-container
|
||||
variables:
|
||||
MESA_IMAGE_TAG: &debian-x86_64_test-video ${DEBIAN_TEST_VIDEO_TAG}
|
||||
LAVA_DISTRIBUTION_TAG: "debian/x86_64_test-video:${DEBIAN_TEST_VIDEO_TAG}--${DEBIAN_BASE_TAG}--${PKG_REPO_REV}--${KERNEL_TAG}--${MESA_TEMPLATES_COMMIT}"
|
||||
|
||||
.use-debian/x86_64_test-video:
|
||||
tags:
|
||||
- $FDO_RUNNER_JOB_PRIORITY_TAG_X86_64
|
||||
extends:
|
||||
- .set-image-base-tag
|
||||
variables:
|
||||
MESA_BASE_TAG: *debian-x86_64_test-base
|
||||
MESA_IMAGE_PATH: "debian/x86_64_test-video"
|
||||
MESA_IMAGE_TAG: *debian-x86_64_test-video
|
||||
needs:
|
||||
- debian/x86_64_test-video
|
||||
|
||||
# Debian-based x86_64 image to run Python utilities
|
||||
debian/x86_64_pyutils:
|
||||
extends:
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@
|
|||
# When changing this file, you need to bump the following
|
||||
# .gitlab-ci/image-tags.yml tags:
|
||||
# DEBIAN_TEST_GL_TAG
|
||||
# DEBIAN_TEST_VIDEO_TAG
|
||||
# DEBIAN_TEST_VK_TAG
|
||||
# KERNEL_ROOTFS_TAG
|
||||
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@
|
|||
# .gitlab-ci/image-tags.yml tags:
|
||||
# DEBIAN_TEST_ANDROID_TAG
|
||||
# DEBIAN_TEST_GL_TAG
|
||||
# DEBIAN_TEST_VIDEO_TAG
|
||||
# DEBIAN_TEST_VK_TAG
|
||||
# KERNEL_ROOTFS_TAG
|
||||
set -ex
|
||||
|
|
|
|||
|
|
@ -25,6 +25,7 @@ variables:
|
|||
|
||||
DEBIAN_TEST_ANDROID_TAG: "20250423-rootfs"
|
||||
DEBIAN_TEST_GL_TAG: "20250423-rootfs"
|
||||
DEBIAN_TEST_VIDEO_TAG: "20250423-rootfs"
|
||||
DEBIAN_TEST_VK_TAG: "20250423-rootfs"
|
||||
KERNEL_ROOTFS_TAG: "20250423-rootfs"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue