mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-25 19:21:35 +01:00
userland: native testing
This commit is contained in:
@@ -8,13 +8,17 @@ import example_properties
|
||||
from thread_pool import ThreadPool
|
||||
|
||||
class Main(common.TestCliFunction):
|
||||
def __init__(self):
|
||||
super().__init__(
|
||||
description='''\
|
||||
def __init__(self, *args, **kwargs):
|
||||
if not 'description' in kwargs:
|
||||
kwargs['description'] = '''\
|
||||
https://github.com/cirosantilli/linux-kernel-module-cheat#user-mode-tests
|
||||
TODO: expose all userland relevant ./run args here as well somehow.
|
||||
''',
|
||||
)
|
||||
'''
|
||||
if not 'defaults' in kwargs:
|
||||
kwargs['defaults'] = {}
|
||||
if not 'userland' in kwargs['defaults']:
|
||||
kwargs['defaults']['userland'] = ''
|
||||
super().__init__(*args, **kwargs)
|
||||
self.add_argument(
|
||||
'tests',
|
||||
nargs='*',
|
||||
|
||||
Reference in New Issue
Block a user