From 7aa261f8d57cb53cc334f6bf1920a6f8517ff054 Mon Sep 17 00:00:00 2001 From: axtloss Date: Fri, 27 Sep 2024 12:11:52 +0200 Subject: Rework test suite to be more modular --- tests/Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'tests/Makefile') diff --git a/tests/Makefile b/tests/Makefile index b4ed98e..37f9d46 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -2,9 +2,14 @@ CC = cc CFLAGS = -g -fsanitize=address,undefined +TESTS = $(wildcard test_*.c) + +all: test test: FORCE - $(CC) test.c ../src/extlib.c ../src/extstring.c ../src/constraint_handler.c ../src/memset_s.c $(CFLAGS) -o test + $(CC) -c tests.c -o tests.o + $(CC) driver.c tests.o ../src/extlib.c ../src/extstring.c ../src/constraint_handler.c ../src/memset_s.c $(CFLAGS) -o test ./test + rm tests.o FORCE: ; # PHONY is a non standard extension -- cgit v1.2.3