diff options
author | 2020-09-28 16:54:23 +0200 | |
---|---|---|
committer | 2020-10-06 15:30:12 +0200 | |
commit | 0f3b931624f9a233369489a5b025b6159395d8c0 (patch) | |
tree | f7ac9d0d5edfaa052f5d537befa3728ccaeed6ba | |
parent | 4fe09f4cabcd59bd9fb5f46c5160cc17b79377ed (diff) | |
download | buildroot-0f3b931624f9a233369489a5b025b6159395d8c0.tar.gz buildroot-0f3b931624f9a233369489a5b025b6159395d8c0.tar.bz2 |
support/testing/tests/core/test_selinux: new test for BR2_PACKAGE_REFPOLICY_CUSTOM_GIT
Add a test for BR2_PACKAGE_REFPOLICY_CUSTOM_GIT (which allows to select
a custom location for the SELinux refpolicy). The test uses the official
refpolicy as a test (we only want to test the functionality is working,
not that another refpolicy is correctly building; that is an user
problematic).
Signed-off-by: Antoine Tenart <antoine.tenart@bootlin.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
-rw-r--r-- | support/testing/tests/core/test_selinux.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/support/testing/tests/core/test_selinux.py b/support/testing/tests/core/test_selinux.py index 9e189d6114..bb6604590a 100644 --- a/support/testing/tests/core/test_selinux.py +++ b/support/testing/tests/core/test_selinux.py @@ -47,3 +47,14 @@ class TestSELinuxExtraModulesDirs(TestSELinuxInfra): out, ret = self.emulator.run("seinfo -t buildroot_test_t", 15) self.assertEqual(ret, 0) self.assertEqual(out[2].strip(), "buildroot_test_t") + +class TestSELinuxCustomGit(TestSELinuxInfra): + config = TestSELinuxInfra.config + \ + """ + BR2_PACKAGE_REFPOLICY_CUSTOM_GIT=y + BR2_PACKAGE_REFPOLICY_CUSTOM_REPO_URL="https://github.com/SELinuxProject/refpolicy.git" + BR2_PACKAGE_REFPOLICY_CUSTOM_REPO_VERSION="RELEASE_2_20200818" + """ + + def test_run(self): + pass |