summaryrefslogtreecommitdiff
path: root/smoketest/scripts
diff options
context:
space:
mode:
authorNicolas Vollmar <nvo@scaling.ch>2024-05-27 12:13:39 +0200
committerMergify <37929162+mergify[bot]@users.noreply.github.com>2024-05-28 18:16:31 +0000
commit10df4ad8a3d7182363460b8043af2cacf128c893 (patch)
treeec4b69928cddd7d16f72f514b9db7e4e227124c9 /smoketest/scripts
parent6954288ea6b1ec7a64cec1d370f8b11884166c18 (diff)
downloadvyos-1x-10df4ad8a3d7182363460b8043af2cacf128c893.tar.gz
vyos-1x-10df4ad8a3d7182363460b8043af2cacf128c893.zip
T6406: check for required kernel config
(cherry picked from commit 5146cb23fff56e5a84db8c84120b836ceeae47f2)
Diffstat (limited to 'smoketest/scripts')
-rwxr-xr-xsmoketest/scripts/system/test_kernel_options.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/smoketest/scripts/system/test_kernel_options.py b/smoketest/scripts/system/test_kernel_options.py
index bc7f658b0..4666e98e7 100755
--- a/smoketest/scripts/system/test_kernel_options.py
+++ b/smoketest/scripts/system/test_kernel_options.py
@@ -120,5 +120,13 @@ class TestKernelModules(unittest.TestCase):
tmp = re.findall(f'{option}=(y|m)', self._config_data)
self.assertTrue(tmp)
+ def test_container_cpu(self):
+ options_to_check = [
+ 'CONFIG_CGROUP_SCHED', 'CONFIG_CPUSETS', 'CONFIG_CGROUP_CPUACCT', 'CONFIG_CFS_BANDWIDTH'
+ ]
+ 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)