summaryrefslogtreecommitdiff
path: root/smoketest/scripts/system/test_kernel_options.py
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-05-26 14:53:40 +0200
committerChristian Breunig <christian@breunig.cc>2024-05-26 14:53:40 +0200
commitf7b0bc68b7950a6c6e68b9e6708ef8a4b7b9b423 (patch)
treec04a4f97bc6bf17dfb34fa2f7317874d3809551d /smoketest/scripts/system/test_kernel_options.py
parent22dae74ef6037ad6a97da7118df42e41acbb117b (diff)
downloadvyos-1x-f7b0bc68b7950a6c6e68b9e6708ef8a4b7b9b423.tar.gz
vyos-1x-f7b0bc68b7950a6c6e68b9e6708ef8a4b7b9b423.zip
smoketest: T6395: check for VFIO options to be present
Diffstat (limited to 'smoketest/scripts/system/test_kernel_options.py')
-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 18922d93d..bc7f658b0 100755
--- a/smoketest/scripts/system/test_kernel_options.py
+++ b/smoketest/scripts/system/test_kernel_options.py
@@ -111,5 +111,14 @@ class TestKernelModules(unittest.TestCase):
tmp = re.findall(f'{option}=(y|m)', self._config_data)
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)