summaryrefslogtreecommitdiffstatshomepage
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
commit47680c1fd7fef419b02b46cda50beec3dc16deaa (patch)
tree484df90234169b6795827212f1f47cfbec3dc9ea /Makefile
parent53ac84f9955e56e68c7affccf17d5ab802100b49 (diff)
downloadmandoc-47680c1fd7fef419b02b46cda50beec3dc16deaa.tar.gz
mandoc-47680c1fd7fef419b02b46cda50beec3dc16deaa.tar.zst
mandoc-47680c1fd7fef419b02b46cda50beec3dc16deaa.zip
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