From 7d64ef7388e812372b8d2c8baa28e41b31854b8e Mon Sep 17 00:00:00 2001 From: Philip Meulengracht Date: Tue, 3 Sep 2024 13:50:08 +0200 Subject: [PATCH] slices: add gnutls-bin and dependencies --- slices/gnutls-bin.yaml | 25 +++++++++++++++++++ slices/libevent-2.1-7t64.yaml | 15 +++++++++++ slices/libgnutls-dane0t64.yaml | 17 +++++++++++++ slices/libunbound8.yaml | 17 +++++++++++++ tests/spread/integration/gnutls-bin/task.yaml | 15 +++++++++++ 5 files changed, 89 insertions(+) create mode 100644 slices/gnutls-bin.yaml create mode 100644 slices/libevent-2.1-7t64.yaml create mode 100644 slices/libgnutls-dane0t64.yaml create mode 100644 slices/libunbound8.yaml create mode 100644 tests/spread/integration/gnutls-bin/task.yaml diff --git a/slices/gnutls-bin.yaml b/slices/gnutls-bin.yaml new file mode 100644 index 00000000..7219e08c --- /dev/null +++ b/slices/gnutls-bin.yaml @@ -0,0 +1,25 @@ +package: gnutls-bin + +essential: + - gnutls-bin_copyright + +slices: + bins: + essential: + - libc6_libs + - libgnutls-dane0t64_libs + - libgnutls30t64_libs + - libtasn1-6_libs + contents: + /usr/bin/certtool: + /usr/bin/danetool: + /usr/bin/gnutls-cli: + /usr/bin/gnutls-cli-debug: + /usr/bin/gnutls-serv: + /usr/bin/ocsptool: + /usr/bin/p11tool: + /usr/bin/psktool: + + copyright: + contents: + /usr/share/doc/gnutls-bin/copyright: diff --git a/slices/libevent-2.1-7t64.yaml b/slices/libevent-2.1-7t64.yaml new file mode 100644 index 00000000..924f1433 --- /dev/null +++ b/slices/libevent-2.1-7t64.yaml @@ -0,0 +1,15 @@ +package: libevent-2.1-7t64 + +essential: + - libevent-2.1-7t64_copyright + +slices: + libs: + essential: + - libc6_libs + contents: + /usr/lib/*-linux-*/libevent-2.1.so.7*: + + copyright: + contents: + /usr/share/doc/libevent-2.1-7t64/copyright: diff --git a/slices/libgnutls-dane0t64.yaml b/slices/libgnutls-dane0t64.yaml new file mode 100644 index 00000000..9bfa6576 --- /dev/null +++ b/slices/libgnutls-dane0t64.yaml @@ -0,0 +1,17 @@ +package: libgnutls-dane0t64 + +essential: + - libgnutls-dane0t64_copyright + +slices: + libs: + essential: + - libc6_libs + - libgnutls30t64_libs + - libunbound8_libs + contents: + /usr/lib/*-linux-*/libgnutls-dane.so.0*: + + copyright: + contents: + /usr/share/doc/libgnutls-dane0t64/copyright: diff --git a/slices/libunbound8.yaml b/slices/libunbound8.yaml new file mode 100644 index 00000000..38310b82 --- /dev/null +++ b/slices/libunbound8.yaml @@ -0,0 +1,17 @@ +package: libunbound8 + +essential: + - libunbound8_copyright + +slices: + libs: + essential: + - libc6_libs + - libevent-2.1-7t64_libs + - libssl3t64_libs + contents: + /usr/lib/*-linux-*/libunbound.so.8*: + + copyright: + contents: + /usr/share/doc/libunbound8/copyright: diff --git a/tests/spread/integration/gnutls-bin/task.yaml b/tests/spread/integration/gnutls-bin/task.yaml new file mode 100644 index 00000000..088b0a4d --- /dev/null +++ b/tests/spread/integration/gnutls-bin/task.yaml @@ -0,0 +1,15 @@ +summary: Integration tests for gnutls-bin + +systems: + - -ubuntu-24.04-ppc64le + - -ubuntu-24.04-s390x + +execute: | + rootfs="$(install-slices gnutls-bin_bins)" + + # smoke-test the certificate tools + chroot "${rootfs}" /usr/bin/certtool --generate-privkey --outfile key.pem --rsa + chroot "${rootfs}" /usr/bin/certtool --get-dh-params --outfile dh.pem --sec-param medium + + # smoke-test psk + chroot "${rootfs}" /usr/bin/psktool -u psk_identity -p keys.psk