From d9f0f81c846a8405c29870e4a8379e5e79d1cad3 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Wed, 8 Feb 2017 03:02:13 +0000 Subject: Finally port the OpenBSD regression suite. Both kristaps@ and wiz@ repeated asked for this, literally for years. --- regress/roff/ig/Makefile | 6 ++++++ regress/roff/ig/basic.in | 27 +++++++++++++++++++++++++++ regress/roff/ig/basic.out_ascii | 13 +++++++++++++ regress/roff/ig/basic.out_lint | 3 +++ 4 files changed, 49 insertions(+) create mode 100644 regress/roff/ig/Makefile create mode 100644 regress/roff/ig/basic.in create mode 100644 regress/roff/ig/basic.out_ascii create mode 100644 regress/roff/ig/basic.out_lint (limited to 'regress/roff/ig') diff --git a/regress/roff/ig/Makefile b/regress/roff/ig/Makefile new file mode 100644 index 00000000..93e5e41e --- /dev/null +++ b/regress/roff/ig/Makefile @@ -0,0 +1,6 @@ +# $OpenBSD: Makefile,v 1.1 2014/07/07 11:34:41 schwarze Exp $ + +REGRESS_TARGETS = basic +LINT_TARGETS = basic + +.include diff --git a/regress/roff/ig/basic.in b/regress/roff/ig/basic.in new file mode 100644 index 00000000..7e898832 --- /dev/null +++ b/regress/roff/ig/basic.in @@ -0,0 +1,27 @@ +.Dd July 7, 2014 +.Dt IG-BASIC 1 +.Os OpenBSD +.Sh NAME +.Nm ig-basic +.Nd ignored blocks +.Sh DESCRIPTION +no arguments +.ig +ignored text +.. +.br +with end marker +.ig end1 +ignored text +.end1 +.br +with two arguments +.ig end2 excess +ignored text +.end2 +.br +Here is a stray .. block ending, +.. +and then an .ig staying open until the end of the file: +.ig +ignored text diff --git a/regress/roff/ig/basic.out_ascii b/regress/roff/ig/basic.out_ascii new file mode 100644 index 00000000..d100617a --- /dev/null +++ b/regress/roff/ig/basic.out_ascii @@ -0,0 +1,13 @@ +IG-BASIC(1) General Commands Manual IG-BASIC(1) + +NNAAMMEE + iigg--bbaassiicc - ignored blocks + +DDEESSCCRRIIPPTTIIOONN + no arguments + with end marker + with two arguments + Here is a stray .. block ending, and then an .ig staying open until the + end of the file: + +OpenBSD July 7, 2014 OpenBSD diff --git a/regress/roff/ig/basic.out_lint b/regress/roff/ig/basic.out_lint new file mode 100644 index 00000000..2b03b9cf --- /dev/null +++ b/regress/roff/ig/basic.out_lint @@ -0,0 +1,3 @@ +mandoc: basic.in:19:5: ERROR: skipping excess arguments: .ig ... excess +mandoc: basic.in:24:1: ERROR: skipping end of block that is not open: .. +mandoc: basic.in:26:1: ERROR: appending missing end of block: ig -- cgit v1.2.3-56-ge451