File: sanity

package info (click to toggle)
aspell 0.60.8.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 15,336 kB
  • sloc: cpp: 24,378; sh: 12,340; perl: 1,924; ansic: 1,661; makefile: 852; sed: 16
file content (34 lines) | stat: -rwxr-xr-x 576 bytes parent folder | download | duplicates (5)
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
26
27
28
29
30
31
32
33
34
#!/bin/sh

set -e
set -x

export PATH="`pwd`"/inst/bin:$PATH

echo 'swimmer' | aspell -d en_US -a > tmp/res
if cat tmp/res | fgrep '*'; then
    echo "pass"
else
    echo "fail:"
    cat tmp/res
    exit 1
fi

echo 'swimer' | aspell -d en_US -a > tmp/res
if cat tmp/res | fgrep '& swimer' | fgrep 'swimmer'; then
    echo "pass"
else
    echo "fail:"
    cat tmp/res
    exit 1
fi

aspell -d en_US dump master | aspell -d en_US list > tmp/incorrect
if [ -e tmp/incorrect -a ! -s tmp/incorrect ]; then
    echo "pass"
else
    echo "fail:"
    cat tmp/incorrect
    exit 1
fi