Sha256: a7c237c8b2a48b922849e8a7eea3898fb280555ff8a1c38f90a0904fce7843d5

Contents?: true

Size: 709 Bytes

Versions: 4

Compression:

Stored size: 709 Bytes

Contents

#!/bin/sh

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

do_tnef () {
    $bin $1 --debug --list $tnef_file > $$.out 2> $$.err
    cat $$.out $$.err >> $srcdir/maxsize.output
    rm -f $$.out $$.err
    echo >> $srcdir/maxsize.output
}

rm -f maxsize.output
touch maxsize.output

# test the -x option
do_tnef "-x 33"

# test the --maxsize option
do_tnef --maxsize=33

# invalid input
do_tnef --maxsize=foo

# negative input
do_tnef --maxsize=-33

# zero input
do_tnef --maxsize=0

# disallow allocation
do_tnef --maxsize=1024

# allow allocation
do_tnef --maxsize=2048

# borderline cases
do_tnef --maxsize=1464
do_tnef --maxsize=1463
do_tnef --maxsize=1465

check_test maxsize

Version data entries

4 entries across 4 versions & 1 rubygems

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