Mercurial > hg > audiostuff
diff spandsp-0.0.6pre17/tests/fax_tests.sh @ 4:26cd8f1ef0b1
import spandsp-0.0.6pre17
author | Peter Meerwald <pmeerw@cosy.sbg.ac.at> |
---|---|
date | Fri, 25 Jun 2010 15:50:58 +0200 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/spandsp-0.0.6pre17/tests/fax_tests.sh Fri Jun 25 15:50:58 2010 +0200 @@ -0,0 +1,206 @@ +#!/bin/bash +# +# spandsp fax tests +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU Lesser General Public License version 2.1, +# as published by the Free Software Foundation. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this program; if not, write to the Free Software +# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +# +# $Id: fax_tests.sh,v 1.5 2008/03/30 18:33:31 steveu Exp $ +# + +run_fax_test() +{ + rm -f fax_tests_1.tif + echo -i ${FILE} ${OPTS} + ./fax_tests -i ${FILE} ${OPTS} >xyzzy 2>xyzzy2 + RETVAL=$? + if [ $RETVAL != 0 ] + then + echo fax_tests failed! + exit $RETVAL + fi + # Now use tiffcmp to check the results. It will return non-zero if any page images differ. The -t + # option means the normal differences in tags will be ignored. + tiffcmp -t ${FILE} fax_tests_1.tif #>/dev/null + RETVAL=$? + if [ $RETVAL != 0 ] + then + echo fax_tests failed! + exit $RETVAL + fi + rm -f fax_tests_1.tif + echo tested ${FILE} +} + +OPTS="-e" + +FILE="../itutests/fax/R8_385_A4.tif" +run_fax_test + +FILE="../itutests/fax/R8_385_B4.tif" +run_fax_test + +FILE="../itutests/fax/R8_385_A3.tif" +run_fax_test + + +FILE="../itutests/fax/R8_77_A4.tif" +run_fax_test + +FILE="../itutests/fax/R8_77_B4.tif" +run_fax_test + +FILE="../itutests/fax/R8_77_A3.tif" +run_fax_test + + +FILE="../itutests/fax/R8_154_A4.tif" +run_fax_test + +FILE="../itutests/fax/R8_154_B4.tif" +run_fax_test + +FILE="../itutests/fax/R8_154_A3.tif" +run_fax_test + + +FILE="../itutests/fax/R300_300_A4.tif" +run_fax_test + +FILE="../itutests/fax/R300_300_B4.tif" +run_fax_test + +FILE="../itutests/fax/R300_300_A3.tif" +run_fax_test + + +FILE="../itutests/fax/R300_600_A4.tif" +run_fax_test + +FILE="../itutests/fax/R300_600_B4.tif" +run_fax_test + +FILE="../itutests/fax/R300_600_A3.tif" +run_fax_test + + +FILE="../itutests/fax/R16_154_A4.tif" +run_fax_test + +FILE="../itutests/fax/R16_154_B4.tif" +run_fax_test + +FILE="../itutests/fax/R16_154_A3.tif" +run_fax_test + + +FILE="../itutests/fax/R16_800_A4.tif" +run_fax_test + +FILE="../itutests/fax/R16_800_B4.tif" +run_fax_test + +FILE="../itutests/fax/R16_800_A3.tif" +run_fax_test + + +FILE="../itutests/fax/R600_600_A4.tif" +run_fax_test + +FILE="../itutests/fax/R600_600_B4.tif" +run_fax_test + +FILE="../itutests/fax/R600_600_A3.tif" +run_fax_test + + +FILE="../itutests/fax/R600_1200_A4.tif" +run_fax_test + +FILE="../itutests/fax/R600_1200_B4.tif" +run_fax_test + +FILE="../itutests/fax/R600_1200_A3.tif" +run_fax_test + + +FILE="../itutests/fax/R1200_1200_A4.tif" +run_fax_test + +FILE="../itutests/fax/R1200_1200_B4.tif" +run_fax_test + +FILE="../itutests/fax/R1200_1200_A3.tif" +run_fax_test + + +OPTS="" + +FILE="../itutests/fax/R8_385_A4.tif" +run_fax_test + +FILE="../itutests/fax/R8_385_B4.tif" +run_fax_test + +FILE="../itutests/fax/R8_385_A3.tif" +run_fax_test + + +FILE="../itutests/fax/R8_77_A4.tif" +run_fax_test + +FILE="../itutests/fax/R8_77_B4.tif" +run_fax_test + +FILE="../itutests/fax/R8_77_A3.tif" +run_fax_test + + +FILE="../itutests/fax/R8_154_A4.tif" +run_fax_test + +FILE="../itutests/fax/R8_154_B4.tif" +run_fax_test + +FILE="../itutests/fax/R8_154_A3.tif" +run_fax_test + + +FILE="../itutests/fax/R16_385_A4.tif" +#run_fax_test + +FILE="../itutests/fax/R16_385_B4.tif" +#run_fax_test + +FILE="../itutests/fax/R16_385_A3.tif" +#run_fax_test + + +FILE="../itutests/fax/R16_77_A4.tif" +#run_fax_test + +FILE="../itutests/fax/R16_77_B4.tif" +#run_fax_test + +FILE="../itutests/fax/R16_77_A3.tif" +#run_fax_test + + +FILE="../itutests/fax/R16_154_A4.tif" +run_fax_test + +FILE="../itutests/fax/R16_154_B4.tif" +run_fax_test + +FILE="../itutests/fax/R16_154_A3.tif" +run_fax_test