File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 2
2
# Distributed under the MIT software license, see the accompanying
3
3
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
4
4
5
- TESTS += test/test_bitcoin
6
5
bin_PROGRAMS += test/test_bitcoin
7
6
noinst_PROGRAMS += test/test_bitcoin_fuzzy
8
7
TEST_SRCDIR = test
@@ -154,14 +153,18 @@ bitcoin_test_check: $(TEST_BINARY) FORCE
154
153
bitcoin_test_clean : FORCE
155
154
rm -f $(CLEAN_BITCOIN_TEST) $(test_test_bitcoin_OBJECTS) $(TEST_BINARY)
156
155
157
- check-local:
156
+ check-local: $(BITCOIN_TESTS:.cpp=.cpp.test)
158
157
@echo "Running test/util/bitcoin-util-test.py..."
159
158
$(PYTHON) $(top_builddir)/test/util/bitcoin-util-test.py
160
159
$(AM_V_at)$(MAKE) $(AM_MAKEFLAGS) -C secp256k1 check
161
160
if EMBEDDED_UNIVALUE
162
161
$(AM_V_at)$(MAKE) $(AM_MAKEFLAGS) -C univalue check
163
162
endif
164
163
164
+ %.cpp.test: %.cpp
165
+ @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 $<
166
+ $(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)
167
+
165
168
%.json.h: %.json
166
169
@$(MKDIR_P) $(@D)
167
170
@{ \
You can’t perform that action at this time.
0 commit comments