From 76918e2e1d5b60e535b8c4ee567f001fa667bc1a Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Sun, 16 May 2010 19:08:11 +0000 Subject: Regression tests in place for `.if' in libroff. Check against some strange `.if' constructs I missed. Added initial roff.7 manual. --- regress/roff/if/line-nest.in | 11 +++++++++++ regress/roff/if/multiline0.in | 12 ++++++++++++ regress/roff/if/multiline1.in | 13 +++++++++++++ regress/roff/if/multiline2.in | 15 +++++++++++++++ regress/roff/if/multiline3.in | 15 +++++++++++++++ regress/roff/if/simple0.in | 10 ++++++++++ regress/roff/if/simple1.in | 11 +++++++++++ regress/roff/if/simple2.in | 11 +++++++++++ 8 files changed, 98 insertions(+) create mode 100644 regress/roff/if/line-nest.in create mode 100644 regress/roff/if/multiline0.in create mode 100644 regress/roff/if/multiline1.in create mode 100644 regress/roff/if/multiline2.in create mode 100644 regress/roff/if/multiline3.in create mode 100644 regress/roff/if/simple0.in create mode 100644 regress/roff/if/simple1.in create mode 100644 regress/roff/if/simple2.in (limited to 'regress/roff') diff --git a/regress/roff/if/line-nest.in b/regress/roff/if/line-nest.in new file mode 100644 index 00000000..06e58b67 --- /dev/null +++ b/regress/roff/if/line-nest.in @@ -0,0 +1,11 @@ +.Dd $Mdocdate$ +.Dt FOO 1 +.Os +.Sh NAME +.Nm foo +.Nd bar +.Sh DESCRIPTION +123 +.if t .if t \ +fdsa +asdf diff --git a/regress/roff/if/multiline0.in b/regress/roff/if/multiline0.in new file mode 100644 index 00000000..0b6e132d --- /dev/null +++ b/regress/roff/if/multiline0.in @@ -0,0 +1,12 @@ +.Dd $Mdocdate$ +.Dt FOO 1 +.Os +.Sh NAME +.Nm foo +.Nd bar +.Sh DESCRIPTION +123 +.if t \{\ +asdf +.\} +fdsa diff --git a/regress/roff/if/multiline1.in b/regress/roff/if/multiline1.in new file mode 100644 index 00000000..b69edaf4 --- /dev/null +++ b/regress/roff/if/multiline1.in @@ -0,0 +1,13 @@ +.Dd $Mdocdate$ +.Dt FOO 1 +.Os +.Sh NAME +.Nm foo +.Nd bar +.Sh DESCRIPTION +123 +.if t \ +\{\ +asdf +.\} +fdsa diff --git a/regress/roff/if/multiline2.in b/regress/roff/if/multiline2.in new file mode 100644 index 00000000..6076685f --- /dev/null +++ b/regress/roff/if/multiline2.in @@ -0,0 +1,15 @@ +.Dd $Mdocdate$ +.Dt FOO 1 +.Os +.Sh NAME +.Nm foo +.Nd bar +.Sh DESCRIPTION +123 +.if t \{\ +asdf +. if t \{\ +shmoop moop +. \} +.\} +fdsa diff --git a/regress/roff/if/multiline3.in b/regress/roff/if/multiline3.in new file mode 100644 index 00000000..c32e902b --- /dev/null +++ b/regress/roff/if/multiline3.in @@ -0,0 +1,15 @@ +.Dd $Mdocdate$ +.Dt FOO 1 +.Os +.Sh NAME +.Nm foo +.Nd bar +.Sh DESCRIPTION +123 +.if t \{ .if t +asdf +. if t \{\ +shmoop moop +. \} +.\} +fdsa diff --git a/regress/roff/if/simple0.in b/regress/roff/if/simple0.in new file mode 100644 index 00000000..7ba9b7c9 --- /dev/null +++ b/regress/roff/if/simple0.in @@ -0,0 +1,10 @@ +.Dd $Mdocdate$ +.Dt FOO 1 +.Os +.Sh NAME +.Nm foo +.Nd bar +.Sh DESCRIPTION +123 +.if t \ +asdf diff --git a/regress/roff/if/simple1.in b/regress/roff/if/simple1.in new file mode 100644 index 00000000..0462ffce --- /dev/null +++ b/regress/roff/if/simple1.in @@ -0,0 +1,11 @@ +.Dd $Mdocdate$ +.Dt FOO 1 +.Os +.Sh NAME +.Nm foo +.Nd bar +.Sh DESCRIPTION +123 +.\" Note this has no whitespace... +.if t +asdf diff --git a/regress/roff/if/simple2.in b/regress/roff/if/simple2.in new file mode 100644 index 00000000..3d7a831b --- /dev/null +++ b/regress/roff/if/simple2.in @@ -0,0 +1,11 @@ +.Dd $Mdocdate$ +.Dt FOO 1 +.Os +.Sh NAME +.Nm foo +.Nd bar +.Sh DESCRIPTION +123 +.\" Note that this has whitespace... +.if t +asdf -- cgit