diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2017-02-08 03:02:13 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2017-02-08 03:02:13 +0000 |
commit | 4c0770c1ecd159a77561d8e0364385f4bb758650 (patch) | |
tree | 5c2d5820b093c1c08b6047ff110e9b055083a5ea /regress/roff/ds | |
parent | d16e7f2cf346476e177ce672851b0b957aebbe5d (diff) | |
download | mandoc-4c0770c1ecd159a77561d8e0364385f4bb758650.tar.gz |
Finally port the OpenBSD regression suite.
Both kristaps@ and wiz@ repeated asked for this,
literally for years.
Diffstat (limited to 'regress/roff/ds')
-rw-r--r-- | regress/roff/ds/Makefile | 5 | ||||
-rw-r--r-- | regress/roff/ds/append.in | 17 | ||||
-rw-r--r-- | regress/roff/ds/append.out_ascii | 12 | ||||
-rw-r--r-- | regress/roff/ds/escname.in | 14 | ||||
-rw-r--r-- | regress/roff/ds/escname.out_ascii | 11 | ||||
-rw-r--r-- | regress/roff/ds/nested.in | 14 | ||||
-rw-r--r-- | regress/roff/ds/nested.out_ascii | 11 | ||||
-rw-r--r-- | regress/roff/ds/quoting.in | 32 | ||||
-rw-r--r-- | regress/roff/ds/quoting.out_ascii | 17 |
9 files changed, 133 insertions, 0 deletions
diff --git a/regress/roff/ds/Makefile b/regress/roff/ds/Makefile new file mode 100644 index 00000000..98a93d75 --- /dev/null +++ b/regress/roff/ds/Makefile @@ -0,0 +1,5 @@ +# $OpenBSD: Makefile,v 1.5 2014/06/29 22:12:54 schwarze Exp $ + +REGRESS_TARGETS = append escname nested quoting + +.include <bsd.regress.mk> diff --git a/regress/roff/ds/append.in b/regress/roff/ds/append.in new file mode 100644 index 00000000..6efa46ba --- /dev/null +++ b/regress/roff/ds/append.in @@ -0,0 +1,17 @@ +.Dd February 4, 2014 +.Dt DS-APPEND 1 +.Os OpenBSD +.Sh NAME +.Nm ds-append +.Nd appending to user-defined strings +.Sh DESCRIPTION +.ds foo first part +first part: \*[foo] +.br +.as foo " second part +with second part: \*[foo] +.br +.as foo " third part +with third part: \*[foo] +.br +end of test document diff --git a/regress/roff/ds/append.out_ascii b/regress/roff/ds/append.out_ascii new file mode 100644 index 00000000..47c68aa3 --- /dev/null +++ b/regress/roff/ds/append.out_ascii @@ -0,0 +1,12 @@ +DS-APPEND(1) General Commands Manual DS-APPEND(1) + +NNAAMMEE + ddss--aappppeenndd - appending to user-defined strings + +DDEESSCCRRIIPPTTIIOONN + first part: first part + with second part: first part second part + with third part: first part second part third part + end of test document + +OpenBSD February 4, 2014 OpenBSD diff --git a/regress/roff/ds/escname.in b/regress/roff/ds/escname.in new file mode 100644 index 00000000..6394144b --- /dev/null +++ b/regress/roff/ds/escname.in @@ -0,0 +1,14 @@ +.Dd June 29, 2014 +.Dt DS-ESCNAME 1 +.Os OpenBSD +.Sh NAME +.Nm ds-escname +.Nd escape sequences in string names +.Sh DESCRIPTION +.ds std\\esc stdval +Now \e*[std\\esc] is +.Sq \*[std\\esc] . +.Pp +.ds esc\eesc escval +Now \e*[esc] is +.Sq \*[esc] . diff --git a/regress/roff/ds/escname.out_ascii b/regress/roff/ds/escname.out_ascii new file mode 100644 index 00000000..3648b19b --- /dev/null +++ b/regress/roff/ds/escname.out_ascii @@ -0,0 +1,11 @@ +DS-ESCNAME(1) General Commands Manual DS-ESCNAME(1) + +NNAAMMEE + ddss--eessccnnaammee - escape sequences in string names + +DDEESSCCRRIIPPTTIIOONN + Now \*[std\esc] is `stdval'. + + Now \*[esc] is `'. + +OpenBSD June 29, 2014 OpenBSD diff --git a/regress/roff/ds/nested.in b/regress/roff/ds/nested.in new file mode 100644 index 00000000..a213b157 --- /dev/null +++ b/regress/roff/ds/nested.in @@ -0,0 +1,14 @@ +.Dd April 7, 2010 +.Dt DS-NESTED 1 +.Os OpenBSD +.Sh NAME +.Nm ds-nested +.Nd nested string expansion +.Sh DESCRIPTION +.ds foo bar +.ds bar output +This is the \*[\*[foo]]. +.Pp +.ds pi surprising +This is \*[\*[Pi]]. +This is \*(\*(Pi. diff --git a/regress/roff/ds/nested.out_ascii b/regress/roff/ds/nested.out_ascii new file mode 100644 index 00000000..50d51619 --- /dev/null +++ b/regress/roff/ds/nested.out_ascii @@ -0,0 +1,11 @@ +DS-NESTED(1) General Commands Manual DS-NESTED(1) + +NNAAMMEE + ddss--nneesstteedd - nested string expansion + +DDEESSCCRRIIPPTTIIOONN + This is the output. + + This is surprising. This is surprising. + +OpenBSD April 7, 2010 OpenBSD diff --git a/regress/roff/ds/quoting.in b/regress/roff/ds/quoting.in new file mode 100644 index 00000000..3e794d09 --- /dev/null +++ b/regress/roff/ds/quoting.in @@ -0,0 +1,32 @@ +.Dd August 3, 2010 +.Dt DS-QUOTING 1 +.Os OpenBSD +.Sh NAME +.Nm ds-quoting +.Nd quote handling by the define string request +.Sh DESCRIPTION +.ds foo initial definition +no quoting: \*[foo] +.br +.ds foo redefinition +still no quoting: \*[foo] +.br +.ds foo "string value +leading quotes: \*[foo] +.br +.ds foo "string value" +leading and trailing quotes: \*[foo] +.br +.ds foo "string" value +leading and middle quotes: \*[foo] +.br +.ds foo 'string value" +leading apostrophe, trailing quotes: \*[foo] +.br +.ds foo string value" +leading blank, trailing quotes: \*[foo] +.br +.ds foo +empty string: x\*[foo]x +.br +end of test document diff --git a/regress/roff/ds/quoting.out_ascii b/regress/roff/ds/quoting.out_ascii new file mode 100644 index 00000000..636743db --- /dev/null +++ b/regress/roff/ds/quoting.out_ascii @@ -0,0 +1,17 @@ +DS-QUOTING(1) General Commands Manual DS-QUOTING(1) + +NNAAMMEE + ddss--qquuoottiinngg - quote handling by the define string request + +DDEESSCCRRIIPPTTIIOONN + no quoting: initial definition + still no quoting: redefinition + leading quotes: string value + leading and trailing quotes: string value" + leading and middle quotes: string" value + leading apostrophe, trailing quotes: 'string value" + leading blank, trailing quotes: string value" + empty string: xx + end of test document + +OpenBSD August 3, 2010 OpenBSD |