mirror of
https://github.com/monero-project/monero.git
synced 2024-12-13 11:56:31 +02:00
functional_tests: move RPC API to utils, it is not test specific
This commit is contained in:
parent
30c865f0f8
commit
22b644f47e
@ -41,7 +41,7 @@ Test the following RPCs:
|
||||
|
||||
"""
|
||||
|
||||
from test_framework.daemon import Daemon
|
||||
from framework.daemon import Daemon
|
||||
|
||||
class BlockchainTest():
|
||||
def run_test(self):
|
||||
|
@ -33,8 +33,8 @@ import time
|
||||
"""Test cold tx signing
|
||||
"""
|
||||
|
||||
from test_framework.daemon import Daemon
|
||||
from test_framework.wallet import Wallet
|
||||
from framework.daemon import Daemon
|
||||
from framework.wallet import Wallet
|
||||
|
||||
class ColdSigningTest():
|
||||
def run_test(self):
|
||||
|
@ -36,7 +36,7 @@ Test the following RPCs:
|
||||
|
||||
"""
|
||||
|
||||
from test_framework.daemon import Daemon
|
||||
from framework.daemon import Daemon
|
||||
|
||||
class DaemonGetInfoTest():
|
||||
def run_test(self):
|
||||
|
@ -7,6 +7,7 @@ import subprocess
|
||||
from signal import SIGTERM
|
||||
import socket
|
||||
import string
|
||||
import os
|
||||
|
||||
USAGE = 'usage: functional_tests_rpc.py <python> <srcdir> <builddir> [<tests-to-run> | all]'
|
||||
DEFAULT_TESTS = ['daemon_info', 'blockchain', 'wallet_address', 'integrated_address', 'mining', 'transfer', 'txpool', 'multisig', 'cold_signing', 'sign_message', 'proofs']
|
||||
@ -56,6 +57,11 @@ for i in range(N_WALLETS):
|
||||
|
||||
print('Starting servers...')
|
||||
try:
|
||||
PYTHONPATH = os.environ['PYTHONPATH'] if 'PYTHONPATH' in os.environ else ''
|
||||
if len(PYTHONPATH) > 0:
|
||||
PYTHONPATH += ':'
|
||||
PYTHONPATH += '../../utils/python-rpc'
|
||||
os.environ['PYTHONPATH'] = PYTHONPATH
|
||||
for i in range(len(command_lines)):
|
||||
#print('Running: ' + str(command_lines[i]))
|
||||
processes.append(subprocess.Popen(command_lines[i], stdout = outputs[i]))
|
||||
|
@ -38,7 +38,7 @@ Test the following RPCs:
|
||||
|
||||
"""
|
||||
|
||||
from test_framework.wallet import Wallet
|
||||
from framework.wallet import Wallet
|
||||
|
||||
class IntegratedAddressTest():
|
||||
def run_test(self):
|
||||
|
@ -38,8 +38,8 @@ Test the following RPCs:
|
||||
- mining_status
|
||||
"""
|
||||
|
||||
from test_framework.daemon import Daemon
|
||||
from test_framework.wallet import Wallet
|
||||
from framework.daemon import Daemon
|
||||
from framework.wallet import Wallet
|
||||
|
||||
class MiningTest():
|
||||
def run_test(self):
|
||||
|
@ -33,8 +33,8 @@ import time
|
||||
"""Test multisig transfers
|
||||
"""
|
||||
|
||||
from test_framework.daemon import Daemon
|
||||
from test_framework.wallet import Wallet
|
||||
from framework.daemon import Daemon
|
||||
from framework.wallet import Wallet
|
||||
|
||||
class MultisigTest():
|
||||
def run_test(self):
|
||||
|
@ -33,8 +33,8 @@ import time
|
||||
"""Test misc proofs (tx key, send, receive, reserve)
|
||||
"""
|
||||
|
||||
from test_framework.daemon import Daemon
|
||||
from test_framework.wallet import Wallet
|
||||
from framework.daemon import Daemon
|
||||
from framework.wallet import Wallet
|
||||
|
||||
class ProofsTest():
|
||||
def run_test(self):
|
||||
|
@ -38,7 +38,7 @@ Test the following RPCs:
|
||||
|
||||
"""
|
||||
|
||||
from test_framework.wallet import Wallet
|
||||
from framework.wallet import Wallet
|
||||
|
||||
class MessageSigningTest():
|
||||
def run_test(self):
|
||||
|
@ -42,8 +42,8 @@ import time
|
||||
from time import sleep
|
||||
from decimal import Decimal
|
||||
|
||||
from test_framework.daemon import Daemon
|
||||
from test_framework.wallet import Wallet
|
||||
from framework.daemon import Daemon
|
||||
from framework.wallet import Wallet
|
||||
|
||||
|
||||
class SpeedTest():
|
||||
|
@ -33,8 +33,8 @@ import time
|
||||
"""Test simple transfers
|
||||
"""
|
||||
|
||||
from test_framework.daemon import Daemon
|
||||
from test_framework.wallet import Wallet
|
||||
from framework.daemon import Daemon
|
||||
from framework.wallet import Wallet
|
||||
|
||||
class TransferTest():
|
||||
def run_test(self):
|
||||
|
@ -33,8 +33,8 @@ import time
|
||||
"""Test txpool
|
||||
"""
|
||||
|
||||
from test_framework.daemon import Daemon
|
||||
from test_framework.wallet import Wallet
|
||||
from framework.daemon import Daemon
|
||||
from framework.wallet import Wallet
|
||||
|
||||
class TransferTest():
|
||||
def run_test(self):
|
||||
|
@ -37,7 +37,7 @@ Test the following RPCs:
|
||||
|
||||
"""
|
||||
|
||||
from test_framework.wallet import Wallet
|
||||
from framework.wallet import Wallet
|
||||
|
||||
class WalletAddressTest():
|
||||
def run_test(self):
|
||||
|
Loading…
Reference in New Issue
Block a user