Skip to content

Commit c28ee91

Browse files
committed
Rename rpc-tests directory to functional
1 parent 00902c4 commit c28ee91

File tree

100 files changed

+25
-26
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

100 files changed

+25
-26
lines changed

Diff for: .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 qa/pull-tester/rpc-tests.py --coverage; fi
73+
- if [ "$RUN_TESTS" = "true" ]; then functional/pull-tester/rpc-tests.py --coverage; fi
7474
after_script:
7575
- echo $TRAVIS_COMMIT_RANGE
7676
- echo $TRAVIS_COMMIT_LOG

Diff for: Makefile.am

+7-7
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ OSX_PACKAGING = $(OSX_DEPLOY_SCRIPT) $(OSX_FANCY_PLIST) $(OSX_INSTALLER_ICONS) \
6161

6262
COVERAGE_INFO = baseline_filtered_combined.info baseline.info \
6363
leveldb_baseline.info test_bitcoin_filtered.info total_coverage.info \
64-
baseline_filtered.info rpc_test.info rpc_test_filtered.info \
64+
baseline_filtered.info functional_test.info functional_test_filtered.info \
6565
leveldb_baseline_filtered.info test_bitcoin_coverage.info test_bitcoin.info
6666

6767
dist-hook:
@@ -194,20 +194,20 @@ test_bitcoin.info: baseline_filtered_combined.info
194194
test_bitcoin_filtered.info: test_bitcoin.info
195195
$(LCOV) -r $< "/usr/include/*" -o $@
196196

197-
rpc_test.info: test_bitcoin_filtered.info
197+
functional_test.info: test_bitcoin_filtered.info
198198
-@TIMEOUT=15 python test/pull-tester/rpc-tests.py $(EXTENDED_RPC_TESTS)
199-
$(LCOV) -c -d $(abs_builddir)/src --t rpc-tests -o $@
199+
$(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
202202

203-
rpc_test_filtered.info: rpc_test.info
203+
functional_test_filtered.info: functional_test.info
204204
$(LCOV) -r $< "/usr/include/*" -o $@
205205

206206
test_bitcoin_coverage.info: baseline_filtered_combined.info test_bitcoin_filtered.info
207207
$(LCOV) -a baseline_filtered.info -a leveldb_baseline_filtered.info -a test_bitcoin_filtered.info -o $@
208208

209-
total_coverage.info: baseline_filtered_combined.info test_bitcoin_filtered.info rpc_test_filtered.info
210-
$(LCOV) -a baseline_filtered.info -a leveldb_baseline_filtered.info -a test_bitcoin_filtered.info -a rpc_test_filtered.info -o $@ | $(GREP) "\%" | $(AWK) '{ print substr($$3,2,50) "/" $$5 }' > coverage_percent.txt
209+
total_coverage.info: baseline_filtered_combined.info test_bitcoin_filtered.info functional_test_filtered.info
210+
$(LCOV) -a baseline_filtered.info -a leveldb_baseline_filtered.info -a test_bitcoin_filtered.info -a functional_test_filtered.info -o $@ | $(GREP) "\%" | $(AWK) '{ print substr($$3,2,50) "/" $$5 }' > coverage_percent.txt
211211

212212
test_bitcoin.coverage/.dirstamp: test_bitcoin_coverage.info
213213
$(GENHTML) -s $< -o $(@D)
@@ -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/rpc-tests $(DIST_CONTRIB) $(DIST_DOCS) $(WINDOWS_PACKAGING) $(OSX_PACKAGING) $(BIN_CHECKS)
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)
227227

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

Diff for: README.md

+1-1

Diff for: configure.ac

+1-2
Original file line numberDiff line numberDiff line change
@@ -1147,8 +1147,7 @@ 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])
1151-
AC_CONFIG_FILES([test/pull-tester/tests_config.ini],[chmod +x 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/pull-tester/tests_config.ini])
11521151
AC_CONFIG_FILES([contrib/devtools/split-debug.sh],[chmod +x contrib/devtools/split-debug.sh])
11531152
AC_CONFIG_LINKS([test/pull-tester/rpc-tests.py:test/pull-tester/rpc-tests.py])
11541153

Diff for: contrib/devtools/copyright_header.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
'src/tinyformat.h',
3333
'src/leveldb/util/env_win.cc',
3434
'src/crypto/ctaes/bench.c',
35-
'test/rpc-tests/test_framework/bignum.py',
35+
'test/functional/test_framework/bignum.py',
3636
# python init:
3737
'*__init__.py',
3838
]

