aboutsummaryrefslogtreecommitdiff
path: root/tests/Makefile
diff options
context:
space:
mode:
authoraxtloss <axtlos@getcryst.al>2024-09-27 12:11:52 +0200
committeraxtloss <axtlos@getcryst.al>2024-09-27 12:11:52 +0200
commit7aa261f8d57cb53cc334f6bf1920a6f8517ff054 (patch)
treef23a96feda17de737c71b45dc94e7e044410ad35 /tests/Makefile
parent27bb394bc0bf2ca66d06931bf1e73a3e20d5741a (diff)
downloadextlib-7aa261f8d57cb53cc334f6bf1920a6f8517ff054.tar.gz
extlib-7aa261f8d57cb53cc334f6bf1920a6f8517ff054.tar.bz2
Rework test suite to be more modular
Diffstat (limited to 'tests/Makefile')
-rw-r--r--tests/Makefile7
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