mirror of
https://github.com/dashpay/dash.git
synced 2024-12-27 04:52:59 +01:00
tests: run tests in parallel
This commit is contained in:
parent
66f32551bd
commit
156db42c3f
@ -2,7 +2,6 @@
|
|||||||
# Distributed under the MIT software license, see the accompanying
|
# Distributed under the MIT software license, see the accompanying
|
||||||
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
||||||
|
|
||||||
TESTS += test/test_bitcoin
|
|
||||||
bin_PROGRAMS += test/test_bitcoin
|
bin_PROGRAMS += test/test_bitcoin
|
||||||
noinst_PROGRAMS += test/test_bitcoin_fuzzy
|
noinst_PROGRAMS += test/test_bitcoin_fuzzy
|
||||||
TEST_SRCDIR = test
|
TEST_SRCDIR = test
|
||||||
@ -154,7 +153,7 @@ bitcoin_test_check: $(TEST_BINARY) FORCE
|
|||||||
bitcoin_test_clean : FORCE
|
bitcoin_test_clean : FORCE
|
||||||
rm -f $(CLEAN_BITCOIN_TEST) $(test_test_bitcoin_OBJECTS) $(TEST_BINARY)
|
rm -f $(CLEAN_BITCOIN_TEST) $(test_test_bitcoin_OBJECTS) $(TEST_BINARY)
|
||||||
|
|
||||||
check-local:
|
check-local: $(BITCOIN_TESTS:.cpp=.cpp.test)
|
||||||
@echo "Running test/util/bitcoin-util-test.py..."
|
@echo "Running test/util/bitcoin-util-test.py..."
|
||||||
$(PYTHON) $(top_builddir)/test/util/bitcoin-util-test.py
|
$(PYTHON) $(top_builddir)/test/util/bitcoin-util-test.py
|
||||||
$(AM_V_at)$(MAKE) $(AM_MAKEFLAGS) -C secp256k1 check
|
$(AM_V_at)$(MAKE) $(AM_MAKEFLAGS) -C secp256k1 check
|
||||||
@ -162,6 +161,10 @@ if EMBEDDED_UNIVALUE
|
|||||||
$(AM_V_at)$(MAKE) $(AM_MAKEFLAGS) -C univalue check
|
$(AM_V_at)$(MAKE) $(AM_MAKEFLAGS) -C univalue check
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
%.cpp.test: %.cpp
|
||||||
|
@echo Running tests: `cat $< | grep "BOOST_FIXTURE_TEST_SUITE(\|BOOST_AUTO_TEST_SUITE(" | cut -d '(' -f 2 | cut -d ',' -f 1 | cut -d ')' -f 1` from $<
|
||||||
|
$(AM_V_at)$(TEST_BINARY) -l test_suite -t "`cat $< | grep "BOOST_FIXTURE_TEST_SUITE(\|BOOST_AUTO_TEST_SUITE(" | cut -d '(' -f 2 | cut -d ',' -f 1 | cut -d ')' -f 1`" > $<.log 2>&1 || (cat $<.log && false)
|
||||||
|
|
||||||
%.json.h: %.json
|
%.json.h: %.json
|
||||||
@$(MKDIR_P) $(@D)
|
@$(MKDIR_P) $(@D)
|
||||||
@{ \
|
@{ \
|
||||||
|
Loading…
Reference in New Issue
Block a user