diff options
author | 2020-09-28 16:54:20 +0200 | |
---|---|---|
committer | 2020-10-06 15:30:12 +0200 | |
commit | 31901a5afd9f60e45991753ef74395eed01cd189 (patch) | |
tree | 716585da04419ed9338569845223ad3cebea8558 /support | |
parent | d466b9c0ffb3e6167ac9ec2fae7c59efdc09f79f (diff) | |
download | buildroot-31901a5afd9f60e45991753ef74395eed01cd189.tar.gz buildroot-31901a5afd9f60e45991753ef74395eed01cd189.tar.bz2 |
support/testing/tests/init/test_systemd_selinux: new SELinuxSystemdSquashfs test
Add a test called 'SELinuxSystemdSquashfs' which will perform the same
tests as the Ext4 version, but using a Squashfs filesystem. Thanks to
this, we'll have a test on a real only filesystem.
Signed-off-by: Antoine Tenart <antoine.tenart@bootlin.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Diffstat (limited to 'support')
-rw-r--r-- | support/testing/tests/init/test_systemd_selinux.py | 12 | ||||
-rw-r--r-- | support/testing/tests/init/test_systemd_selinux/linux-squashfs.fragment | 1 |
2 files changed, 13 insertions, 0 deletions
diff --git a/support/testing/tests/init/test_systemd_selinux.py b/support/testing/tests/init/test_systemd_selinux.py index 527dbf10ac..9a98a32821 100644 --- a/support/testing/tests/init/test_systemd_selinux.py +++ b/support/testing/tests/init/test_systemd_selinux.py @@ -60,3 +60,15 @@ class TestSELinuxSystemdExt4(TestSELinuxSystemd): def test_run(self): self.run_tests("ext4") + +class TestSELinuxSystemdSquashfs(TestSELinuxSystemd): + config = TestSELinuxSystemd.config + \ + """ + BR2_TARGET_ROOTFS_SQUASHFS=y + BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="{}" + """.format( + infra.filepath("tests/init/test_systemd_selinux/linux-squashfs.fragment"), + ) + + def test_run(self): + self.run_tests("squashfs") diff --git a/support/testing/tests/init/test_systemd_selinux/linux-squashfs.fragment b/support/testing/tests/init/test_systemd_selinux/linux-squashfs.fragment new file mode 100644 index 0000000000..7a89d006fa --- /dev/null +++ b/support/testing/tests/init/test_systemd_selinux/linux-squashfs.fragment @@ -0,0 +1 @@ +CONFIG_SQUASHFS=y |