Skip to content

Commit 48e5266

Browse files
authored
Merge pull request #3522 from c-po/smoketest-NOIOMMU
smoketest: T6395: check for VFIO options to be present
2 parents 0b75da0 + f7b0bc6 commit 48e5266

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
@@ -111,5 +111,14 @@ def test_ip_routing_support(self):
111111
tmp = re.findall(f'{option}=(y|m)', self._config_data)
112112
self.assertTrue(tmp)
113113

114+
def test_vfio(self):
115+
options_to_check = [
116+
'CONFIG_VFIO', 'CONFIG_VFIO_GROUP', 'CONFIG_VFIO_CONTAINER',
117+
'CONFIG_VFIO_IOMMU_TYPE1', 'CONFIG_VFIO_NOIOMMU', 'CONFIG_VFIO_VIRQFD'
118+
]
119+
for option in options_to_check:
120+
tmp = re.findall(f'{option}=(y|m)', self._config_data)
121+
self.assertTrue(tmp)
122+
114123
if __name__ == '__main__':
115124
unittest.main(verbosity=2)

0 commit comments

Comments
 (0)