Skip to content

Commit

Permalink
Merge pull request #3522 from c-po/smoketest-NOIOMMU
Browse files Browse the repository at this point in the history
smoketest: T6395: check for VFIO options to be present
  • Loading branch information
c-po authored May 27, 2024
2 parents 0b75da0 + f7b0bc6 commit 48e5266
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 @@ -111,5 +111,14 @@ def test_ip_routing_support(self):
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)

0 comments on commit 48e5266

Please sign in to comment.