diff options
author | Alexis Hildebrandt <afh@surryhill.net> | 2023-12-09 14:29:45 +0100 |
---|---|---|
committer | Alexis Hildebrandt <afh@surryhill.net> | 2023-12-09 22:22:07 +0100 |
commit | f83d7227c87a0293dc715fc4667a76b7479d627c (patch) | |
tree | 1503166c2a66eced92ea42c43c9718debd19ba66 /test/RegressTests.py | |
parent | 7c113c4f7e3dd2a192a79af53be23312455e6e67 (diff) | |
download | fork-ledger-f83d7227c87a0293dc715fc4667a76b7479d627c.tar.gz fork-ledger-f83d7227c87a0293dc715fc4667a76b7479d627c.tar.bz2 fork-ledger-f83d7227c87a0293dc715fc4667a76b7479d627c.zip |
test: Accept test names as arguments
Diffstat (limited to 'test/RegressTests.py')
-rwxr-xr-x | test/RegressTests.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/RegressTests.py b/test/RegressTests.py index 47abc3d0..1804d32e 100755 --- a/test/RegressTests.py +++ b/test/RegressTests.py @@ -27,6 +27,10 @@ args = parser.parse_args() multiproc &= (args.jobs >= 1) harness = LedgerHarness(args.ledger, args.sourcepath, args.verify, args.gmalloc, args.python) +match = re.match(r'(Baseline|Regress|Manual)Test_(.*)', str(args.tests)) +if match: + args.tests = pathlib.Path('test') / match.group(1).lower() / (match.group(2) + '.test') + if not args.tests.is_dir() and not args.tests.is_file(): print(f'{args.tests} is not a directory or file (cwd: {os.getcwd()})' , file=sys.stderr) |