merge test-user-mode and test-baremetal into test-executables

Differentiate with --mode userland vs --mode baremetal.

The code was basically copied, now it's DRY.
This commit is contained in:
Ciro Santilli 六四事件 法轮功
2019-05-29 00:00:01 +00:00
parent 6994dc21af
commit fedb68c62c
11 changed files with 84 additions and 130 deletions

21
test-executables-in-tree Executable file
View File

@@ -0,0 +1,21 @@
#!/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):
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()