Browse Source

make check: run all the tests.

We can't run them in parallel, but we can at least have 'make check'
run them all.

Developers should be running "make check-source && make check".

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ppa-0.6.1
Rusty Russell 8 years ago
parent
commit
a02f1e10c4
  1. 4
      Makefile
  2. 5
      lightningd/test/Makefile

4
Makefile

@ -229,7 +229,11 @@ $(HELPER_OBJS) $(CORE_OBJS) $(CORE_TX_OBJS) $(CORE_PROTOBUF_OBJS) $(BITCOIN_OBJS
test-protocol: test/test_protocol
set -e; TMP=`mktemp`; for f in test/commits/*.script; do if ! $(VALGRIND) test/test_protocol < $$f > $$TMP; then echo "test/test_protocol < $$f FAILED" >&2; exit 1; fi; diff -u $$TMP $$f.expected; done; rm $$TMP
# FIXME: check doesn't depend on lightningd-blackbox-tests, since they
# can't run in parallel with daemon blackbox tests.
check: test-protocol
$(MAKE) lightningd-blackbox-tests
$(MAKE) pytest
pytest: daemon/lightningd
PYTHONPATH=contrib/pylightning python3 tests/test_lightningd.py

5
lightningd/test/Makefile

@ -1,7 +1,4 @@
# FIXME: check doesn't cover lightningd-blackbox-tests, since they
# can't run in parallel with daemon blackbox tests.
check: lightningd/tests #lightningd-blackbox-tests
check: lightningd/tests
# Note that these actually #include everything they need, except ccan/ and bitcoin/.
# That allows for unit testing of statics, and special effects.

Loading…
Cancel
Save