aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2018-08-28 10:41:36 +0200
committerMattias Andrée <maandree@kth.se>2018-08-28 10:41:36 +0200
commit60513cb5508a8197f5219dc3d06c0331c99863a6 (patch)
tree210f152018f18646c1f0cbca21602875562366bb /Makefile
parentFix vputenvf (diff)
downloadlibsimple-60513cb5508a8197f5219dc3d06c0331c99863a6.tar.gz
libsimple-60513cb5508a8197f5219dc3d06c0331c99863a6.tar.bz2
libsimple-60513cb5508a8197f5219dc3d06c0331c99863a6.tar.xz
Add test function to all .c files
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile38
1 files changed, 1 insertions, 37 deletions
diff --git a/Makefile b/Makefile
index 1f75567..763ccda 100644
--- a/Makefile
+++ b/Makefile
@@ -59,43 +59,7 @@ OBJ =\
vweprintf.o\
libsimple.o
-TESTS =\
- asprintf.test\
- difftimespec.test\
- difftimeval.test\
- doubletotimespec.test\
- doubletotimeval.test\
- isutf8.test\
- memdup.test\
- memends.test\
- memmem.test\
- memrchr.test\
- memrmem.test\
- memstarts.test\
- minimise_number_string.test\
- multimespec.test\
- multimeval.test\
- rawmemchr.test\
- rawmemrchr.test\
- strcaseends.test\
- strcasestr.test\
- strends.test\
- strncasestr.test\
- strndup.test\
- strnstr.test\
- strrcasestr.test\
- strrncasestr.test\
- strrnstr.test\
- strrstr.test\
- strstarts.test\
- sumtimespec.test\
- sumtimeval.test\
- timespec2timeval.test\
- timespectostr.test\
- timevaltostr.test\
- vasprintf.test\
- vputenvf.test\
- libsimple.test
+TESTS = $(OBJ:.o=.test)
all: libsimple.a $(TESTS)
$(OBJ): $(@:.o=.c) libsimple.h