aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xtests/functional_tests/blockchain.py2
-rwxr-xr-xtests/functional_tests/cold_signing.py4
-rwxr-xr-xtests/functional_tests/daemon_info.py2
-rwxr-xr-xtests/functional_tests/functional_tests_rpc.py6
-rwxr-xr-xtests/functional_tests/integrated_address.py2
-rwxr-xr-xtests/functional_tests/mining.py4
-rwxr-xr-xtests/functional_tests/multisig.py4
-rwxr-xr-xtests/functional_tests/proofs.py4
-rwxr-xr-xtests/functional_tests/sign_message.py2
-rwxr-xr-xtests/functional_tests/speed.py4
-rwxr-xr-xtests/functional_tests/transfer.py4
-rwxr-xr-xtests/functional_tests/txpool.py4
-rwxr-xr-xtests/functional_tests/wallet_address.py2
-rw-r--r--utils/python-rpc/framework/__init__.py (renamed from tests/functional_tests/test_framework/__init__.py)0
-rw-r--r--utils/python-rpc/framework/daemon.py (renamed from tests/functional_tests/test_framework/daemon.py)0
-rw-r--r--utils/python-rpc/framework/rpc.py (renamed from tests/functional_tests/test_framework/rpc.py)0
-rw-r--r--utils/python-rpc/framework/wallet.py (renamed from tests/functional_tests/test_framework/wallet.py)0
17 files changed, 25 insertions, 19 deletions
diff --git a/tests/functional_tests/blockchain.py b/tests/functional_tests/blockchain.py
index bdd08680f..d805fccda 100755
--- a/tests/functional_tests/blockchain.py
+++ b/tests/functional_tests/blockchain.py
@@ -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):
diff --git a/tests/functional_tests/cold_signing.py b/tests/functional_tests/cold_signing.py
index 2acdcb137..6895aec60 100755
--- a/tests/functional_tests/cold_signing.py
+++ b/tests/functional_tests/cold_signing.py
@@ -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):
diff --git a/tests/functional_tests/daemon_info.py b/tests/functional_tests/daemon_info.py
index 94c3fc3ac..bd3528c3f 100755
--- a/tests/functional_tests/daemon_info.py
+++ b/tests/functional_tests/daemon_info.py
@@ -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):
diff --git a/tests/functional_tests/functional_tests_rpc.py b/tests/functional_tests/functional_tests_rpc.py
index aae546a6b..606b19e45 100755
--- a/tests/functional_tests/functional_tests_rpc.py
+++ b/tests/functional_tests/functional_tests_rpc.py
@@ -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]))
diff --git a/tests/functional_tests/integrated_address.py b/tests/functional_tests/integrated_address.py
index d6976a116..338dd14ae 100755
--- a/tests/functional_tests/integrated_address.py
+++ b/tests/functional_tests/integrated_address.py
@@ -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):
diff --git a/tests/functional_tests/mining.py b/tests/functional_tests/mining.py
index a94d59cba..1b189beb2 100755
--- a/tests/functional_tests/mining.py
+++ b/tests/functional_tests/mining.py
@@ -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):
diff --git a/tests/functional_tests/multisig.py b/tests/functional_tests/multisig.py
index 7cdddd009..a0e8551cd 100755
--- a/tests/functional_tests/multisig.py
+++ b/tests/functional_tests/multisig.py
@@ -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):
diff --git a/tests/functional_tests/proofs.py b/tests/functional_tests/proofs.py
index 03d59b765..0a0b6304d 100755
--- a/tests/functional_tests/proofs.py
+++ b/tests/functional_tests/proofs.py
@@ -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):
diff --git a/tests/functional_tests/sign_message.py b/tests/functional_tests/sign_message.py
index 4a62fd733..4c3ec3588 100755
--- a/tests/functional_tests/sign_message.py
+++ b/tests/functional_tests/sign_message.py
@@ -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):
diff --git a/tests/functional_tests/speed.py b/tests/functional_tests/speed.py
index 0ce90f939..bd8892df8 100755
--- a/tests/functional_tests/speed.py
+++ b/tests/functional_tests/speed.py
@@ -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():
diff --git a/tests/functional_tests/transfer.py b/tests/functional_tests/transfer.py
index fc582e618..b7a85f1d6 100755
--- a/tests/functional_tests/transfer.py
+++ b/tests/functional_tests/transfer.py
@@ -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):
diff --git a/tests/functional_tests/txpool.py b/tests/functional_tests/txpool.py
index 419bd925c..71109c9e5 100755
--- a/tests/functional_tests/txpool.py
+++ b/tests/functional_tests/txpool.py
@@ -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):
diff --git a/tests/functional_tests/wallet_address.py b/tests/functional_tests/wallet_address.py
index acd7b6821..66a1633ca 100755
--- a/tests/functional_tests/wallet_address.py
+++ b/tests/functional_tests/wallet_address.py
@@ -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):
diff --git a/tests/functional_tests/test_framework/__init__.py b/utils/python-rpc/framework/__init__.py
index e69de29bb..e69de29bb 100644
--- a/tests/functional_tests/test_framework/__init__.py
+++ b/utils/python-rpc/framework/__init__.py
diff --git a/tests/functional_tests/test_framework/daemon.py b/utils/python-rpc/framework/daemon.py
index 11d5f5845..11d5f5845 100644
--- a/tests/functional_tests/test_framework/daemon.py
+++ b/utils/python-rpc/framework/daemon.py
diff --git a/tests/functional_tests/test_framework/rpc.py b/utils/python-rpc/framework/rpc.py
index b857be4d2..b857be4d2 100644
--- a/tests/functional_tests/test_framework/rpc.py
+++ b/utils/python-rpc/framework/rpc.py
diff --git a/tests/functional_tests/test_framework/wallet.py b/utils/python-rpc/framework/wallet.py
index e9f13667b..e9f13667b 100644
--- a/tests/functional_tests/test_framework/wallet.py
+++ b/utils/python-rpc/framework/wallet.py