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

22
test-userland-full-system Executable file
View File

@@ -0,0 +1,22 @@
#!/usr/bin/env python3
import os
import sys
import common
class Main(common.TestCliFunction):
def __init__(self):
super().__init__(
description='''\
https://github.com/cirosantilli/linux-kernel-module-cheat#test-userland-in-full-system
'''
)
def timed_main(self):
run = self.import_path_main('run')
run_args = self.get_common_args()
run_args['eval_after'] = '/test_all.sh;{};'.format(self.env['userland_quit_cmd'])
self.run_test(run, run_args)
if __name__ == '__main__':
Main().cli()