File tree Expand file tree Collapse file tree 6 files changed +20
-12
lines changed Expand file tree Collapse file tree 6 files changed +20
-12
lines changed Original file line number Diff line number Diff line change @@ -80,7 +80,6 @@ Bitcoin-Qt.app
80
80
# Unit-tests
81
81
Makefile.test
82
82
bitcoin-qt_test
83
- src /test /buildenv.py
84
83
85
84
# Resources cpp
86
85
qrc_ * .cpp
@@ -102,7 +101,6 @@ linux-coverage-build
102
101
linux-build
103
102
win32-build
104
103
test /functional /config.ini
105
- test /util /buildenv.py
106
104
test /cache /*
107
105
108
106
! src /leveldb * /Makefile
Original file line number Diff line number Diff line change @@ -277,9 +277,6 @@ EXTRA_DIST += \
277
277
278
278
CLEANFILES = $(OSX_DMG ) $(BITCOIN_WIN_INSTALLER )
279
279
280
- # This file is problematic for out-of-tree builds if it exists.
281
- DISTCLEANFILES = test/util/buildenv.pyc
282
-
283
280
.INTERMEDIATE : $(COVERAGE_INFO )
284
281
285
282
DISTCHECK_CONFIGURE_FLAGS = --enable-man
Original file line number Diff line number Diff line change @@ -1160,8 +1160,7 @@ AC_SUBST(EVENT_PTHREADS_LIBS)
1160
1160
AC_SUBST ( ZMQ_LIBS )
1161
1161
AC_SUBST ( PROTOBUF_LIBS )
1162
1162
AC_SUBST ( QR_LIBS )
1163
- AC_CONFIG_FILES ( [ Makefile src/Makefile doc/man/Makefile share/setup.nsi share/qt/Info.plist test/functional/config.ini] )
1164
- AC_CONFIG_FILES ( [ test/util/buildenv.py] ,[ chmod +x test/util/buildenv.py] )
1163
+ AC_CONFIG_FILES ( [ Makefile src/Makefile doc/man/Makefile share/setup.nsi share/qt/Info.plist test/functional/config.ini test/util/config.ini] )
1165
1164
AC_CONFIG_FILES ( [ contrib/devtools/split-debug.sh] ,[ chmod +x contrib/devtools/split-debug.sh] )
1166
1165
AC_CONFIG_FILES ( [ doc/Doxyfile] )
1167
1166
AC_CONFIG_LINKS ( [ test/functional/test_runner.py:test/functional/test_runner.py] )
Original file line number Diff line number Diff line change 9
9
10
10
Can also be run manually."""
11
11
12
+ import configparser
12
13
import os
13
14
import sys
14
15
import argparse
15
16
import logging
16
17
17
18
if __name__ == '__main__' :
18
19
sys .path .append (os .path .dirname (os .path .abspath (__file__ )))
19
- import buildenv
20
20
import bctest
21
21
22
+ config = configparser .ConfigParser ()
23
+ config .read_file (open (os .path .dirname (__file__ ) + "/config.ini" ))
24
+
25
+ buildenv = argparse .Namespace (exeext = config ["environment" ]["EXEEXT" ],
26
+ SRCDIR = config ["environment" ]["SRCDIR" ],
27
+ BUILDDIR = config ["environment" ]["BUILDDIR" ])
28
+
22
29
parser = argparse .ArgumentParser (description = __doc__ )
23
30
parser .add_argument ('-v' , '--verbose' , action = 'store_true' )
24
31
args = parser .parse_args ()
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ # Copyright (c) 2013-2017 The Bitcoin Core developers
2
+ # Distributed under the MIT software license, see the accompanying
3
+ # file COPYING or http://www.opensource.org/licenses/mit-license.php.
4
+
5
+ # These environment variables are set by the build process and read by
6
+ # test/util/bitcoin-util-test.py
7
+
8
+ [environment]
9
+ SRCDIR=@abs_top_srcdir@
10
+ BUILDDIR=@abs_top_builddir@
11
+ EXEEXT=@EXEEXT@
You can’t perform that action at this time.
0 commit comments