GoogleTest hello world.

./build and ./test work automatically when cwd is inside userland/libs/XXX
without --package-all.
This commit is contained in:
Ciro Santilli 六四事件 法轮功
2020-11-25 00:00:00 +00:00
parent 50570326d4
commit 39073519b1
11 changed files with 156 additions and 32 deletions

View File

@@ -6,15 +6,18 @@ 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={
'emulators': ['native'],
'in_tree': True,
'tests': ['.'],
}
defaults=defaults
)
if __name__ == '__main__':