Skip to content

Commit

Permalink
smoketest: T6395: check for VFIO options to be present
Browse files Browse the repository at this point in the history
(cherry picked from commit f7b0bc6)
  • Loading branch information
c-po authored and mergify[bot] committed May 27, 2024
1 parent 15cad14 commit e1afc8c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions smoketest/scripts/system/test_kernel_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,15 @@ def test_container_cgroup_support(self):
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)

0 comments on commit e1afc8c

Please sign in to comment.