Files
linux-kernel-module-cheat/test-executables-in-tree
Ciro Santilli 六四事件 法轮功 39073519b1 GoogleTest hello world.
./build and ./test work automatically when cwd is inside userland/libs/XXX
without --package-all.
2020-11-25 00:00:00 +00:00

25 lines
621 B
Python
Executable File

#!/usr/bin/env python3
import lkmc.import_path
test_user_mode = lkmc.import_path.import_path_relative_root('test-executables')
class Main(test_user_mode.Main):
def __init__(self):
defaults = {
'emulators': ['native'],
'in_tree': True,
'tests': ['.'],
}
if self.cwd_in_lib():
defaults['package_all'] = True
super().__init__(
description='''\
https://cirosantilli.com/linux-kernel-module-cheat#userland-setup-getting-started-natively
''',
defaults=defaults
)
if __name__ == '__main__':
Main().cli()