Changeset View
Changeset View
Standalone View
Standalone View
test/functional/test_framework/tests/run_self_tests.sh
#!/bin/sh | #!/bin/sh | ||||
# Copyright (c) 2017 The Bitcoin developers | # Copyright (c) 2017 The Bitcoin developers | ||||
# Distributed under the MIT software license, see the accompanying | # Distributed under the MIT software license, see the accompanying | ||||
# file COPYING or http://www.opensource.org/licenses/mit-license.php. | # file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
# | # | ||||
# Executes the test framework self-tests located in | # Executes the test framework self-tests located in | ||||
# qa/rpc-tests/test_framework/tests. | # qa/rpc-tests/test_framework/tests. | ||||
# | # | ||||
# You should be able to call this script from pretty much anywhere. | # You should be able to call this script from pretty much anywhere. | ||||
# It takes care of setting up the PYTHONPATH so tests can run. | # It takes care of setting up the PYTHONPATH so tests can run. | ||||
export LC_ALL=C | |||||
# Enable exit on any error. | # Enable exit on any error. | ||||
set -e | set -e | ||||
# Save folder from which script was called. | # Save folder from which script was called. | ||||
# We may need to return after looking for the base folder. | # We may need to return after looking for the base folder. | ||||
start_folder="$(pwd)" | start_folder="$(pwd)" | ||||
if [ -d qa/rpc-tests ] | if [ -d qa/rpc-tests ] | ||||
Show All 34 Lines |