File: test-ENCAOPT.sh

package info (click to toggle)
enca 1.13-3
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 4,440 kB
  • ctags: 1,230
  • sloc: sh: 11,125; ansic: 10,330; xml: 2,926; makefile: 698; perl: 232
file content (15 lines) | stat: -rwxr-xr-x 530 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#! /bin/sh
# @(#) $Id: test-ENCAOPT.sh,v 1.5 2003/11/17 12:27:39 yeti Exp $
# Purpose: test whether ENCAOPT works.
. $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
  ENCAOPT="-L $l -p -e"
  # This is necessary when $ENCA is in fact a libtool script
  export ENCAOPT
  $ENCA $srcdir/$l-s.* | sed -e "s#^$srcdir/##" >>$TESTNAME.actual || DIE=1
done
. $srcdir/finish.sh
rm -f $TESTNAME.expected 2>/dev/null