diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2002-06-10 13:21:50 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2002-06-10 13:21:50 +0000 |
commit | 0766fc34a2525ed5b1d084ea33b198382d10e7d5 (patch) | |
tree | 416bbb9ee74fd1267a31ae8f52a3127d1815f23f /gnu/usr.bin/texinfo/makeinfo/tests | |
parent | e9d84711c304eca76d998c83ddae54ec5ec7e5fb (diff) |
TeXinfo 4.2, much more robust html (and other formats) output, and a few
features that new FSF programs will need (e.g., gcc snapshots).
looked at by fgs@, thanks.
Diffstat (limited to 'gnu/usr.bin/texinfo/makeinfo/tests')
-rw-r--r-- | gnu/usr.bin/texinfo/makeinfo/tests/accent | 33 | ||||
-rw-r--r-- | gnu/usr.bin/texinfo/makeinfo/tests/accent-text.txi | 64 | ||||
-rw-r--r-- | gnu/usr.bin/texinfo/makeinfo/tests/accent.txi | 10 | ||||
-rw-r--r-- | gnu/usr.bin/texinfo/makeinfo/tests/accentenc | 19 | ||||
-rw-r--r-- | gnu/usr.bin/texinfo/makeinfo/tests/accentenc.txi | 11 | ||||
-rw-r--r-- | gnu/usr.bin/texinfo/makeinfo/tests/html-docdesc | 12 | ||||
-rw-r--r-- | gnu/usr.bin/texinfo/makeinfo/tests/html-docdesc.txi | 14 | ||||
-rw-r--r-- | gnu/usr.bin/texinfo/makeinfo/tests/macro-at | 7 | ||||
-rw-r--r-- | gnu/usr.bin/texinfo/makeinfo/tests/macro-at.txi | 38 |
9 files changed, 208 insertions, 0 deletions
diff --git a/gnu/usr.bin/texinfo/makeinfo/tests/accent b/gnu/usr.bin/texinfo/makeinfo/tests/accent new file mode 100644 index 00000000000..dc008683200 --- /dev/null +++ b/gnu/usr.bin/texinfo/makeinfo/tests/accent @@ -0,0 +1,33 @@ +#!/bin/sh +# Test accent output. + +: ${srcdir=.} +input=`basename $0`.txi + +# html +houtput=`basename $0`.html +../makeinfo --html --no-split -I$srcdir $srcdir/$input +hexit_status=$? +if test $hexit_status = 0; then + grep 'ì' $houtput >/dev/null \ + && grep '´i' $houtput >/dev/null \ + && grep 'Ø' $houtput >/dev/null \ + && grep '/L' $houtput >/dev/null + hexit_status=$? +fi + +# info +ioutput=`basename $0`.info +../makeinfo --no-split -I$srcdir $srcdir/$input +iexit_status=$? +if test $iexit_status = 0; then + grep 'i`' $ioutput >/dev/null \ + && grep 'i"' $ioutput >/dev/null \ + && grep '/L' $ioutput >/dev/null + iexit_status=$? +fi + +rm -f $houtput $ioutput + +exit_status=`expr $hexit_status + $iexit_status` +exit $exit_status diff --git a/gnu/usr.bin/texinfo/makeinfo/tests/accent-text.txi b/gnu/usr.bin/texinfo/makeinfo/tests/accent-text.txi new file mode 100644 index 00000000000..e1bd2dacbdf --- /dev/null +++ b/gnu/usr.bin/texinfo/makeinfo/tests/accent-text.txi @@ -0,0 +1,64 @@ +@c args with braces, without braces/following whitespace + +should be e`: @`{e} @`e + +should be e': @'{e} @'e + +should be e^: @^{e} @^e + +should be u": @"{u} @"u + +should be i`: @`{i} @`i + +should be i': @'{i} @'i + +should be i^: @^{i} @^i + +should be u": @"{u} @"u + +should be c,: @,{c} @,c + +should be n~: @~{n} @~n + +should be e=: @={e} @=e + +should be e@w{'}': @H{e} @H e + +should be e.: @dotaccent{e} @dotaccent e + +should be e*: @ringaccent{e} @ringaccent e + +should be ee[: @tieaccent{ee} + +should be e(: @u{e} @u e + +should be e_: @ubaraccent{e} @ubaraccent e + +should be .e: @udotaccent{e} @udotaccent e + +should be e<: @v{e} @v e + +upside down: @questiondown{} @exclamdown{} + +A-with-circle: @aa{},@AA{} + +AE, OE ligatures: @ae{} @AE{} @oe{} @OE{} + +dotless i, j: @dotless{i} @dotless{j} + +Polish suppressed-L: @l{} @L{} + +O-with-slash: @o{} @O{} + +es-zet or sharp S: @ss{} + +pounds sterling: @pounds{} + +@c arg is command +should be dotless i`: @`{@dotless{i}} + +should be dotless i': @'{@dotless{i}} + +should be dotless i^: @^{@dotless{i}} + +should be dotless i": @"{@dotless{i}} diff --git a/gnu/usr.bin/texinfo/makeinfo/tests/accent.txi b/gnu/usr.bin/texinfo/makeinfo/tests/accent.txi new file mode 100644 index 00000000000..3c52a90bde4 --- /dev/null +++ b/gnu/usr.bin/texinfo/makeinfo/tests/accent.txi @@ -0,0 +1,10 @@ +\input texinfo +@setfilename accent.info +@settitle Accent test + +@node Top +@top Accent test top + +@include accent-text.txi + +@bye diff --git a/gnu/usr.bin/texinfo/makeinfo/tests/accentenc b/gnu/usr.bin/texinfo/makeinfo/tests/accentenc new file mode 100644 index 00000000000..baf26b60186 --- /dev/null +++ b/gnu/usr.bin/texinfo/makeinfo/tests/accentenc @@ -0,0 +1,19 @@ +#!/bin/sh +# Test encoded accent info output. + +: ${srcdir=.} +input=`basename $0`.txi +output=`basename $0`.info + +../makeinfo --enable-encoding --no-split -I$srcdir $srcdir/$input +exit_status=$? +if test $exit_status = 0; then + grep 'ì' $output >/dev/null \ + && grep 'ï' $output >/dev/null \ + && grep '/L' $output >/dev/null + exit_status=$? +fi + +rm -f $output + +exit $exit_status diff --git a/gnu/usr.bin/texinfo/makeinfo/tests/accentenc.txi b/gnu/usr.bin/texinfo/makeinfo/tests/accentenc.txi new file mode 100644 index 00000000000..b6e209c64fa --- /dev/null +++ b/gnu/usr.bin/texinfo/makeinfo/tests/accentenc.txi @@ -0,0 +1,11 @@ +\input texinfo +@setfilename accentenc.info +@settitle Accent encoding test +@documentencoding ISO-8859-1 + +@node Top +@top Accent encoding test top + +@include accent-text.txi + +@bye diff --git a/gnu/usr.bin/texinfo/makeinfo/tests/html-docdesc b/gnu/usr.bin/texinfo/makeinfo/tests/html-docdesc new file mode 100644 index 00000000000..59df74e411b --- /dev/null +++ b/gnu/usr.bin/texinfo/makeinfo/tests/html-docdesc @@ -0,0 +1,12 @@ +#!/bin/sh +# Test that @documentdescription works. + +if ../makeinfo --html --no-split ${srcdir-.}/html-docdesc.txi; then + grep 'explicit document description' html-docdesc.html >/dev/null + exit_status=$? +else + exit_status=1 +fi + +rm -f html-docdesc.html +exit $exit_status diff --git a/gnu/usr.bin/texinfo/makeinfo/tests/html-docdesc.txi b/gnu/usr.bin/texinfo/makeinfo/tests/html-docdesc.txi new file mode 100644 index 00000000000..0b328dacd2a --- /dev/null +++ b/gnu/usr.bin/texinfo/makeinfo/tests/html-docdesc.txi @@ -0,0 +1,14 @@ +\input texinfo +@setfilename html-docdesc.info +@settitle HTML docdesc test + +@documentdescription +This is the explicit document description. +@end documentdescription + +@node Top +@top Top of HTML docdesc test + +This is the top. + +@bye diff --git a/gnu/usr.bin/texinfo/makeinfo/tests/macro-at b/gnu/usr.bin/texinfo/makeinfo/tests/macro-at new file mode 100644 index 00000000000..90841e89f11 --- /dev/null +++ b/gnu/usr.bin/texinfo/makeinfo/tests/macro-at @@ -0,0 +1,7 @@ +#!/bin/sh +# Test @@ in macro expansions, etc. --eliz, 14nov99. + +: ${srcdir=.} +../makeinfo $srcdir/macro-at.txi || exit 1 + +rm -f macro-at.info diff --git a/gnu/usr.bin/texinfo/makeinfo/tests/macro-at.txi b/gnu/usr.bin/texinfo/makeinfo/tests/macro-at.txi new file mode 100644 index 00000000000..24b91013456 --- /dev/null +++ b/gnu/usr.bin/texinfo/makeinfo/tests/macro-at.txi @@ -0,0 +1,38 @@ +\input texinfo @c -*- texinfo -*- +@setfilename macro-at.info +@settitle AUTHORS -- who did what on GNU LilyPond + +@macro foo +foo-expansion +@end macro + +@macro bar +bar-expansion +@end macro + +@node Top, , AUTHORS -- who did what on GNU LilyPond, (dir) +@top +@menu +* AUTHORS -- who did what on GNU LilyPond:: AUTHORS -- who did what. +@end menu + +@node AUTHORS -- who did what on GNU LilyPond, Top, , Top +@chapter AUTHORS -- who did what on GNU LilyPond? + +This file lists authors of GNU LilyPond, and what they wrote. +It also uses foobar@{. + +@itemize @bullet +@item @email{pinard@@iro.montreal.ca, Fran@,{c}ois Pinard}, + parts of Documentation. +@item @email{foobar@@baz@@, The Foobar}, + the usual foobarical thing. +@item @email{another@@foobar@{, Buzzer}, + buzzed all the way. +@item @email{@foo{}@@@bar{}}, + also helped. +@item @email{tomcato@@xoommail.com, Tom Cato Amundsen}, + cembalo-partita in mundela. +@end itemize + +@bye |