Mercurial > hg > audiostuff
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 3:c6c5a16ce2f2 | 4:26cd8f1ef0b1 |
|---|---|
| 1 #!/bin/bash | |
| 2 # | |
| 3 # spandsp fax tests | |
| 4 # | |
| 5 # This program is free software; you can redistribute it and/or modify | |
| 6 # it under the terms of the GNU Lesser General Public License version 2.1, | |
| 7 # as published by the Free Software Foundation. | |
| 8 # | |
| 9 # This program is distributed in the hope that it will be useful, | |
| 10 # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 12 # GNU General Public License for more details. | |
| 13 # | |
| 14 # You should have received a copy of the GNU Lesser General Public | |
| 15 # License along with this program; if not, write to the Free Software | |
| 16 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | |
| 17 # | |
| 18 # $Id: fax_tests.sh,v 1.5 2008/03/30 18:33:31 steveu Exp $ | |
| 19 # | |
| 20 | |
| 21 run_fax_test() | |
| 22 { | |
| 23 rm -f fax_tests_1.tif | |
| 24 echo -i ${FILE} ${OPTS} | |
| 25 ./fax_tests -i ${FILE} ${OPTS} >xyzzy 2>xyzzy2 | |
| 26 RETVAL=$? | |
| 27 if [ $RETVAL != 0 ] | |
| 28 then | |
| 29 echo fax_tests failed! | |
| 30 exit $RETVAL | |
| 31 fi | |
| 32 # Now use tiffcmp to check the results. It will return non-zero if any page images differ. The -t | |
| 33 # option means the normal differences in tags will be ignored. | |
| 34 tiffcmp -t ${FILE} fax_tests_1.tif #>/dev/null | |
| 35 RETVAL=$? | |
| 36 if [ $RETVAL != 0 ] | |
| 37 then | |
| 38 echo fax_tests failed! | |
| 39 exit $RETVAL | |
| 40 fi | |
| 41 rm -f fax_tests_1.tif | |
| 42 echo tested ${FILE} | |
| 43 } | |
| 44 | |
| 45 OPTS="-e" | |
| 46 | |
| 47 FILE="../itutests/fax/R8_385_A4.tif" | |
| 48 run_fax_test | |
| 49 | |
| 50 FILE="../itutests/fax/R8_385_B4.tif" | |
| 51 run_fax_test | |
| 52 | |
| 53 FILE="../itutests/fax/R8_385_A3.tif" | |
| 54 run_fax_test | |
| 55 | |
| 56 | |
| 57 FILE="../itutests/fax/R8_77_A4.tif" | |
| 58 run_fax_test | |
| 59 | |
| 60 FILE="../itutests/fax/R8_77_B4.tif" | |
| 61 run_fax_test | |
| 62 | |
| 63 FILE="../itutests/fax/R8_77_A3.tif" | |
| 64 run_fax_test | |
| 65 | |
| 66 | |
| 67 FILE="../itutests/fax/R8_154_A4.tif" | |
| 68 run_fax_test | |
| 69 | |
| 70 FILE="../itutests/fax/R8_154_B4.tif" | |
| 71 run_fax_test | |
| 72 | |
| 73 FILE="../itutests/fax/R8_154_A3.tif" | |
| 74 run_fax_test | |
| 75 | |
| 76 | |
| 77 FILE="../itutests/fax/R300_300_A4.tif" | |
| 78 run_fax_test | |
| 79 | |
| 80 FILE="../itutests/fax/R300_300_B4.tif" | |
| 81 run_fax_test | |
| 82 | |
| 83 FILE="../itutests/fax/R300_300_A3.tif" | |
| 84 run_fax_test | |
| 85 | |
| 86 | |
| 87 FILE="../itutests/fax/R300_600_A4.tif" | |
| 88 run_fax_test | |
| 89 | |
| 90 FILE="../itutests/fax/R300_600_B4.tif" | |
| 91 run_fax_test | |
| 92 | |
| 93 FILE="../itutests/fax/R300_600_A3.tif" | |
| 94 run_fax_test | |
| 95 | |
| 96 | |
| 97 FILE="../itutests/fax/R16_154_A4.tif" | |
| 98 run_fax_test | |
| 99 | |
| 100 FILE="../itutests/fax/R16_154_B4.tif" | |
| 101 run_fax_test | |
| 102 | |
| 103 FILE="../itutests/fax/R16_154_A3.tif" | |
| 104 run_fax_test | |
| 105 | |
| 106 | |
| 107 FILE="../itutests/fax/R16_800_A4.tif" | |
| 108 run_fax_test | |
| 109 | |
| 110 FILE="../itutests/fax/R16_800_B4.tif" | |
| 111 run_fax_test | |
| 112 | |
| 113 FILE="../itutests/fax/R16_800_A3.tif" | |
| 114 run_fax_test | |
| 115 | |
| 116 | |
| 117 FILE="../itutests/fax/R600_600_A4.tif" | |
| 118 run_fax_test | |
| 119 | |
| 120 FILE="../itutests/fax/R600_600_B4.tif" | |
| 121 run_fax_test | |
| 122 | |
| 123 FILE="../itutests/fax/R600_600_A3.tif" | |
| 124 run_fax_test | |
| 125 | |
| 126 | |
| 127 FILE="../itutests/fax/R600_1200_A4.tif" | |
| 128 run_fax_test | |
| 129 | |
| 130 FILE="../itutests/fax/R600_1200_B4.tif" | |
| 131 run_fax_test | |
| 132 | |
| 133 FILE="../itutests/fax/R600_1200_A3.tif" | |
| 134 run_fax_test | |
| 135 | |
| 136 | |
| 137 FILE="../itutests/fax/R1200_1200_A4.tif" | |
| 138 run_fax_test | |
| 139 | |
| 140 FILE="../itutests/fax/R1200_1200_B4.tif" | |
| 141 run_fax_test | |
| 142 | |
| 143 FILE="../itutests/fax/R1200_1200_A3.tif" | |
| 144 run_fax_test | |
| 145 | |
| 146 | |
| 147 OPTS="" | |
| 148 | |
| 149 FILE="../itutests/fax/R8_385_A4.tif" | |
| 150 run_fax_test | |
| 151 | |
| 152 FILE="../itutests/fax/R8_385_B4.tif" | |
| 153 run_fax_test | |
| 154 | |
| 155 FILE="../itutests/fax/R8_385_A3.tif" | |
| 156 run_fax_test | |
| 157 | |
| 158 | |
| 159 FILE="../itutests/fax/R8_77_A4.tif" | |
| 160 run_fax_test | |
| 161 | |
| 162 FILE="../itutests/fax/R8_77_B4.tif" | |
| 163 run_fax_test | |
| 164 | |
| 165 FILE="../itutests/fax/R8_77_A3.tif" | |
| 166 run_fax_test | |
| 167 | |
| 168 | |
| 169 FILE="../itutests/fax/R8_154_A4.tif" | |
| 170 run_fax_test | |
| 171 | |
| 172 FILE="../itutests/fax/R8_154_B4.tif" | |
| 173 run_fax_test | |
| 174 | |
| 175 FILE="../itutests/fax/R8_154_A3.tif" | |
| 176 run_fax_test | |
| 177 | |
| 178 | |
| 179 FILE="../itutests/fax/R16_385_A4.tif" | |
| 180 #run_fax_test | |
| 181 | |
| 182 FILE="../itutests/fax/R16_385_B4.tif" | |
| 183 #run_fax_test | |
| 184 | |
| 185 FILE="../itutests/fax/R16_385_A3.tif" | |
| 186 #run_fax_test | |
| 187 | |
| 188 | |
| 189 FILE="../itutests/fax/R16_77_A4.tif" | |
| 190 #run_fax_test | |
| 191 | |
| 192 FILE="../itutests/fax/R16_77_B4.tif" | |
| 193 #run_fax_test | |
| 194 | |
| 195 FILE="../itutests/fax/R16_77_A3.tif" | |
| 196 #run_fax_test | |
| 197 | |
| 198 | |
| 199 FILE="../itutests/fax/R16_154_A4.tif" | |
| 200 run_fax_test | |
| 201 | |
| 202 FILE="../itutests/fax/R16_154_B4.tif" | |
| 203 run_fax_test | |
| 204 | |
| 205 FILE="../itutests/fax/R16_154_A3.tif" | |
| 206 run_fax_test |
