mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-13 20:12:26 +00:00
23 lines
579 B
Python
Executable File
23 lines
579 B
Python
Executable File
#!/usr/bin/env python3
|
|
|
|
import os
|
|
|
|
import common
|
|
import lkmc.import_path
|
|
|
|
class Main(common.TestCliFunction):
|
|
def __init__(self):
|
|
super().__init__(
|
|
description='''\
|
|
https://cirosantilli.com/linux-kernel-module-cheat#test-userland-in-full-system
|
|
'''
|
|
)
|
|
def timed_main(self):
|
|
run = lkmc.import_path.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()
|