diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-01-20 22:55:46 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-01-20 22:55:46 +0000 |
commit | e2762e29b6445ab6177b83521a279938a317605f (patch) | |
tree | f1daca9b424eb34693a3cb687aa7dba20226f4b0 /Makefile | |
parent | 7a6aee8ed3dc388c63c4711e3a8122b46d8740fb (diff) | |
download | mandoc-e2762e29b6445ab6177b83521a279938a317605f.tar.gz |
Added regression tests (just for prologue, for now).
Minor fixes in parsing prologue.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 36 |
1 files changed, 36 insertions, 0 deletions
@@ -33,6 +33,34 @@ CLEAN = $(BINS) $(LNS) $(LLNS) $(LIBS) $(OBJS) INSTALL = $(SRCS) $(HEADS) Makefile Makefile.port DESCR $(MANS) +FAIL = regress/test.empty \ + regress/test.prologue.00 \ + regress/test.prologue.01 \ + regress/test.prologue.02 \ + regress/test.prologue.03 \ + regress/test.prologue.04 \ + regress/test.prologue.06 \ + regress/test.prologue.13 \ + regress/test.prologue.15 \ + regress/test.prologue.16 \ + regress/test.prologue.18 \ + regress/test.prologue.19 \ + regress/test.prologue.21 \ + regress/test.prologue.22 \ + regress/test.prologue.23 \ + regress/test.prologue.24 + +SUCCEED = regress/test.prologue.05 \ + regress/test.prologue.07 \ + regress/test.prologue.08 \ + regress/test.prologue.09 \ + regress/test.prologue.10 \ + regress/test.prologue.11 \ + regress/test.prologue.12 \ + regress/test.prologue.14 \ + regress/test.prologue.17 \ + regress/test.prologue.20 + all: $(BINS) lint: $(LLNS) @@ -44,6 +72,14 @@ dist: mdocml-$(VERSION).tar.gz port: mdocml-oport-$(VERSION).tar.gz +regress:: + @for f in $(FAIL); do \ + echo "./mdocml $$f" ; \ + ./mdocml $$f 2>/dev/null || continue ; exit 1 ; done + @for f in $(SUCCEED); do \ + echo "./mdocml $$f" ; \ + ./mdocml $$f 2>/dev/null || exit 1 ; done + install: mkdir -p $(PREFIX)/bin/ mkdir -p $(PREFIX)/include/mdoc/ |