File: ispell-ok

package info (click to toggle)
igerman98 20161207-15
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 4,264 kB
  • sloc: perl: 925; makefile: 478; sh: 472; sed: 46
file content (25 lines) | stat: -rwxr-xr-x 476 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/sh
#
# Test with a correct UTF-8 German text.
#
# (c) 2020 Roland Rosenfeld <roland@debian.org>

TESTSDIR=$(dirname $0)

if [ -z "$AUTOPKGTEST_TMP" ]; then
    AUTOPKGTEST_TMP=$(mktemp -d)
fi

trap "rm -rf $AUTOPKGTEST_TMP" EXIT

OUTPUT=$(ispell -l -w 'äöüßÄÖÜäöüßâêéñà' -Tutf8 -C -d ngerman \
		< $TESTSDIR/correct.utf8.txt)

if [ -z "$OUTPUT" ]
then
    exit 0
else
    echo "ispell did not accept the following words:"
    echo $OUTPUT
    exit 1
fi