Changeset View
Changeset View
Standalone View
Standalone View
test/functional/test_runner.py
Show First 20 Lines • Show All 197 Lines • ▼ Show 20 Lines | tmpdir = os.path.join("{}", "bitcoin_test_runner_{:%Y%m%d_%H%M%S}").format( | ||||
args.tmpdirprefix, datetime.datetime.now()) | args.tmpdirprefix, datetime.datetime.now()) | ||||
os.makedirs(tmpdir) | os.makedirs(tmpdir) | ||||
logging.debug("Temporary test directory at {}".format(tmpdir)) | logging.debug("Temporary test directory at {}".format(tmpdir)) | ||||
if not os.path.isabs(args.junitoutput): | if not os.path.isabs(args.junitoutput): | ||||
args.junitoutput = os.path.join(tmpdir, args.junitoutput) | args.junitoutput = os.path.join(tmpdir, args.junitoutput) | ||||
enable_wallet = config["components"].getboolean("ENABLE_WALLET") | |||||
enable_utils = config["components"].getboolean("ENABLE_UTILS") | |||||
enable_bitcoind = config["components"].getboolean("ENABLE_BITCOIND") | enable_bitcoind = config["components"].getboolean("ENABLE_BITCOIND") | ||||
if config["environment"]["EXEEXT"] == ".exe" and not args.force: | if config["environment"]["EXEEXT"] == ".exe" and not args.force: | ||||
# https://github.com/bitcoin/bitcoin/commit/d52802551752140cf41f0d9a225a43e84404d3e9 | # https://github.com/bitcoin/bitcoin/commit/d52802551752140cf41f0d9a225a43e84404d3e9 | ||||
# https://github.com/bitcoin/bitcoin/pull/5677#issuecomment-136646964 | # https://github.com/bitcoin/bitcoin/pull/5677#issuecomment-136646964 | ||||
print( | print( | ||||
"Tests currently disabled on Windows by default. Use --force option to enable") | "Tests currently disabled on Windows by default. Use --force option to enable") | ||||
sys.exit(0) | sys.exit(0) | ||||
if not (enable_wallet and enable_utils and enable_bitcoind): | if not enable_bitcoind: | ||||
print( | print("No functional tests to run.") | ||||
"No functional tests to run. Wallet, utils, and bitcoind must all be enabled") | print("Rerun ./configure with --with-daemon and then make") | ||||
print( | |||||
"Rerun `configure` with -enable-wallet, -with-utils and -with-daemon and rerun make") | |||||
sys.exit(0) | sys.exit(0) | ||||
# Build list of tests | # Build list of tests | ||||
all_scripts = get_all_scripts_from_disk(tests_dir, NON_SCRIPTS) | all_scripts = get_all_scripts_from_disk(tests_dir, NON_SCRIPTS) | ||||
# Check all tests with parameters actually exist | # Check all tests with parameters actually exist | ||||
for test in TEST_PARAMS: | for test in TEST_PARAMS: | ||||
if test not in all_scripts: | if test not in all_scripts: | ||||
▲ Show 20 Lines • Show All 540 Lines • Show Last 20 Lines |