check: simple Makefile target.

This makes it much easier to run all the test scripts.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2015-09-29 17:02:02 +09:30
parent 1ac08e3b11
commit 845d09ce68
4 changed files with 31 additions and 12 deletions

View File

@@ -93,6 +93,16 @@ $(PROGRAMS): CFLAGS+=-I.
default: $(PROGRAMS)
# These don't work in parallel, so we open-code them
test-cli-tests: $(TEST_CLI_PROGRAMS)
cd test-cli; scripts/shutdown.sh 2>/dev/null || true
set -e; cd test-cli; for args in "" --steal --unilateral --htlc-onchain; do scripts/setup.sh && scripts/test.sh $$args && scripts/shutdown.sh; done
check: test-cli-tests
full-check: check $(TEST_PROGRAMS)
test/test_state_coverage
TAGS: FORCE
$(RM) TAGS; find . -name '*.[ch]' | xargs etags --append
FORCE::