Changeset View
Changeset View
Standalone View
Standalone View
test/functional/test_runner.py
Show First 20 Lines • Show All 72 Lines • ▼ Show 20 Lines | BASE_SCRIPTS = [ | ||||
'merkle_blocks.py', | 'merkle_blocks.py', | ||||
'receivedby.py', | 'receivedby.py', | ||||
'abandonconflict.py', | 'abandonconflict.py', | ||||
'bip68-112-113-p2p.py', | 'bip68-112-113-p2p.py', | ||||
'rawtransactions.py', | 'rawtransactions.py', | ||||
'reindex.py', | 'reindex.py', | ||||
# vv Tests less than 30s vv | # vv Tests less than 30s vv | ||||
'zmq_test.py', | 'zmq_test.py', | ||||
'bitcoin_cli.py', | |||||
'mempool_resurrect_test.py', | 'mempool_resurrect_test.py', | ||||
'txn_doublespend.py --mineblock', | 'txn_doublespend.py --mineblock', | ||||
'txn_clone.py', | 'txn_clone.py', | ||||
'getchaintips.py', | 'getchaintips.py', | ||||
'rest.py', | 'rest.py', | ||||
'mempool_spendcoinbase.py', | 'mempool_spendcoinbase.py', | ||||
'mempool_reorg.py', | 'mempool_reorg.py', | ||||
'mempool_persist.py', | 'mempool_persist.py', | ||||
▲ Show 20 Lines • Show All 201 Lines • ▼ Show 20 Lines | def run_tests(test_list, src_dir, build_dir, exeext, tmpdir, jobs=1, enable_coverage=False, args=[]): | ||||
cache_dir = "%s/test/cache" % build_dir | cache_dir = "%s/test/cache" % build_dir | ||||
if os.path.isdir(cache_dir): | if os.path.isdir(cache_dir): | ||||
print("%sWARNING!%s There is a cache directory here: %s. If tests fail unexpectedly, try deleting the cache directory." % ( | print("%sWARNING!%s There is a cache directory here: %s. If tests fail unexpectedly, try deleting the cache directory." % ( | ||||
BOLD[1], BOLD[0], cache_dir)) | BOLD[1], BOLD[0], cache_dir)) | ||||
# Set env vars | # Set env vars | ||||
if "BITCOIND" not in os.environ: | if "BITCOIND" not in os.environ: | ||||
os.environ["BITCOIND"] = build_dir + '/src/bitcoind' + exeext | os.environ["BITCOIND"] = build_dir + '/src/bitcoind' + exeext | ||||
os.environ["BITCOINCLI"] = build_dir + '/src/bitcoin-cli' + exeext | |||||
tests_dir = src_dir + '/test/functional/' | tests_dir = src_dir + '/test/functional/' | ||||
flags = ["--srcdir={}/src".format(build_dir)] + args | flags = ["--srcdir={}/src".format(build_dir)] + args | ||||
flags.append("--cachedir=%s" % cache_dir) | flags.append("--cachedir=%s" % cache_dir) | ||||
if enable_coverage: | if enable_coverage: | ||||
coverage = RPCCoverage() | coverage = RPCCoverage() | ||||
▲ Show 20 Lines • Show All 249 Lines • Show Last 20 Lines |