]> git.ipfire.org Git - thirdparty/systemd.git/commit
test: load the SELinux module outside of the VM
authorFrantisek Sumsal <frantisek@sumsal.cz>
Mon, 5 Jun 2023 20:35:05 +0000 (22:35 +0200)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Mon, 5 Jun 2023 20:52:38 +0000 (22:52 +0200)
commitfa5dee77c0d86b7b23f9d18ad0281e3b7ff08af9
tree2830e8a74ac5db0a42477137b586d6c26ba9272c
parent8c0ace5739789a971b8591f53eb94200aeec2c66
test: load the SELinux module outside of the VM

Turns out we can, apart from just building the module, "shove" it into
the SELinux database in a chroot as well. This brings quite significant
time savings, as the SELinux db rebuild takes 2 - 5 minutes in a VM
without acceleration (and takes currently ~half of the runtime of the test
in the C8S job).
test/TEST-06-SELINUX/test.sh
test/testsuite-06.units/load-systemd-test-module.service [deleted file]
test/units/testsuite-06.service