summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Hildebrandt <afh@surryhill.net>2023-12-12 05:50:06 +0000
committerGitHub <noreply@github.com>2023-12-12 05:50:06 +0000
commit5b05878484434d0ea2b2723f128b25d9cdb7a52e (patch)
treef87347259e98eb7994eac7cd09a0b3869ac20500
parentb07f20850515786028229f5a4d51488e3ff30aec (diff)
parentf83d7227c87a0293dc715fc4667a76b7479d627c (diff)
downloadfork-ledger-5b05878484434d0ea2b2723f128b25d9cdb7a52e.tar.gz
fork-ledger-5b05878484434d0ea2b2723f128b25d9cdb7a52e.tar.bz2
fork-ledger-5b05878484434d0ea2b2723f128b25d9cdb7a52e.zip
Merge pull request #2316 from afh/improve-manual-testing
test: Accept test names as arguments
-rwxr-xr-xtest/RegressTests.py4
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)