From e0023883c6d2e6745a19e4b48e186ed156c1fca8 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 17:19:27 +0200 Subject: Adding upstream version 2.11.2. Signed-off-by: Daniel Baumann --- src/tests/lexgrog-basic | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 src/tests/lexgrog-basic (limited to 'src/tests/lexgrog-basic') diff --git a/src/tests/lexgrog-basic b/src/tests/lexgrog-basic new file mode 100755 index 0000000..b30048b --- /dev/null +++ b/src/tests/lexgrog-basic @@ -0,0 +1,19 @@ +#! /bin/sh + +# Basic lexgrog tests. + +: "${srcdir=.}" +# shellcheck source-path=SCRIPTDIR +. "$srcdir/testlib.sh" + +: "${LEXGROG=lexgrog}" + +init + +write_page lextest 1 "$tmpdir/usr/share/man/man1/lextest.1.gz" UTF-8 gz '' \ + 'lextest \- simple lexgrog test' +echo "$tmpdir/usr/share/man/man1/lextest.1.gz: \"lextest - simple lexgrog test\"" >"$tmpdir/1.exp" +run $LEXGROG "$tmpdir/usr/share/man/man1/lextest.1.gz" >"$tmpdir/1.out" +expect_files_equal 'simple lexgrog test' "$tmpdir/1.exp" "$tmpdir/1.out" + +finish -- cgit v1.2.3