diff options
author | jnewbery <john@johnnewbery.com> | 2016-10-04 13:02:06 -0400 |
---|---|---|
committer | jnewbery <john@johnnewbery.com> | 2016-10-05 09:16:08 -0400 |
commit | 621441a7a72ec0b17594a24a2c5fedcac0c605f6 (patch) | |
tree | 7c38dba898de10794da98809e87c5dd3ac120544 /src/test/bctest.py | |
parent | a7e5cbb209d4aeb8c2e4c58c92bf214759998056 (diff) |
add verbose mode to bitcoin-util-test.py
Diffstat (limited to 'src/test/bctest.py')
-rw-r--r-- | src/test/bctest.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/test/bctest.py b/src/test/bctest.py index 39a27fcd0c..d801415c70 100644 --- a/src/test/bctest.py +++ b/src/test/bctest.py @@ -45,13 +45,17 @@ def bctest(testDir, testObj, exeext): print("Return code mismatch for " + outputFn) sys.exit(1) -def bctester(testDir, input_basename, buildenv): +def bctester(testDir, input_basename, buildenv, verbose = False): input_filename = testDir + "/" + input_basename raw_data = open(input_filename).read() input_data = json.loads(raw_data) for testObj in input_data: + if verbose and "description" in testObj: + print ("Testing: " + testObj["description"]) bctest(testDir, testObj, buildenv.exeext) + if verbose and "description" in testObj: + print ("PASS") sys.exit(0) |