summaryrefslogtreecommitdiffstats
path: root/test/TEST-66-DEVICE-ISOLATION
diff options
context:
space:
mode:
authorAnita Zhang <the.anitazha@gmail.com>2021-10-11 09:25:20 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2021-10-13 04:13:56 +0200
commit0b4f8d94989dec304e70102798d5e942effe8bee (patch)
treea3e799f00b1a386bc1da3ad0244b38c55c03cce3 /test/TEST-66-DEVICE-ISOLATION
parentMerge pull request #20992 from keszybz/fix-two-outputs (diff)
downloadsystemd-0b4f8d94989dec304e70102798d5e942effe8bee.tar.xz
systemd-0b4f8d94989dec304e70102798d5e942effe8bee.zip
core: serialize device cgroup bpf progs across daemon-reload/reexec
Follows what was done in b57d75232615f98aefcf41cb145ec2ea3262857d and adds a test that verifies the device BPF program is not detached during reload/reexec.
Diffstat (limited to 'test/TEST-66-DEVICE-ISOLATION')
l---------test/TEST-66-DEVICE-ISOLATION/Makefile1
-rwxr-xr-xtest/TEST-66-DEVICE-ISOLATION/test.sh10
2 files changed, 11 insertions, 0 deletions
diff --git a/test/TEST-66-DEVICE-ISOLATION/Makefile b/test/TEST-66-DEVICE-ISOLATION/Makefile
new file mode 120000
index 0000000000..e9f93b1104
--- /dev/null
+++ b/test/TEST-66-DEVICE-ISOLATION/Makefile
@@ -0,0 +1 @@
+../TEST-01-BASIC/Makefile \ No newline at end of file
diff --git a/test/TEST-66-DEVICE-ISOLATION/test.sh b/test/TEST-66-DEVICE-ISOLATION/test.sh
new file mode 100755
index 0000000000..534e43e493
--- /dev/null
+++ b/test/TEST-66-DEVICE-ISOLATION/test.sh
@@ -0,0 +1,10 @@
+#!/usr/bin/env bash
+set -e
+
+TEST_DESCRIPTION="test device isolation"
+TEST_NO_NSPAWN=1
+
+# shellcheck source=test/test-functions
+. "${TEST_BASE_DIR:?}/test-functions"
+
+do_test "$@"