commit 84f6c7862a21bef24a833ecb84a9d00e923e2f3d
parent d21add912c5c0cff4dbbcbb03d98e3b83155813a
Author: sin <sin@2f30.org>
Date: Wed, 1 May 2019 21:03:52 +0100
Create a test Makefile target
Diffstat:
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
@@ -59,6 +59,9 @@ dist: clean
cp `find . -maxdepth 1 -type f` dedup-$(VERSION)
tar -c dedup-$(VERSION) | gzip > dedup-$(VERSION).tar.gz
+test: all
+ sh runtests
+
.SUFFIXES: .c .o
.c.o:
diff --git a/runtests b/runtests
@@ -1,7 +1,6 @@
#!/bin/sh
set -ex
-make
for t in test*
do
sh $t