mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-07-02 19:52:01 +02:00
build: a few ugly hacks to get the rpc tests working out-of-tree
- Link pull-tester/rpc-tests.py to the build dir - Add the build-dir's config to the python path so that tests can find it - The tests themselves are in srcdir - Clean up __pycache__ in 'make clean'
This commit is contained in:
@ -29,6 +29,7 @@ import subprocess
|
||||
import tempfile
|
||||
import re
|
||||
|
||||
sys.path.append("qa/pull-tester/")
|
||||
from tests_config import *
|
||||
|
||||
BOLD = ("","")
|
||||
@ -37,7 +38,7 @@ if os.name == 'posix':
|
||||
# terminal via ANSI escape sequences:
|
||||
BOLD = ('\033[0m', '\033[1m')
|
||||
|
||||
RPC_TESTS_DIR = BUILDDIR + '/qa/rpc-tests/'
|
||||
RPC_TESTS_DIR = SRCDIR + '/qa/rpc-tests/'
|
||||
|
||||
#If imported values are not defined then set to zero (or disabled)
|
||||
if 'ENABLE_WALLET' not in vars():
|
||||
|
@ -3,6 +3,7 @@
|
||||
# Distributed under the MIT software license, see the accompanying
|
||||
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
||||
|
||||
SRCDIR="@abs_top_srcdir@"
|
||||
BUILDDIR="@abs_top_builddir@"
|
||||
EXEEXT="@EXEEXT@"
|
||||
|
||||
|
Reference in New Issue
Block a user