Sha256: 2c3f8fd492a7639a137f08c2712f77cd3173b1067a7fc9839732cc0699efaa7e

Contents?: true

Size: 1.14 KB

Versions: 4

Compression:

Stored size: 1.14 KB

Contents

#!/bin/sh 

. $srcdir/../util.sh

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

rm -f $srcdir/AUTHORS $srcdir/AUTHORS.1 $srcdir/AUTHORS.2

# extract the AUTHORS file
$bin $tnef_file > /dev/null 2>&1
if [ ! -f $srcdir/AUTHORS ]; then
   echo "AUTHORS file is missing.  Test Failed!"
   exit 1
fi

# do the test
echo $bin $tnef_file > $srcdir/overwrite.output
$bin $tnef_file >> $srcdir/overwrite.output 2>&1
echo >> $srcdir/overwrite.output
echo $bin --overwrite $tnef_file >> $srcdir/overwrite.output
$bin --overwrite $tnef_file >> $srcdir/overwrite.output
echo >> $srcdir/overwrite.output
echo $bin --number-backups $tnef_file >> $srcdir/overwrite.output
$bin --number-backups $tnef_file >> $srcdir/overwrite.output
if [ ! -f $srcdir/AUTHORS.1 ]; then
   echo "AUTHORS.1 file is missing.  Test Failed!"
   exit 1
fi
echo >> $srcdir/overwrite.output
echo $bin --number-backups $tnef_file >> $srcdir/overwrite.output
$bin --number-backups $tnef_file >> $srcdir/overwrite.output
if [ ! -f $srcdir/AUTHORS.2 ]; then
   echo "AUTHORS.2 file is missing.  Test Failed!"
   exit 1
fi

rm -f $srcdir/AUTHORS $srcdir/AUTHORS.1 $srcdir/AUTHORS.2

check_test overwrite

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
tnef-1.0.2 ext/tnef/tests/cmdline/overwrite.test
tnef-1.0.1 ext/tnef/tests/cmdline/overwrite.test
tnef-1.0.0 ext/tnef/tests/cmdline/overwrite.test
tnef-0.0.1 ext/tnef/tests/cmdline/overwrite.test