mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-26 19:51:35 +01:00
userland: native testing
This commit is contained in:
31
test-user-mode-in-tree
Executable file
31
test-user-mode-in-tree
Executable 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()
|
||||
Reference in New Issue
Block a user