From af12f840dd907f3352d61ffee9c08bd36a818a4f Mon Sep 17 00:00:00 2001 From: Jeremy Norris Date: Mon, 16 Dec 2024 11:10:18 -0600 Subject: [PATCH] feat(24.04): add slice for gosu (#430) --- slices/gosu.yaml | 13 +++++++++++++ tests/spread/integration/gosu/task.yaml | 11 +++++++++++ 2 files changed, 24 insertions(+) create mode 100644 slices/gosu.yaml create mode 100644 tests/spread/integration/gosu/task.yaml diff --git a/slices/gosu.yaml b/slices/gosu.yaml new file mode 100644 index 00000000..91939ebc --- /dev/null +++ b/slices/gosu.yaml @@ -0,0 +1,13 @@ +package: gosu + +essential: + - gosu_copyright + +slices: + bins: + contents: + /usr/sbin/gosu: + + copyright: + contents: + /usr/share/doc/gosu/copyright: diff --git a/tests/spread/integration/gosu/task.yaml b/tests/spread/integration/gosu/task.yaml new file mode 100644 index 00000000..dcb1fd83 --- /dev/null +++ b/tests/spread/integration/gosu/task.yaml @@ -0,0 +1,11 @@ +summary: Integration tests for gosu + +execute: | + # Chisel a minimum number of slices to give us a runnable system that we can + # test in. + rootfs="$(install-slices gosu_bins)" + + mkdir -p "${rootfs}"/proc/self + ln -sf /usr/sbin/gosu "${rootfs}"/proc/self/exe + + chroot "${rootfs}/" gosu -h