summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2024-05-27 11:33:07 +0200
committerGitHub <noreply@github.com>2024-05-27 11:33:07 +0200
commit89755a60406f60943edc5a416b86f3a3f498cd26 (patch)
tree43b393c7911801ef58ff9c214105971a5207e4bc
parent15cad149f06323f0f692d590ce8bb05a70269130 (diff)
parente1afc8c03098d82904f4d66134f30dbdbab387c5 (diff)
downloadvyos-1x-89755a60406f60943edc5a416b86f3a3f498cd26.tar.gz
vyos-1x-89755a60406f60943edc5a416b86f3a3f498cd26.zip
Merge pull request #3527 from vyos/mergify/bp/sagitta/pr-3522
smoketest: T6395: check for VFIO options to be present (backport #3522)
-rwxr-xr-xsmoketest/scripts/system/test_kernel_options.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/smoketest/scripts/system/test_kernel_options.py b/smoketest/scripts/system/test_kernel_options.py
index 0e3cbd0ed..d04d0ea7c 100755
--- a/smoketest/scripts/system/test_kernel_options.py
+++ b/smoketest/scripts/system/test_kernel_options.py
@@ -94,6 +94,15 @@ class TestKernelModules(unittest.TestCase):
tmp = re.findall(f'{option}=(y|m)', config)
self.assertTrue(tmp)
+ def test_vfio(self):
+ options_to_check = [
+ 'CONFIG_VFIO', 'CONFIG_VFIO_GROUP', 'CONFIG_VFIO_CONTAINER',
+ 'CONFIG_VFIO_IOMMU_TYPE1', 'CONFIG_VFIO_NOIOMMU', 'CONFIG_VFIO_VIRQFD'
+ ]
+ for option in options_to_check:
+ tmp = re.findall(f'{option}=(y|m)', self._config_data)
+ self.assertTrue(tmp)
+
if __name__ == '__main__':
unittest.main(verbosity=2)