aboutsummaryrefslogtreecommitdiffstats
path: root/tests/Makefile
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2006-06-16 13:48:52 +0200
committerJelmer Vernooij <jelmer@samba.org>2006-06-16 13:48:52 +0200
commitc2fa8279933a103d6576d891e85c1801d90c65ef (patch)
tree6eecae7f4895b54adbaa59d640aa701416c03708 /tests/Makefile
parent07e46c92467d0787f1318412186a64cf1c9da562 (diff)
Add unit testing infrastructure.
Diffstat (limited to 'tests/Makefile')
-rw-r--r--tests/Makefile14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/Makefile b/tests/Makefile
new file mode 100644
index 00000000..3a27a430
--- /dev/null
+++ b/tests/Makefile
@@ -0,0 +1,14 @@
+include ../Makefile.settings
+
+LFLAGS +=-lcheck
+
+all: check
+ ./check
+
+check: check.o check_util.o ../util.o
+ @echo '*' Linking $@
+ @$(CC) $(CFLAGS) -o $@ $^ $(LFLAGS) $(EFLAGS)
+
+%.o: %.c
+ @echo '*' Compiling $<
+ @$(CC) -c $(CFLAGS) $< -o $@