diff options
author | axtloss <axtlos@getcryst.al> | 2024-09-27 12:11:52 +0200 |
---|---|---|
committer | axtloss <axtlos@getcryst.al> | 2024-09-27 12:11:52 +0200 |
commit | 7aa261f8d57cb53cc334f6bf1920a6f8517ff054 (patch) | |
tree | f23a96feda17de737c71b45dc94e7e044410ad35 /tests/Makefile | |
parent | 27bb394bc0bf2ca66d06931bf1e73a3e20d5741a (diff) | |
download | extlib-7aa261f8d57cb53cc334f6bf1920a6f8517ff054.tar.gz extlib-7aa261f8d57cb53cc334f6bf1920a6f8517ff054.tar.bz2 |
Rework test suite to be more modular
Diffstat (limited to 'tests/Makefile')
-rw-r--r-- | tests/Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
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 |