Changeset View
Changeset View
Standalone View
Standalone View
src/Makefile.test.include
Show First 20 Lines • Show All 198 Lines • ▼ Show 20 Lines | check-local: $(BITCOIN_TESTS:.cpp=.cpp.test) | ||||
$(top_builddir)/test/util/bitcoin-util-test.py | $(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 | ||||
if EMBEDDED_UNIVALUE | 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 | %.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 $< | @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) | $(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) | ||||
@{ \ | @{ \ | ||||
echo "namespace json_tests{" && \ | echo "namespace json_tests{" && \ | ||||
echo "static unsigned const char $(*F)[] = {" && \ | echo "static unsigned const char $(*F)[] = {" && \ | ||||
$(HEXDUMP) -v -e '8/1 "0x%02x, "' -e '"\n"' $< | $(SED) -e 's/0x ,//g' && \ | $(HEXDUMP) -v -e '8/1 "0x%02x, "' -e '"\n"' $< | $(SED) -e 's/0x ,//g' && \ | ||||
echo "};};"; \ | echo "};};"; \ | ||||
} > "$@.new" && mv -f "$@.new" "$@" | } > "$@.new" && mv -f "$@.new" "$@" | ||||
@echo "Generated $@" | @echo "Generated $@" |