@@ -70,7 +70,7 @@ script: | |||
- make $MAKEJOBS $GOAL || ( echo "Build failure. Verbose build follows." && make $GOAL V=1 ; false ) | |||
- export LD_LIBRARY_PATH=$TRAVIS_BUILD_DIR/depends/$HOST/lib | |||
- if [ "$RUN_TESTS" = "true" ]; then make $MAKEJOBS check VERBOSE=1; fi | |||
- if [ "$RUN_TESTS" = "true" ]; then qa/pull-tester/rpc-tests.py --coverage; fi | |||
- if [ "$RUN_TESTS" = "true" ]; then functional/pull-tester/rpc-tests.py --coverage; fi | |||
after_script: | |||
- echo $TRAVIS_COMMIT_RANGE | |||
- echo $TRAVIS_COMMIT_LOG |
@@ -61,7 +61,7 @@ OSX_PACKAGING = $(OSX_DEPLOY_SCRIPT) $(OSX_FANCY_PLIST) $(OSX_INSTALLER_ICONS) \ | |||
COVERAGE_INFO = baseline_filtered_combined.info baseline.info \ | |||
leveldb_baseline.info test_bitcoin_filtered.info total_coverage.info \ | |||
baseline_filtered.info rpc_test.info rpc_test_filtered.info \ | |||
baseline_filtered.info functional_test.info functional_test_filtered.info \ | |||
leveldb_baseline_filtered.info test_bitcoin_coverage.info test_bitcoin.info | |||
dist-hook: | |||
@@ -194,20 +194,20 @@ test_bitcoin.info: baseline_filtered_combined.info | |||
test_bitcoin_filtered.info: test_bitcoin.info | |||
$(LCOV) -r $< "/usr/include/*" -o $@ | |||
rpc_test.info: test_bitcoin_filtered.info | |||
functional_test.info: test_bitcoin_filtered.info | |||
-@TIMEOUT=15 python test/pull-tester/rpc-tests.py $(EXTENDED_RPC_TESTS) | |||
$(LCOV) -c -d $(abs_builddir)/src --t rpc-tests -o $@ | |||
$(LCOV) -c -d $(abs_builddir)/src --t functional-tests -o $@ | |||
$(LCOV) -z -d $(abs_builddir)/src | |||
$(LCOV) -z -d $(abs_builddir)/src/leveldb | |||
rpc_test_filtered.info: rpc_test.info | |||
functional_test_filtered.info: functional_test.info | |||
$(LCOV) -r $< "/usr/include/*" -o $@ | |||
test_bitcoin_coverage.info: baseline_filtered_combined.info test_bitcoin_filtered.info | |||
$(LCOV) -a baseline_filtered.info -a leveldb_baseline_filtered.info -a test_bitcoin_filtered.info -o $@ | |||
total_coverage.info: baseline_filtered_combined.info test_bitcoin_filtered.info rpc_test_filtered.info | |||
$(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 | |||
total_coverage.info: baseline_filtered_combined.info test_bitcoin_filtered.info functional_test_filtered.info | |||
$(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 | |||
test_bitcoin.coverage/.dirstamp: test_bitcoin_coverage.info | |||
$(GENHTML) -s $< -o $(@D) | |||
@@ -223,7 +223,7 @@ endif | |||
dist_noinst_SCRIPTS = autogen.sh | |||
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) | |||
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) | |||
CLEANFILES = $(OSX_DMG) $(BITCOIN_WIN_INSTALLER) | |||
@@ -54,7 +54,7 @@ submit new unit tests for old code. Unit tests can be compiled and run | |||
(assuming they weren't disabled in configure) with: `make check`. Further details on running | |||
and extending unit tests can be found in [/src/test/README.md](/src/test/README.md). | |||
There are also [regression and integration tests](/test) of the RPC interface, written | |||
There are also [regression and integration tests](/test), written | |||
in Python, that are run automatically on the build server. | |||
These tests can be run (if the [test dependencies](/test) are installed) with: `test/pull-tester/rpc-tests.py` | |||
@@ -1147,8 +1147,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 src/test/buildenv.py]) | |||
AC_CONFIG_FILES([test/pull-tester/tests_config.ini],[chmod +x test/pull-tester/tests_config.ini]) | |||
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]) | |||
AC_CONFIG_FILES([contrib/devtools/split-debug.sh],[chmod +x contrib/devtools/split-debug.sh]) | |||
AC_CONFIG_LINKS([test/pull-tester/rpc-tests.py:test/pull-tester/rpc-tests.py]) | |||
@@ -32,7 +32,7 @@ EXCLUDE = [ | |||
'src/tinyformat.h', | |||
'src/leveldb/util/env_win.cc', | |||
'src/crypto/ctaes/bench.c', | |||
'test/rpc-tests/test_framework/bignum.py', | |||
'test/functional/test_framework/bignum.py', | |||
# python init: | |||
'*__init__.py', | |||
] |
@@ -132,7 +132,7 @@ Run with the -testnet option to run with "play bitcoins" on the test network, if | |||
are testing multi-machine code that needs to operate across the internet. | |||
If you are testing something that can run on one machine, run with the -regtest option. | |||
In regression test mode, blocks can be created on-demand; see test/rpc-tests/ for tests | |||
In regression test mode, blocks can be created on-demand; see test/functional/ for tests | |||
that run in -regtest mode. | |||
**DEBUG_LOCKORDER** | |||
@@ -252,7 +252,7 @@ Wallet | |||
- *Rationale*: In RPC code that conditionally uses the wallet (such as | |||
`validateaddress`) it is easy to forget that global pointer `pwalletMain` | |||
can be NULL. See `test/rpc-tests/disablewallet.py` for functional tests | |||
can be NULL. See `test/functional/disablewallet.py` for functional tests | |||
exercising the API with `-disablewallet` | |||
- Include `db_cxx.h` (BerkeleyDB header) only when `ENABLE_WALLET` is set |
@@ -1,5 +1,5 @@ | |||
The [pull-tester](/test/pull-tester/) folder contains a script to call | |||
multiple tests from the [rpc-tests](/test/rpc-tests/) folder. | |||
multiple tests from the [functional](/test/functional/) folder. | |||
Every pull request to the bitcoin repository is built and run through | |||
the regression test suite. You can also run all or only individual | |||
@@ -83,5 +83,5 @@ killall bitcoind | |||
Writing tests | |||
============= | |||
You are encouraged to write tests for new or existing features. | |||
Further information about the test framework and individual RPC | |||
tests is found in [test/rpc-tests](/test/rpc-tests). | |||
Further information about the test framework and individual functional | |||
tests is found in [test/functional](/test/functional). |
@@ -5,7 +5,7 @@ | |||
"""Create a blockchain cache. | |||
Creating a cache of the blockchain speeds up test execution when running | |||
multiple qa tests. This helper script is executed by rpc-tests when multiple | |||
multiple functional tests. This helper script is executed by rpc-tests when multiple | |||
tests are being run in parallel. | |||
""" | |||