summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2022-12-01 21:56:28 +0100
committerxengineering <me@xengineering.eu>2022-12-01 21:56:28 +0100
commitaa1ad39a6fdb060139185a72db20a1155b33b170 (patch)
treeacaac4aae687e0e653d4e6fa468680c977737c6c /Makefile
parent488b57792601459380b3aabc2786f27cdee6af18 (diff)
downloadlimox-aa1ad39a6fdb060139185a72db20a1155b33b170.tar
limox-aa1ad39a6fdb060139185a72db20a1155b33b170.tar.zst
limox-aa1ad39a6fdb060139185a72db20a1155b33b170.zip
Let Makefile fail if a test fails
This should make clear that something went wrong if a test failed.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files 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