patman: Add tests for Cseries

Add various tests for the Cseries functionality, including both direct
and via-cmdline variants.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass
2025-05-10 13:05:17 +02:00
parent cc6ce7157a
commit a593f84d51
3 changed files with 3689 additions and 6 deletions

View File

@@ -3,7 +3,6 @@
__all__ = [
'checkpatch', 'cmdline', 'commit', 'control', 'cser_helper', 'cseries',
'database', 'func_test', 'get_maintainer', '__main__', 'patchstream',
'patchwork', 'project',
'send', 'series', 'settings', 'setup', 'status', 'test_checkpatch',
'test_common', 'test_settings'
'patchwork', 'project', 'send', 'series', 'settings', 'setup', 'status',
'test_checkpatch', 'test_common', 'test_cseries', 'test_settings'
]

View File

@@ -39,14 +39,14 @@ def run_patman():
# pylint: disable=C0415
from patman import func_test
from patman import test_checkpatch
from patman import test_cseries
to_run = args.testname if args.testname not in [None, 'test'] else None
result = test_util.run_test_suites(
'patman', False, args.verbose, args.no_capture,
args.test_preserve_dirs, None, to_run, None,
[test_checkpatch.TestPatch, func_test.TestFunctional,
'settings'])
[test_checkpatch.TestPatch, func_test.TestFunctional, 'settings',
test_cseries.TestCseries])
sys.exit(0 if result.wasSuccessful() else 1)
# Process commits, produce patches files, check them, email them

3684
tools/patman/test_cseries.py Normal file

File diff suppressed because it is too large Load Diff