build: fix 'make distcheck'

Rather than treating the .py as a regular built test, run it from check-local
so that we can better control the paths used.
pull/262/head
Cory Fields 10 years ago
parent f914f1a746
commit be43492945

@ -1,4 +1,4 @@
TESTS += test/test_bitcoin test/bitcoin-util-test.py
TESTS += test/test_bitcoin
bin_PROGRAMS += test/test_bitcoin
TEST_SRCDIR = test
TEST_BINARY=test/test_bitcoin$(EXEEXT)
@ -105,6 +105,8 @@ bitcoin_test_clean : FORCE
rm -f $(CLEAN_BITCOIN_TEST) $(test_test_bitcoin_OBJECTS) $(TEST_BINARY)
check-local:
@echo "Running test/bitcoin-util-test.py..."
$(AM_V_at)srcdir=$(srcdir) PYTHONPATH=$(builddir)/test $(srcdir)/test/bitcoin-util-test.py
$(AM_V_at)$(MAKE) $(AM_MAKEFLAGS) -C secp256k1 check
%.json.h: %.json

Loading…
Cancel
Save