userland: native testing

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2019-05-05 00:00:00 +00:00
parent 5daad53289
commit 8509f17a84
37 changed files with 142 additions and 45 deletions

31
test-user-mode-in-tree Executable file
View File

@@ -0,0 +1,31 @@
#!/usr/bin/env python3
import imp
import os
import subprocess
git_root = subprocess.check_output([
'git',
'rev-parse',
'--show-toplevel',
]).decode().rstrip()
test_user_mode = imp.load_source(
'test_user_mode',
os.path.join(git_root, 'test-user-mode')
)
class Main(test_user_mode.Main):
def __init__(self):
super().__init__(
description='''\
https://github.com/cirosantilli/linux-kernel-module-cheat#userland-setup-getting-started-natively
''',
defaults={
'emulators': ['native'],
'in_tree': True,
'tests': ['.'],
}
)
if __name__ == '__main__':
Main().cli()