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

@@ -15,18 +15,13 @@ More information at: https://github.com/cirosantilli/linux-kernel-module-cheat#t
def timed_main(self):
args = self.get_common_args()
run = self.import_path_main('run')
self.common_args['kernel_cli'] = self.env['quit_init']
if self.env['emulator'] == 'gem5':
args.update({
'eval': 'm5 exit',
'trace': 'Exec,-ExecSymbol,-ExecMicro',
})
args['trace'] = 'Exec,-ExecSymbol,-ExecMicro'
run.main(**args)
elif self.env['emulator'] == 'qemu':
run_args = args.copy()
run_args.update({
'kernel_cli': 'init=/poweroff.out',
'trace': 'exec_tb',
})
args['trace'] = 'exec_tb'
run.main(**run_args)
qemu_trace2txt = self.import_path_main('qemu-trace2txt')
qemu_trace2txt.main(**args)