blob: a6d19502b79bbdb7db5cca7de270d8190889785c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#! /bin/sh
# @(#) $Id: test-guess-stdin.sh,v 1.5 2003/11/17 12:27:40 yeti Exp $
# Purpose: test charset recognition of samples coming from stdin.
. $srcdir/setup.sh
DATATESTNAME=test-guess-short
rm -f $TESTNAME.expected 2>/dev/null
ln -s $srcdir/$DATATESTNAME.expected $TESTNAME.expected
for l in $ALL_TEST_LANGUAGES; do
for f in $srcdir/$l-s.*; do
sf=`echo $f | sed -e "s#^$srcdir/##"`
x="$sf: "`$ENCA -P -e -L $l <$f` || DIE=1
echo "$x" >>$TESTNAME.actual
done
done
. $srcdir/finish.sh
rm -f $TESTNAME.expected 2>/dev/null
|