This is an automated email from the ASF dual-hosted git repository.

juergbi pushed a commit to branch jbilleter/recc
in repository https://gitbox.apache.org/repos/asf/buildstream.git

commit ccca55e38c9a2d77c888b49e82cbd056c5a0e801
Author: Jürg Billeter <[email protected]>
AuthorDate: Fri Aug 22 17:15:22 2025 +0200

    Add Debian base for glibc and GCC
---
 tests/integration/base/generate-debian-base.sh     | 38 ++++++++++++++++++++++
 .../project/elements/base/base-debian.bst          | 12 +++++++
 2 files changed, 50 insertions(+)

diff --git a/tests/integration/base/generate-debian-base.sh 
b/tests/integration/base/generate-debian-base.sh
new file mode 100755
index 000000000..cafda21d7
--- /dev/null
+++ b/tests/integration/base/generate-debian-base.sh
@@ -0,0 +1,38 @@
+#!/bin/sh
+#
+#  Licensed under the Apache License, Version 2.0 (the "License");
+#  you may not use this file except in compliance with the License.
+#  You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+#  Unless required by applicable law or agreed to in writing, software
+#  distributed under the License is distributed on an "AS IS" BASIS,
+#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+#  See the License for the specific language governing permissions and
+#  limitations under the License.
+
+# Generate a base sysroot for running the BuildStream integration tests.
+#
+# The sysroot is based off the Debian Linux distribution.
+
+set -eux
+
+DOCKER_ARCH=${DOCKER_ARCH:-amd64}
+
+export DOCKER_DEFAULT_PLATFORM="linux/%{DOCKER_ARCH}"
+
+IMAGE_NAME="integration-tests-debian-base"
+
+docker build --tag ${IMAGE_NAME} -f - << "EOF"
+FROM debian:trixie-slim
+RUN apt-get update && apt-get install -y --no-install-recommends \
+    gcc libc6-dev make autoconf automake && \
+    rm -rf /var/lib/apt/lists/*
+EOF
+
+CONTAINER_NAME="$(docker create ${IMAGE_NAME})"
+
+docker export "${CONTAINER_NAME}" | xz > ${IMAGE_NAME}.tar.xz
+
+docker rm "${CONTAINER_NAME}"
diff --git a/tests/integration/project/elements/base/base-debian.bst 
b/tests/integration/project/elements/base/base-debian.bst
new file mode 100644
index 000000000..02c2c8ebf
--- /dev/null
+++ b/tests/integration/project/elements/base/base-debian.bst
@@ -0,0 +1,12 @@
+kind: import
+
+description: |
+  Debian Linux base for tests
+
+  Generated using the `tests/integration/base/generate-debian-base.sh` script.
+
+sources:
+  - kind: tar
+    base-dir: ''
+    ref: 4964ce8b12f2200a3cf1570ac93756bea27055dad771bf2be97751c7a2a0f92c
+    url: test-images:integration-tests-debian-base.v1.x86_64.tar.xz

Reply via email to