Skip to content

Commit 89755a6

Browse files
authored
Merge pull request #3527 from vyos/mergify/bp/sagitta/pr-3522
smoketest: T6395: check for VFIO options to be present (backport #3522)
2 parents 15cad14 + e1afc8c commit 89755a6

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

smoketest/scripts/system/test_kernel_options.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,15 @@ def test_container_cgroup_support(self):
9494
tmp = re.findall(f'{option}=(y|m)', config)
9595
self.assertTrue(tmp)
9696

97+
def test_vfio(self):
98+
options_to_check = [
99+
'CONFIG_VFIO', 'CONFIG_VFIO_GROUP', 'CONFIG_VFIO_CONTAINER',
100+
'CONFIG_VFIO_IOMMU_TYPE1', 'CONFIG_VFIO_NOIOMMU', 'CONFIG_VFIO_VIRQFD'
101+
]
102+
for option in options_to_check:
103+
tmp = re.findall(f'{option}=(y|m)', self._config_data)
104+
self.assertTrue(tmp)
105+
97106
if __name__ == '__main__':
98107
unittest.main(verbosity=2)
99108

0 commit comments

Comments
 (0)