From 9221dca64f0c8b5de72727491e41cf63e902eaab Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 6 May 2024 03:16:24 +0200 Subject: Adding upstream version 2.8.5. Signed-off-by: Daniel Baumann --- src/tests/man-8 | 58 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100755 src/tests/man-8 (limited to 'src/tests/man-8') diff --git a/src/tests/man-8 b/src/tests/man-8 new file mode 100755 index 0000000..cb19790 --- /dev/null +++ b/src/tests/man-8 @@ -0,0 +1,58 @@ +#! /bin/sh + +# Test additional language-specific requests for localized man pages. + +: ${srcdir=.} +. "$srcdir/testlib.sh" + +: ${MAN=man} + +init +fake_config /usr/share/man +MANPATH="$tmpdir/usr/share/man" +export MANPATH + +cat >"$tmpdir/fake-program" <>"$tmpdir/manpath.config" <"$tmpdir/1.exp" <<'EOF' +. mso xyzzy.tmac +.hla xyzzy +test \- xyzzy language page for test +EOF + +cat >"$tmpdir/2.exp" <<'EOF' +.TH xyz 1 +test \- top-level xyz page +EOF + +run $MAN -L xyzzy_foo.bar -C "$tmpdir/manpath.config" test |\ + grep 'xyzzy' >"$tmpdir/1.out" +expect_pass 'language-specific requests for localized man page' \ + 'diff -u "$tmpdir/1.exp" "$tmpdir/1.out"' + +run $MAN -L xyzzy_foo.bar -C "$tmpdir/manpath.config" xyz |\ + grep 'xyz' >"$tmpdir/2.out" +expect_pass 'no language-specific requests for top-level man page' \ + 'diff -u "$tmpdir/2.exp" "$tmpdir/2.out"' + +finish -- cgit v1.2.3