mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-25 11:11:35 +01:00
32 lines
690 B
Python
Executable File
32 lines
690 B
Python
Executable File
#!/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()
|