From 76fb4e20298c7c41efb20a8a53ae81d2ce716303 Mon Sep 17 00:00:00 2001 From: John Levon Date: Wed, 25 Nov 2020 17:33:25 +0000 Subject: add "make test"; run it in pre-commit (#127) Also rename test.c to reflect it should cover unit tests. Reviewed-by: Swapnil Ingle Signed-off-by: John Levon --- Makefile | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 9e9f04b..872c975 100644 --- a/Makefile +++ b/Makefile @@ -53,6 +53,9 @@ PHONY_TARGETS := all realclean buildclean force_cmake export install-export tags all $(filter-out $(PHONY_TARGETS), $(MAKECMDGOALS)): $(BUILD_DIR)/Makefile +$(MAKE) -C $(BUILD_DIR) $@ +test: all + cd $(BUILD_DIR)/test; ctest --verbose + realclean: rm -rf $(BUILD_DIR_BASE) -- cgit v1.1