#!/bin/sh . $srcdir/../util.sh bin=$srcdir/../../src/tnef tnef_file=$srcdir/test.tnef dir=$srcdir/test-dir cleanup() { rm -rf $srcdir/test-dir } cleanup mkdir $srcdir/test-dir echo $bin -C $srcdir/test-dir $tnef_file > $srcdir/directory.output $bin -C $srcdir/test-dir $tnef_file >> $srcdir/directory.output 2>&1 if [ ! -f $srcdir/test-dir/AUTHORS ]; then echo "AUTHORS file missing. Test failed." exit 1 fi cleanup mkdir $srcdir/test-dir echo >> directory.output echo $bin --directory $srcdir/test-dir $tnef_file >> $srcdir/directory.output $bin --directory $srcdir/test-dir $tnef_file >> $srcdir/directory.output 2>&1 if [ ! -f $srcdir/test-dir/AUTHORS ]; then echo "AUTHORS file missing. Test failed." exit 1 fi check_test directory cleanup