diff options
author | xengineering <me@xengineering.eu> | 2022-12-01 21:56:28 +0100 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2022-12-01 21:56:28 +0100 |
commit | aa1ad39a6fdb060139185a72db20a1155b33b170 (patch) | |
tree | acaac4aae687e0e653d4e6fa468680c977737c6c /Makefile | |
parent | 488b57792601459380b3aabc2786f27cdee6af18 (diff) | |
download | limox-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-- | Makefile | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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 |