File: basic.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 (39 lines) | stat: -rwxr-xr-x 720 bytes parent folder | download | duplicates (11)
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
35
36
37
38
39
#!/bin/sh

. $srcdir/../util.sh

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

cleanup () {
    rm -f $srcdir/AUTHORS
}

cleanup

# default argument
echo $bin $tnef_file > $srcdir/basic.output 
$bin $tnef_file >> $srcdir/basic.output 2>&1
check_file $srcdir/AUTHORS
cleanup

# stdin
echo $bin \< $tnef_file >> $srcdir/basic.output
$bin < $tnef_file >> $srcdir/basic.output 2>&1
check_file $srcdir/AUTHORS
cleanup

# -f
echo $bin -f $tnef_file >> $srcdir/basic.output
$bin -f $tnef_file >> $srcdir/basic.output 2>&1
check_file $srcdir/AUTHORS
cleanup

# --file
echo $bin -f $tnef_file >> $srcdir/basic.output
$bin -f $tnef_file >> $srcdir/basic.output 2>&1
check_file $srcdir/AUTHORS
cleanup

check_test basic