mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
GoogleTest hello world.
./build and ./test work automatically when cwd is inside userland/libs/XXX without --package-all.
This commit is contained in:
@@ -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__':
|
||||
|
||||
Reference in New Issue
Block a user