mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 12:02:48 +01:00
Merge #15370: test_runner: Remove unused --force option
fae8b8bb1a qa: Add tool-prefix to functional test readme (MarcoFalke) faf3d22725 test_runner: Remove unused --force option (MarcoFalke) Pull request description: When someone calls the script they already have all intention to call it, no need to specify a redundant `--force`. The functional tests are still disabled on the travis windows cross builds, where they'd run into issues when run under Wine. Tree-SHA512: ada0dd9b3c0cd28c5832a12c5e04c029dc3bfe5ddf366fd0abc24fb7914d2e0f0a873fe756ade7ba780a561abe9bc731838c289accc421deda481269e08514cd
This commit is contained in:
parent
eab6110ab6
commit
1de247956c
@ -215,10 +215,11 @@ after_success:
|
|||||||
BITCOIN_CONFIG="--enable-glibc-back-compat --enable-reduce-exports"
|
BITCOIN_CONFIG="--enable-glibc-back-compat --enable-reduce-exports"
|
||||||
|
|
||||||
- stage: test
|
- stage: test
|
||||||
name: 'Win64 [GOAL: deploy] [no gui tests]'
|
name: 'Win64 [GOAL: deploy] [no gui or functional tests]'
|
||||||
env: >-
|
env: >-
|
||||||
HOST=x86_64-w64-mingw32
|
HOST=x86_64-w64-mingw32
|
||||||
PACKAGES="python3 nsis g++-mingw-w64-x86-64 wine-binfmt wine64"
|
PACKAGES="python3 nsis g++-mingw-w64-x86-64 wine-binfmt wine64"
|
||||||
|
RUN_FUNCTIONAL_TESTS=false
|
||||||
GOAL="deploy"
|
GOAL="deploy"
|
||||||
BITCOIN_CONFIG="--enable-reduce-exports --disable-gui-tests"
|
BITCOIN_CONFIG="--enable-reduce-exports --disable-gui-tests"
|
||||||
|
|
||||||
|
@ -43,6 +43,7 @@ don't have test cases for.
|
|||||||
- `mining` for tests for mining features, eg `mining_prioritisetransaction.py`
|
- `mining` for tests for mining features, eg `mining_prioritisetransaction.py`
|
||||||
- `p2p` for tests that explicitly test the p2p interface, eg `p2p_disconnect_ban.py`
|
- `p2p` for tests that explicitly test the p2p interface, eg `p2p_disconnect_ban.py`
|
||||||
- `rpc` for tests for individual RPC methods or features, eg `rpc_listtransactions.py`
|
- `rpc` for tests for individual RPC methods or features, eg `rpc_listtransactions.py`
|
||||||
|
- `tool` for tests for tools, eg `tool_wallet.py`
|
||||||
- `wallet` for tests for wallet features, eg `wallet_keypool.py`
|
- `wallet` for tests for wallet features, eg `wallet_keypool.py`
|
||||||
- use an underscore to separate words
|
- use an underscore to separate words
|
||||||
- exception: for tests for specific RPCs or command line options which don't include underscores, name the test after the exact RPC or argument name, eg `rpc_decodescript.py`, not `rpc_decode_script.py`
|
- exception: for tests for specific RPCs or command line options which don't include underscores, name the test after the exact RPC or argument name, eg `rpc_decodescript.py`, not `rpc_decode_script.py`
|
||||||
|
@ -7,8 +7,6 @@
|
|||||||
This module calls down into individual test cases via subprocess. It will
|
This module calls down into individual test cases via subprocess. It will
|
||||||
forward all unrecognized arguments onto the individual test scripts.
|
forward all unrecognized arguments onto the individual test scripts.
|
||||||
|
|
||||||
Functional tests are disabled on Windows by default. Use --force to run them anyway.
|
|
||||||
|
|
||||||
For a description of arguments recognized by test scripts, see
|
For a description of arguments recognized by test scripts, see
|
||||||
`test/functional/test_framework/test_framework.py:BitcoinTestFramework.main`.
|
`test/functional/test_framework/test_framework.py:BitcoinTestFramework.main`.
|
||||||
|
|
||||||
@ -236,7 +234,6 @@ def main():
|
|||||||
parser.add_argument('--ci', action='store_true', help='Run checks and code that are usually only enabled in a continuous integration environment')
|
parser.add_argument('--ci', action='store_true', help='Run checks and code that are usually only enabled in a continuous integration environment')
|
||||||
parser.add_argument('--exclude', '-x', help='specify a comma-separated-list of scripts to exclude.')
|
parser.add_argument('--exclude', '-x', help='specify a comma-separated-list of scripts to exclude.')
|
||||||
parser.add_argument('--extended', action='store_true', help='run the extended test suite in addition to the basic tests')
|
parser.add_argument('--extended', action='store_true', help='run the extended test suite in addition to the basic tests')
|
||||||
parser.add_argument('--force', '-f', action='store_true', help='run tests even on platforms where they are disabled by default (e.g. windows).')
|
|
||||||
parser.add_argument('--help', '-h', '-?', action='store_true', help='print help text and exit')
|
parser.add_argument('--help', '-h', '-?', action='store_true', help='print help text and exit')
|
||||||
parser.add_argument('--jobs', '-j', type=int, default=4, help='how many test scripts to run in parallel. Default=4.')
|
parser.add_argument('--jobs', '-j', type=int, default=4, help='how many test scripts to run in parallel. Default=4.')
|
||||||
parser.add_argument('--keepcache', '-k', action='store_true', help='the default behavior is to flush the cache directory on startup. --keepcache retains the cache from the previous testrun.')
|
parser.add_argument('--keepcache', '-k', action='store_true', help='the default behavior is to flush the cache directory on startup. --keepcache retains the cache from the previous testrun.')
|
||||||
@ -271,12 +268,6 @@ def main():
|
|||||||
enable_utils = config["components"].getboolean("ENABLE_UTILS")
|
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:
|
|
||||||
# https://github.com/bitcoin/bitcoin/commit/d52802551752140cf41f0d9a225a43e84404d3e9
|
|
||||||
# https://github.com/bitcoin/bitcoin/pull/5677#issuecomment-136646964
|
|
||||||
print("Tests currently disabled on Windows by default. Use --force option to enable")
|
|
||||||
sys.exit(0)
|
|
||||||
|
|
||||||
if not (enable_wallet and enable_utils and enable_bitcoind):
|
if not (enable_wallet and enable_utils and enable_bitcoind):
|
||||||
print("No functional tests to run. Wallet, utils, and dashd must all be enabled")
|
print("No functional tests to run. Wallet, utils, and dashd must all be enabled")
|
||||||
print("Rerun `configure` with -enable-wallet, -with-utils and -with-daemon and rerun make")
|
print("Rerun `configure` with -enable-wallet, -with-utils and -with-daemon and rerun make")
|
||||||
|
Loading…
Reference in New Issue
Block a user