From e1afc8c03098d82904f4d66134f30dbdbab387c5 Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Sun, 26 May 2024 14:53:40 +0200 Subject: smoketest: T6395: check for VFIO options to be present (cherry picked from commit f7b0bc68b7950a6c6e68b9e6708ef8a4b7b9b423) --- smoketest/scripts/system/test_kernel_options.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'smoketest/scripts/system/test_kernel_options.py') 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) -- cgit v1.2.3