|
Monero
|
Functions | |
| def | kill () |
Variables | |
| str | USAGE = 'usage: functional_tests_rpc.py <python> <srcdir> <builddir> [<tests-to-run> | all]' |
| list | DEFAULT_TESTS = ['address_book', 'bans', 'blockchain', 'cold_signing', 'daemon_info', 'get_output_distribution', 'integrated_address', 'mining', 'multisig', 'p2p', 'proofs', 'rpc_payment', 'sign_message', 'transfer', 'txpool', 'uri', 'validate_address', 'wallet'] |
| try : | |
| sys | python = sys.argv[1] |
| sys | srcdir = sys.argv[2] |
| sys | builddir = sys.argv[3] |
| except : | |
| sys | tests = sys.argv[4:] |
| int | N_MONERODS = 4 |
| int | N_WALLETS = 6 |
| sys | WALLET_DIRECTORY = builddir + "/functional-tests-directory" |
| sys | FUNCTIONAL_TESTS_DIRECTORY = builddir + "/tests/functional_tests" |
| int | DIFFICULTY = 10 |
| list | monerod_base = [builddir + "/bin/monerod", "--regtest", "--fixed-difficulty", str(DIFFICULTY), "--no-igd", "--p2p-bind-port", "monerod_p2p_port", "--rpc-bind-port", "monerod_rpc_port", "--zmq-rpc-bind-port", "monerod_zmq_port", "--zmq-pub", "monerod_zmq_pub", "--non-interactive", "--disable-dns-checkpoints", "--check-updates", "disabled", "--rpc-ssl", "disabled", "--data-dir", "monerod_data_dir", "--log-level", "1"] |
| list | monerod_extra |
| list | wallet_base = [builddir + "/bin/monero-wallet-rpc", "--wallet-dir", WALLET_DIRECTORY, "--rpc-bind-port", "wallet_port", "--disable-rpc-login", "--rpc-ssl", "disabled", "--daemon-ssl", "disabled", "--log-level", "1", "--allow-mismatched-daemon-version"] |
| list | wallet_extra |
| list | command_lines = [] |
| list | processes = [] |
| list | outputs = [] |
| list | ports = [] |
| os | PYTHONPATH = os.environ['PYTHONPATH'] if 'PYTHONPATH' in os.environ else '' |
| bool | all_open = True |
| socket | s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) |
| list | PASS = [] |
| list | FAIL = [] |
| list | cmd = [python, srcdir + '/' + test + ".py"] |
| else : | |
| int | n_returncode = 0 |
| def functional_tests_rpc.kill | ( | ) |
| bool functional_tests_rpc.all_open = True |
| sys functional_tests_rpc.builddir = sys.argv[3] |
| list functional_tests_rpc.command_lines = [] |
| list functional_tests_rpc.DEFAULT_TESTS = ['address_book', 'bans', 'blockchain', 'cold_signing', 'daemon_info', 'get_output_distribution', 'integrated_address', 'mining', 'multisig', 'p2p', 'proofs', 'rpc_payment', 'sign_message', 'transfer', 'txpool', 'uri', 'validate_address', 'wallet'] |
| int functional_tests_rpc.DIFFICULTY = 10 |
| functional_tests_rpc.else : |
| functional_tests_rpc.except : |
| list functional_tests_rpc.FAIL = [] |
| sys functional_tests_rpc.FUNCTIONAL_TESTS_DIRECTORY = builddir + "/tests/functional_tests" |
| list functional_tests_rpc.monerod_base = [builddir + "/bin/monerod", "--regtest", "--fixed-difficulty", str(DIFFICULTY), "--no-igd", "--p2p-bind-port", "monerod_p2p_port", "--rpc-bind-port", "monerod_rpc_port", "--zmq-rpc-bind-port", "monerod_zmq_port", "--zmq-pub", "monerod_zmq_pub", "--non-interactive", "--disable-dns-checkpoints", "--check-updates", "disabled", "--rpc-ssl", "disabled", "--data-dir", "monerod_data_dir", "--log-level", "1"] |
| list functional_tests_rpc.monerod_extra |
| int functional_tests_rpc.N_MONERODS = 4 |
| int functional_tests_rpc.n_returncode = 0 |
| int functional_tests_rpc.N_WALLETS = 6 |
| list functional_tests_rpc.outputs = [] |
| list functional_tests_rpc.PASS = [] |
| list functional_tests_rpc.ports = [] |
| list functional_tests_rpc.processes = [] |
| sys functional_tests_rpc.python = sys.argv[1] |
| socket functional_tests_rpc.s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) |
| sys functional_tests_rpc.srcdir = sys.argv[2] |
| list functional_tests_rpc.tests = sys.argv[4:] |
| functional_tests_rpc.try : |
| str functional_tests_rpc.USAGE = 'usage: functional_tests_rpc.py <python> <srcdir> <builddir> [<tests-to-run> | all]' |
| list functional_tests_rpc.wallet_base = [builddir + "/bin/monero-wallet-rpc", "--wallet-dir", WALLET_DIRECTORY, "--rpc-bind-port", "wallet_port", "--disable-rpc-login", "--rpc-ssl", "disabled", "--daemon-ssl", "disabled", "--log-level", "1", "--allow-mismatched-daemon-version"] |
| list functional_tests_rpc.wallet_extra |