diff options
author | Christian Breunig <christian@breunig.cc> | 2024-05-27 09:43:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-27 09:43:54 +0200 |
commit | 48e5266e2bca8d1d7a2ee4bacbe0e6628de3fa66 (patch) | |
tree | 4833cee0cf32a2bdcbc018991633e66a8caa2b92 /smoketest/scripts/system/test_kernel_options.py | |
parent | 0b75da03a7a886f6781174daf45d8e36bd881911 (diff) | |
parent | f7b0bc68b7950a6c6e68b9e6708ef8a4b7b9b423 (diff) | |
download | vyos-1x-48e5266e2bca8d1d7a2ee4bacbe0e6628de3fa66.tar.gz vyos-1x-48e5266e2bca8d1d7a2ee4bacbe0e6628de3fa66.zip |
Merge pull request #3522 from c-po/smoketest-NOIOMMU
smoketest: T6395: check for VFIO options to be present
Diffstat (limited to 'smoketest/scripts/system/test_kernel_options.py')
-rwxr-xr-x | smoketest/scripts/system/test_kernel_options.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/smoketest/scripts/system/test_kernel_options.py b/smoketest/scripts/system/test_kernel_options.py index 18922d93d..bc7f658b0 100755 --- a/smoketest/scripts/system/test_kernel_options.py +++ b/smoketest/scripts/system/test_kernel_options.py @@ -111,5 +111,14 @@ class TestKernelModules(unittest.TestCase): 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) |