diff options
author | Daniil Baturin <daniil@vyos.io> | 2025-06-12 13:03:20 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-06-12 13:03:20 +0100 |
commit | b0caf4541d7017dbb8cf13fe32f1c287c3c403bd (patch) | |
tree | 9f231b706bc554d127a3b22b88cb75f70ae69fab /smoketest/scripts/system/test_kernel_options.py | |
parent | 5a96b6654b48cd994f3a40172c84b876f4284924 (diff) | |
parent | 88e9fc306cb4cd03e2e39b723f224bd9b8da4a35 (diff) | |
download | vyos-1x-b0caf4541d7017dbb8cf13fe32f1c287c3c403bd.tar.gz vyos-1x-b0caf4541d7017dbb8cf13fe32f1c287c3c403bd.zip |
Merge pull request #4554 from c-po/wwan-smoketest
smoketest: T7539: improve Kernel option check for WWAN
Diffstat (limited to 'smoketest/scripts/system/test_kernel_options.py')
-rwxr-xr-x | smoketest/scripts/system/test_kernel_options.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/smoketest/scripts/system/test_kernel_options.py b/smoketest/scripts/system/test_kernel_options.py index 84e9c145d..8188e7678 100755 --- a/smoketest/scripts/system/test_kernel_options.py +++ b/smoketest/scripts/system/test_kernel_options.py @@ -143,5 +143,23 @@ class TestKernelModules(unittest.TestCase): tmp = re.findall(f'{option}=3', self._config_data) self.assertTrue(tmp) + def test_inotify_stackfs(self): + for option in ['CONFIG_INOTIFY_USER', 'CONFIG_INOTIFY_STACKFS']: + tmp = re.findall(f'{option}=y', self._config_data) + self.assertTrue(tmp) + + def test_wwan(self): + for option in ['CONFIG_USB_NET_DRIVERS', 'CONFIG_USB_USBNET', + 'CONFIG_USB_NET_CDCETHER', 'CONFIG_USB_NET_HUAWEI_CDC_NCM', + 'CONFIG_USB_NET_CDC_MBIM', 'CONFIG_USB_NET_QMI_WWAN', + 'CONFIG_USB_SIERRA_NET', 'CONFIG_WWAN', + 'CONFIG_USB_SERIAL', 'CONFIG_USB_SERIAL_WWAN']: + tmp = re.findall(f'{option}=y', self._config_data) + self.assertTrue(tmp) + + for option in ['CONFIG_WWAN_HWSIM', 'CONFIG_IOSM', 'CONFIG_MTK_T7XX']: + tmp = re.findall(f'{option}=m', self._config_data) + self.assertTrue(tmp) + if __name__ == '__main__': unittest.main(verbosity=2) |