Skip to content

Commit a9bd622

Browse files
committed
Rename test/pull-tester/rpc-tests.py to test/functional/test_runner.py
1 parent c28ee91 commit a9bd622

9 files changed

+25
-26
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ script:
7070
- make $MAKEJOBS $GOAL || ( echo "Build failure. Verbose build follows." && make $GOAL V=1 ; false )
7171
- export LD_LIBRARY_PATH=$TRAVIS_BUILD_DIR/depends/$HOST/lib
7272
- if [ "$RUN_TESTS" = "true" ]; then make $MAKEJOBS check VERBOSE=1; fi
73-
- if [ "$RUN_TESTS" = "true" ]; then functional/pull-tester/rpc-tests.py --coverage; fi
73+
- if [ "$RUN_TESTS" = "true" ]; then test/functional/test_runner.py --coverage; fi
7474
after_script:
7575
- echo $TRAVIS_COMMIT_RANGE
7676
- echo $TRAVIS_COMMIT_LOG

Makefile.am

+3-3
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ test_bitcoin_filtered.info: test_bitcoin.info
195195
$(LCOV) -r $< "/usr/include/*" -o $@
196196

197197
functional_test.info: test_bitcoin_filtered.info
198-
-@TIMEOUT=15 python test/pull-tester/rpc-tests.py $(EXTENDED_RPC_TESTS)
198+
-@TIMEOUT=15 python test/functional/test_runner.py $(EXTENDED_RPC_TESTS)
199199
$(LCOV) -c -d $(abs_builddir)/src --t functional-tests -o $@
200200
$(LCOV) -z -d $(abs_builddir)/src
201201
$(LCOV) -z -d $(abs_builddir)/src/leveldb
@@ -223,7 +223,7 @@ endif
223223

224224
dist_noinst_SCRIPTS = autogen.sh
225225

226-
EXTRA_DIST = $(top_srcdir)/share/genbuild.sh test/pull-tester/rpc-tests.py test/functional $(DIST_CONTRIB) $(DIST_DOCS) $(WINDOWS_PACKAGING) $(OSX_PACKAGING) $(BIN_CHECKS)
226+
EXTRA_DIST = $(top_srcdir)/share/genbuild.sh test/functional/test_runner.py test/functional $(DIST_CONTRIB) $(DIST_DOCS) $(WINDOWS_PACKAGING) $(OSX_PACKAGING) $(BIN_CHECKS)
227227

228228
CLEANFILES = $(OSX_DMG) $(BITCOIN_WIN_INSTALLER)
229229

@@ -233,4 +233,4 @@ DISTCHECK_CONFIGURE_FLAGS = --enable-man
233233

