summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2008-11-26 16:50:34 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2008-11-26 16:50:34 +0000
commit0b18af17c9504e4688a2bbd1cbd2d1ca2b937d67 (patch)
treed1d7475d441e097a3ba6571612ab4bbc7cd2cc93 /Makefile
parent984f70eeb4b5c4ef5ae5b30cf3ebda2c8e350d10 (diff)
downloadmandoc-0b18af17c9504e4688a2bbd1cbd2d1ca2b937d67.tar.gz
Added regression tests.
Considerable fixes... blah blah blah...
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index e0242577..c8791ff1 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,5 @@
CFLAGS += -W -Wall -Wno-unused-parameter -g
+
LINTFLAGS += -c -e -f -u
LNS = mdocml.ln html4_strict.ln dummy.ln libmdocml.ln roff.ln
@@ -19,6 +20,11 @@ CLEAN = mdocml mdocml.tgz $(LLNS) $(LNS) $(OBJS) $(LIBS)
INSTALL = Makefile $(HEADS) $(SRCS) $(MANS)
+FAIL = test.0 test.1 test.2 test.3 test.4 test.5 test.6 \
+ test.15
+
+SUCCEED = test.7 test.8 test.9 test.10 test.11 test.12 test.13
+
all: mdocml
@@ -26,6 +32,10 @@ lint: llib-lmdocml.ln
dist: mdocml.tgz
+regress: mdocml
+ @for f in $(FAIL); do ./mdocml $$f 2>/dev/null || continue ; done
+ @for f in $(SUCCEED); do ./mdocml $$f || exit 1 ; done
+
mdocml: mdocml.o libmdocml.a
$(CC) $(CFLAGS) -o $@ mdocml.o libmdocml.a