Makefile: add 'make check' target

Add the standard 'make check' target, to run some quick tests.
This commit is contained in:
Eric Biggers 2019-08-30 00:14:43 -05:00
parent 09f14551d8
commit e227dee9e6

View File

@ -284,6 +284,14 @@ uninstall:
test_programs:$(TEST_PROGRAMS)
# A minimal 'make check' target. This only runs some quick tests;
# use tools/run_tests.sh if you want to run the full tests.
check:test_programs
./benchmark$(PROG_SUFFIX) < ./benchmark$(PROG_SUFFIX)
for prog in test_*; do \
./$$prog || exit 1; \
done
help:
@echo "Available targets:"
@echo "------------------"