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.
This commit is contained in:
Cory Fields 2014-12-19 18:02:44 -05:00
parent f914f1a746
commit be43492945
1 changed files with 3 additions and 1 deletions

View File

@ -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