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 40 41 42 43 44 45 46
|
#!/bin/sh
prog=$builddir/verifycast$EXEEXT
if ! $prog -s 64 -S 64 -c 64
then
echo "\tcast function fails when sample size are equal"
retval=1
fi
if ! $prog -s 64 -S 72 -c 64
then
echo "\tcast function fails when sample size are different and"
echo "\t\tchunksize on boundary of ringbuffer sample size"
retval=1
fi
if ! $prog -s 64 -S 72 -c 72
then
echo "\tcast function fails when sample size are different and "
echo "\t\tchunksize on boundary of input buffer sample size"
retval=1
fi
if ! $prog -s 64 -S 72 -c 50
then
echo "\tcast function fails when sample size are different and "
echo "\t\tchunksize not falling on sample boundary"
retval=1
fi
if ! $prog -s 64 -S 72 -c 64 -o 2
then
echo "\tcast function fails when sample size are different and"
echo "\t\tchunksize on boundary of ringbuffer sample size and"
echo "\t\toffset in input buffer"
retval=1
fi
if ! $prog -s 64 -S 72 -c 72 -o 2
then
echo "\tcast function fails when sample size are different and "
echo "\t\tchunksize on boundary of input buffer sample size"
echo "\t\toffset in input buffer"
retval=1
fi
exit $retval
|