From aa1ad39a6fdb060139185a72db20a1155b33b170 Mon Sep 17 00:00:00 2001 From: xengineering Date: Thu, 1 Dec 2022 21:56:28 +0100 Subject: Let Makefile fail if a test fails This should make clear that something went wrong if a test failed. --- Makefile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index cfe05e7..3bff2cd 100644 --- a/Makefile +++ b/Makefile @@ -8,8 +8,6 @@ TESTS:=$(patsubst ./%.c,build/%,$(_TESTS)) LIMOX=build/limox all: build $(OBJ) $(TESTS) $(LIMOX) - @echo "Running testsuite ..." - find build/tests -type f -exec {} \; build: mkdir -p build/tests @@ -20,8 +18,9 @@ $(LIMOX): $(OBJ) build/main.o build/%.o: %.c $(CC) -c -o $@ $< $(CFLAGS) -build/tests/%: tests/%.c +build/tests/%: tests/%.c $(OBJ) $(CC) -o $@ $< $(OBJ) $(CFLAGS) + $@ .PHONY: clean -- cgit v1.2.3-70-g09d2