234234
clean-local:
235235
rm -rf coverage_percent.txt test_bitcoin.coverage/ total.coverage/ test/tmp/ cache/ $(OSX_APP)
236-
rm -rf test/pull-tester/__pycache__
236+
rm -rf test/functional/__pycache__

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ and extending unit tests can be found in [/src/test/README.md](/src/test/README.
5656

5757
There are also [regression and integration tests](/test), written
5858
in Python, that are run automatically on the build server.
59-
These tests can be run (if the [test dependencies](/test) are installed) with: `test/pull-tester/rpc-tests.py`
59+
These tests can be run (if the [test dependencies](/test) are installed) with: `test/functional/test_runner.py`
6060

6161
The Travis CI system makes sure that every pull request is built for Windows, Linux, and OS X, and that unit/sanity tests are run automatically.
6262

configure.ac

+2-2
Original file line numberDiff line numberDiff line change
@@ -1147,9 +1147,9 @@ AC_SUBST(EVENT_PTHREADS_LIBS)
11471147
AC_SUBST(ZMQ_LIBS)
11481148
AC_SUBST(PROTOBUF_LIBS)
11491149
AC_SUBST(QR_LIBS)
1150-
AC_CONFIG_FILES([Makefile src/Makefile doc/man/Makefile share/setup.nsi share/qt/Info.plist src/test/buildenv.py test/pull-tester/tests_config.ini])
1150+
AC_CONFIG_FILES([Makefile src/Makefile doc/man/Makefile share/setup.nsi share/qt/Info.plist src/test/buildenv.py test/functional/config.ini])
11511151
AC_CONFIG_FILES([contrib/devtools/split-debug.sh],[chmod +x contrib/devtools/split-debug.sh])
1152-
AC_CONFIG_LINKS([test/pull-tester/rpc-tests.py:test/pull-tester/rpc-tests.py])
1152+
AC_CONFIG_LINKS([test/functional/test_runner.py:test/functional/test_runner.py])
11531153

11541154
dnl boost's m4 checks do something really nasty: they export these vars. As a
11551155
dnl result, they leak into secp256k1's configure and crazy things happen.

contrib/rpm/bitcoin.spec

+1-1
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ make check
314314
pushd src
315315
srcdir=. test/bitcoin-util-test.py
316316
popd
317-
test/pull-tester/rpc-tests.py -extended
317+
test/functional/test_runner.py --extended
318318

319319
%post libs -p /sbin/ldconfig
320320

test/README.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
The [pull-tester](/test/pull-tester/) folder contains a script to call
2-
multiple tests from the [functional](/test/functional/) folder.
1+
The [functional](/test/functional/) folder contains a script test_runner
2+
to call multiple functional tests from its folder.
33

44
Every pull request to the bitcoin repository is built and run through
55
the regression test suite. You can also run all or only individual
@@ -27,19 +27,19 @@ Running tests
2727

2828
You can run any single test by calling
2929

30-
test/pull-tester/rpc-tests.py <testname>
30+
test/functional/test_runner.py <testname>
3131

3232
Or you can run any combination of tests by calling
3333

34-
test/pull-tester/rpc-tests.py <testname1> <testname2> <testname3> ...
34+
test/functional/test_runner.py <testname1> <testname2> <testname3> ...
3535

3636
Run the regression test suite with
3737

38-
test/pull-tester/rpc-tests.py
38+
test/functional/test_runner.py
3939

4040
Run all possible tests with
4141

42-
test/pull-tester/rpc-tests.py --extended
42+
test/functional/test_runner.py --extended
4343

4444
By default, tests will be run in parallel. To specify how many jobs to run,
4545
append `--jobs=n` (default n=4).
@@ -61,7 +61,7 @@ Possible options, which apply to each individual test run:
6161
```
6262

6363
If you set the environment variable `PYTHON_DEBUG=1` you will get some debug
64-
output (example: `PYTHON_DEBUG=1 test/pull-tester/rpc-tests.py wallet`).
64+
output (example: `PYTHON_DEBUG=1 test/functional/test_runner.py wallet`).
6565

6666
A 200-block -regtest blockchain and wallets for four nodes
6767
is created the first time a regression test is run and

test/pull-tester/tests_config.ini.in test/functional/config.ini.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
44

55
# These environment variables are set by the build process and read by
6-
# rpc-tests.py
6+
# test/functional/test_runner.py
77

88
[environment]
99
SRCDIR=@abs_top_srcdir@

test/functional/create_cache.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"""Create a blockchain cache.
66
77
Creating a cache of the blockchain speeds up test execution when running
8-
multiple functional tests. This helper script is executed by rpc-tests when multiple
8+
multiple functional tests. This helper script is executed by test_runner when multiple
99
tests are being run in parallel.
1010
"""
1111

test/pull-tester/rpc-tests.py test/functional/test_runner.py

+8-9
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,15 @@
22
# Copyright (c) 2014-2016 The Bitcoin Core developers
33
# Distributed under the MIT software license, see the accompanying
44
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
5-
"""
6-
rpc-tests.py - run regression test suite
5+
"""Run regression test suite.
76
87
This module calls down into individual test cases via subprocess. It will
98
forward all unrecognized arguments onto the individual test scripts.
109
1110
Functional tests are disabled on Windows by default. Use --force to run them anyway.
1211
1312
For a description of arguments recognized by test scripts, see
14-
`test/pull-tester/test_framework/test_framework.py:BitcoinTestFramework.main`.
13+
`test/functional/test_framework/test_framework.py:BitcoinTestFramework.main`.
1514
1615
"""
1716

@@ -87,7 +86,7 @@
8786

8887
ZMQ_SCRIPTS = [
8988
# ZMQ test can only be run if bitcoin was built with zmq-enabled.
90-
# call rpc_tests.py with -nozmq to explicitly exclude these tests.
89+
# call test_runner.py with -nozmq to explicitly exclude these tests.
9190
"zmq_test.py"]
9291

9392
EXTENDED_SCRIPTS = [
@@ -127,7 +126,7 @@
127126
def main():
128127
# Parse arguments and pass through unrecognised args
129128
parser = argparse.ArgumentParser(add_help=False,
130-
usage='%(prog)s [rpc-test.py options] [script options] [scripts]',
129+
usage='%(prog)s [test_runner.py options] [script options] [scripts]',
131130
description=__doc__,
132131
epilog='''
133132
Help text and arguments for individual test script:''',
@@ -147,7 +146,7 @@ def main():
147146

148147
# Read config generated by configure.
149148
config = configparser.ConfigParser()
150-
config.read_file(open(os.path.dirname(__file__) + "/tests_config.ini"))
149+
config.read_file(open(os.path.dirname(__file__) + "/config.ini"))
151150

152151
enable_wallet = config["components"].getboolean("ENABLE_WALLET")
153152
enable_utils = config["components"].getboolean("ENABLE_UTILS")
@@ -200,11 +199,11 @@ def main():
200199

201200
if not test_list:
202201
print("No valid test scripts specified. Check that your test is in one "
203-
"of the test lists in rpc-tests.py, or run rpc-tests.py with no arguments to run all tests")
202+
"of the test lists in test_runner.py, or run test_runner.py with no arguments to run all tests")
204203
sys.exit(0)
205204

206205
if args.help:
207-
# Print help for rpc-tests.py, then print help of the first script and exit.
206+
# Print help for test_runner.py, then print help of the first script and exit.
208207
parser.print_help()
209208
subprocess.check_call((config["environment"]["SRCDIR"] + '/test/functional/' + test_list[0]).split() + ['-h'])
210209
sys.exit(0)
@@ -325,7 +324,7 @@ def get_next(self):
325324

326325
class RPCCoverage(object):
327326
"""
328-
Coverage reporting utilities for pull-tester.
327+
Coverage reporting utilities for test_runner.
329328
330329
Coverage calculation works by having each test script subprocess write
331330
coverage files into a particular directory. These files contain the RPC

0 commit comments

Comments
 (0)