aboutsummaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-06-24 01:05:39 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-06-24 01:06:34 +0200
commitc8a470de42c0993f5d4621897f7b22887462fc32 (patch)
tree96b70a2bf23940bca9df658eee5fa6095c23dc61 /t
parentc84c25dd28a406c5f8a8e40963536b088de3e1e8 (diff)
downloadmk-c8a470de42c0993f5d4621897f7b22887462fc32.tar.gz
Use Heirloom troff
Mg is now tested with both GNU and Heirloom troff.
Diffstat (limited to 't')
-rw-r--r--t/Makefile4
-rw-r--r--t/ne.t3
-rw-r--r--t/t.tmac8
3 files changed, 7 insertions, 8 deletions
diff --git a/t/Makefile b/t/Makefile
index 122da6d..f278324 100644
--- a/t/Makefile
+++ b/t/Makefile
@@ -9,7 +9,7 @@ g.tmac: ../g.tmac
.t.T: g.tmac t.tmac
@echo -- $< -----------------------
- @groff -z $<
+ @troff -x3 $< >/dev/null
.t.pdf: g.tmac t.tmac
- groff -Tps $< | ps2pdf - > $@
+ troff -x3 $< | dpost | ps2pdf - > $@
diff --git a/t/ne.t b/t/ne.t
index bf464b3..f0434ae 100644
--- a/t/ne.t
+++ b/t/ne.t
@@ -15,8 +15,7 @@ macro.
.\" make space at bottom of page
.de @
. rs
-. rt 0
-. sp \n(.pu-\n(mbu-\\$1-1u
+. sp |\n(.pu-\n(mbu-\\$1-1u
. nr a \\n%
..
.
diff --git a/t/t.tmac b/t/t.tmac
index 2a04f77..223babe 100644
--- a/t/t.tmac
+++ b/t/t.tmac
@@ -8,16 +8,16 @@
.de assert
.ec `
.ie `$1 \{\
-. tm1 " success
+. tm success
.\}
.ec
.el \{\
-. if \\nF<\\nt .tm1 " failure:
+. if \\nF<\\nt .tm failure:
.ec `
. ds *exp `$1
.ec
-. tm1 "{ \\*[*exp]
-. if !'\\*[*exp]'\\$1' . tm1 "} \\$1
+. tm { \\*[*exp]
+. if !'\\*[*exp]'\\$1' . tm } \\$1
. nr f +1
. nr F \\nt
.\}