diff options
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | configure.ac | 6 | ||||
-rw-r--r-- | test/config.ini.in (renamed from test/functional/config.ini.in) | 2 | ||||
-rwxr-xr-x | test/functional/test_runner.py | 2 | ||||
-rwxr-xr-x | test/util/bitcoin-util-test.py | 2 | ||||
-rw-r--r-- | test/util/config.ini.in | 11 |
6 files changed, 7 insertions, 18 deletions
diff --git a/.gitignore b/.gitignore index aa37e381e2..60c26dae8b 100644 --- a/.gitignore +++ b/.gitignore @@ -100,7 +100,7 @@ coverage_percent.txt linux-coverage-build linux-build win32-build -test/functional/config.ini +test/config.ini test/cache/* !src/leveldb*/Makefile diff --git a/configure.ac b/configure.ac index 26a9d082c6..13de015151 100644 --- a/configure.ac +++ b/configure.ac @@ -1160,7 +1160,7 @@ AC_SUBST(EVENT_PTHREADS_LIBS) AC_SUBST(ZMQ_LIBS) AC_SUBST(PROTOBUF_LIBS) AC_SUBST(QR_LIBS) -AC_CONFIG_FILES([Makefile src/Makefile doc/man/Makefile share/setup.nsi share/qt/Info.plist test/functional/config.ini test/util/config.ini]) +AC_CONFIG_FILES([Makefile src/Makefile doc/man/Makefile share/setup.nsi share/qt/Info.plist test/config.ini]) AC_CONFIG_FILES([contrib/devtools/split-debug.sh],[chmod +x contrib/devtools/split-debug.sh]) AC_CONFIG_FILES([doc/Doxyfile]) AC_CONFIG_LINKS([test/functional/test_runner.py:test/functional/test_runner.py]) @@ -1213,8 +1213,8 @@ esac dnl Replace the BUILDDIR path with the correct Windows path if compiling on Native Windows case ${OS} in *Windows*) - sed 's/BUILDDIR="\/\([[a-z]]\)/BUILDDIR="\1:/' test/functional/config.ini > test/functional/config-2.ini - mv test/functional/config-2.ini test/functional/config.ini + sed 's/BUILDDIR="\/\([[a-z]]\)/BUILDDIR="\1:/' test/config.ini > test/config-2.ini + mv test/config-2.ini test/config.ini ;; esac diff --git a/test/functional/config.ini.in b/test/config.ini.in index 29586c555d..35ee092be4 100644 --- a/test/functional/config.ini.in +++ b/test/config.ini.in @@ -3,7 +3,7 @@ # file COPYING or http://www.opensource.org/licenses/mit-license.php. # These environment variables are set by the build process and read by -# test/functional/test_runner.py +# test/functional/test_runner.py and test/util/bitcoin-util-test.py [environment] SRCDIR=@abs_top_srcdir@ diff --git a/test/functional/test_runner.py b/test/functional/test_runner.py index 467e1668d1..a805f50557 100755 --- a/test/functional/test_runner.py +++ b/test/functional/test_runner.py @@ -179,7 +179,7 @@ def main(): # Read config generated by configure. config = configparser.ConfigParser() - configfile = os.path.abspath(os.path.dirname(__file__)) + "/config.ini" + configfile = os.path.abspath(os.path.dirname(__file__)) + "/../config.ini" config.read_file(open(configfile)) passon_args.append("--configfile=%s" % configfile) diff --git a/test/util/bitcoin-util-test.py b/test/util/bitcoin-util-test.py index f85bd13f93..ce0b9ca938 100755 --- a/test/util/bitcoin-util-test.py +++ b/test/util/bitcoin-util-test.py @@ -20,7 +20,7 @@ if __name__ == '__main__': import bctest config = configparser.ConfigParser() - config.read_file(open(os.path.dirname(__file__) + "/config.ini")) + config.read_file(open(os.path.dirname(__file__) + "/../config.ini")) buildenv = argparse.Namespace(exeext=config["environment"]["EXEEXT"], SRCDIR=config["environment"]["SRCDIR"], diff --git a/test/util/config.ini.in b/test/util/config.ini.in deleted file mode 100644 index a1f8f09cec..0000000000 --- a/test/util/config.ini.in +++ /dev/null @@ -1,11 +0,0 @@ -# Copyright (c) 2013-2017 The Bitcoin Core developers -# Distributed under the MIT software license, see the accompanying -# file COPYING or http://www.opensource.org/licenses/mit-license.php. - -# These environment variables are set by the build process and read by -# test/util/bitcoin-util-test.py - -[environment] -SRCDIR=@abs_top_srcdir@ -BUILDDIR=@abs_top_builddir@ -EXEEXT=@EXEEXT@ |