File: stdin.test

package info (click to toggle)
tnef 1.4.18-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 15,616 kB
  • sloc: ansic: 3,223; sh: 1,702; makefile: 197; perl: 60; awk: 58
file content (18 lines) | stat: -rwxr-xr-x 365 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

. $srcdir/../util.sh

bin=$srcdir/../../src/tnef
tnef_file=$srcdir/test.tnef

rm -f $srcdir/AUTHORS

echo cat $tnef_file \| $bin -v -f - > $srcdir/stdin.output 2>&1
cat $tnef_file | $bin -v -f - $tnef_file >> $srcdir/stdin.output 2>&1

if [ ! -f $srcdir/AUTHORS ]; then
   echo "AUTHORS file does not exists! Test Failed!"
   exit 1
fi

check_test stdin