test-userland: rename to test-userland-full-system and port to LkmcCliFunction

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2019-01-22 00:00:00 +00:00
parent e51ec2aca9
commit c64e96e575
13 changed files with 119 additions and 79 deletions

View File

@@ -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()