Diff for: doc/developer-notes.md

+2-2

Diff for: test/README.md

+3-3
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

Diff for: test/rpc-tests/create_cache.py renamed to 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 qa tests. This helper script is executed by rpc-tests when multiple
8+
multiple functional tests. This helper script is executed by rpc-tests when multiple
99
tests are being run in parallel.
1010
"""
1111

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

Diff for: test/pull-tester/rpc-tests.py

+8-8
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
This module calls down into individual test cases via subprocess. It will
99
forward all unrecognized arguments onto the individual test scripts.
1010
11-
RPC tests are disabled on Windows by default. Use --force to run them anyway.
11+
Functional tests are disabled on Windows by default. Use --force to run them anyway.
1212
1313
For a description of arguments recognized by test scripts, see
1414
`test/pull-tester/test_framework/test_framework.py:BitcoinTestFramework.main`.
@@ -161,7 +161,7 @@ def main():
161161
sys.exit(0)
162162

163163
if not (enable_wallet and enable_utils and enable_bitcoind):
164-
print("No rpc tests to run. Wallet, utils, and bitcoind must all be enabled")
164+
print("No functional tests to run. Wallet, utils, and bitcoind must all be enabled")
165165
print("Rerun `configure` with -enable-wallet, -with-utils and -with-daemon and rerun make")
166166
sys.exit(0)
167167

@@ -206,7 +206,7 @@ def main():
206206
if args.help:
207207
# Print help for rpc-tests.py, then print help of the first script and exit.
208208
parser.print_help()
209-
subprocess.check_call((config["environment"]["SRCDIR"] + '/test/rpc-tests/' + test_list[0]).split() + ['-h'])
209+
subprocess.check_call((config["environment"]["SRCDIR"] + '/test/functional/' + test_list[0]).split() + ['-h'])
210210
sys.exit(0)
211211

212212
run_tests(test_list, config["environment"]["SRCDIR"], config["environment"]["BUILDDIR"], config["environment"]["EXEEXT"], args.jobs, args.coverage, passon_args)
@@ -222,7 +222,7 @@ def run_tests(test_list, src_dir, build_dir, exeext, jobs=1, enable_coverage=Fal
222222
if "BITCOIND" not in os.environ:
223223
os.environ["BITCOIND"] = build_dir + '/src/bitcoind' + exeext
224224

225-
tests_dir = src_dir + '/test/rpc-tests/'
225+
tests_dir = src_dir + '/test/functional/'
226226

227227
flags = ["--srcdir={}/src".format(build_dir)] + args
228228
flags.append("--cachedir=%s/test/cache" % build_dir)
@@ -243,7 +243,7 @@ def run_tests(test_list, src_dir, build_dir, exeext, jobs=1, enable_coverage=Fal
243243
time_sum = 0
244244
time0 = time.time()
245245

246-
job_queue = RPCTestHandler(jobs, tests_dir, test_list, flags)
246+
job_queue = TestHandler(jobs, tests_dir, test_list, flags)
247247

248248
max_len_name = len(max(test_list, key=len))
249249
results = BOLD[1] + "%s | %s | %s\n\n" % ("TEST".ljust(max_len_name), "PASSED", "DURATION") + BOLD[0]
@@ -271,7 +271,7 @@ def run_tests(test_list, src_dir, build_dir, exeext, jobs=1, enable_coverage=Fal
271271

272272
sys.exit(not all_passed)
273273

274-
class RPCTestHandler:
274+
class TestHandler:
275275
"""
276276
Trigger the testscrips passed in via the list.
277277
"""
@@ -335,7 +335,7 @@ class RPCCoverage(object):
335335
After all tests complete, the commands run are combined and diff'd against
336336
the complete list to calculate uncovered RPC commands.
337337
338-
See also: test/rpc-tests/test_framework/coverage.py
338+
See also: test/functional/test_framework/coverage.py
339339
340340
"""
341341
def __init__(self):
@@ -363,7 +363,7 @@ def _get_uncovered_rpc_commands(self):
363363
Return a set of currently untested RPC commands.
364364
365365
"""
366-
# This is shared from `test/rpc-tests/test-framework/coverage.py`
366+
# This is shared from `test/functional/test-framework/coverage.py`
367367
reference_filename = 'rpc_interface.txt'
368368
coverage_file_prefix = 'coverage.'
369369

0 commit comments

Comments
 (0)