mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-26 03:31:36 +01:00
test-userland: rename to test-userland-full-system and port to LkmcCliFunction
This commit is contained in:
@@ -7,9 +7,6 @@ from shell_helpers import LF
|
||||
class Main(common.TestCliFunction):
|
||||
def __init__(self):
|
||||
super().__init__(
|
||||
defaults={
|
||||
'print_time': False,
|
||||
},
|
||||
description='''\
|
||||
Run Linux kernel boot tests and benchmarks.
|
||||
'''
|
||||
@@ -55,10 +52,7 @@ Size of the tests to run. Scale:
|
||||
self.run = self.import_path_main('run')
|
||||
self.common_args = self.get_common_args()
|
||||
self.common_args['ctrl_c_host'] = True
|
||||
if self.env['emulator'] == 'gem5':
|
||||
self.common_args['eval'] = 'm5 exit'
|
||||
elif self.env['emulator'] == 'qemu':
|
||||
self.common_args['eval'] = '/poweroff.out'
|
||||
self.common_args['kernel_cli'] = self.env['quit_init']
|
||||
if (self.env['emulator'] == 'qemu' or
|
||||
(self.env['emulator'] == 'gem5' and self.env['size'] >= 2)):
|
||||
self._bench()
|
||||
|
||||
Reference in New Issue
Block a user