Skip to content

Commit

Permalink
make check: run all the tests.
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
rustyrussell committed Feb 2, 2017
1 parent 05cf316 commit a02f1e1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 1 addition & 4 deletions lightningd/test/Makefile
Original file line number Diff line number Diff line change
@@ -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.
Expand Down

0 comments on commit a02f1e1

Please sign in to comment.