From 39bea55b2de0eabc2a876ed40dd664d1f80cbcd2 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 16 Sep 2024 20:28:34 +0200 Subject: Merging upstream version 256.6. Signed-off-by: Daniel Baumann --- test/units/TEST-13-NSPAWN.nspawn.sh | 60 +++++++++++++++++++++++++---- test/units/TEST-58-REPART.sh | 45 +++++++++++++++++++++- test/units/TEST-74-AUX-UTILS.detect-virt.sh | 7 ++++ 3 files changed, 104 insertions(+), 8 deletions(-) create mode 100755 test/units/TEST-74-AUX-UTILS.detect-virt.sh (limited to 'test/units') diff --git a/test/units/TEST-13-NSPAWN.nspawn.sh b/test/units/TEST-13-NSPAWN.nspawn.sh index ee0fef8..ad11468 100755 --- a/test/units/TEST-13-NSPAWN.nspawn.sh +++ b/test/units/TEST-13-NSPAWN.nspawn.sh @@ -943,6 +943,17 @@ matrix_run_one() { return 0 } +testcase_api_vfs() { + local api_vfs_writable + + for api_vfs_writable in yes no network; do + matrix_run_one no no $api_vfs_writable + matrix_run_one yes no $api_vfs_writable + matrix_run_one no yes $api_vfs_writable + matrix_run_one yes yes $api_vfs_writable + done +} + testcase_check_os_release() { # https://github.com/systemd/systemd/issues/29185 local base common_opts root @@ -973,11 +984,46 @@ testcase_check_os_release() { rm -fr "$root" "$base" } -run_testcases +testcase_ip_masquerade() { + local root + + if ! command -v networkctl >/dev/null; then + echo "This test requires systemd-networkd, skipping..." + return 0 + fi + + systemctl unmask systemd-networkd.service + systemctl edit --runtime --stdin systemd-networkd.service --drop-in=debug.conf <