comparison spandsp-0.0.3/spandsp-0.0.3/tests/fax_tests.sh @ 5:f762bf195c4b

import spandsp-0.0.3
author Peter Meerwald <pmeerw@cosy.sbg.ac.at>
date Fri, 25 Jun 2010 16:00:21 +0200
parents
children
comparison
equal deleted inserted replaced
4:26cd8f1ef0b1 5:f762bf195c4b
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 General Public License version 2, as
7 # 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 General Public License
15 # 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.2 2006/10/24 13:49:53 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/R16_385_A4.tif"
51 run_fax_test
52
53 FILE="../itutests/fax/R8_77_A4.tif"
54 run_fax_test
55
56 FILE="../itutests/fax/R16_77_A4.tif"
57 run_fax_test
58
59 FILE="../itutests/fax/R8_154_A4.tif"
60 run_fax_test
61
62 FILE="../itutests/fax/R16_154_A4.tif"
63 run_fax_test
64
65 FILE="../itutests/fax/R8_385_B4.tif"
66 run_fax_test
67
68 FILE="../itutests/fax/R16_385_B4.tif"
69 run_fax_test
70
71 FILE="../itutests/fax/R8_77_B4.tif"
72 run_fax_test
73
74 FILE="../itutests/fax/R16_77_B4.tif"
75 run_fax_test
76
77 FILE="../itutests/fax/R8_154_B4.tif"
78 run_fax_test
79
80 FILE="../itutests/fax/R16_154_B4.tif"
81 run_fax_test
82
83 FILE="../itutests/fax/R8_385_A3.tif"
84 run_fax_test
85
86 FILE="../itutests/fax/R16_385_A3.tif"
87 run_fax_test
88
89 FILE="../itutests/fax/R8_77_A3.tif"
90 run_fax_test
91
92 FILE="../itutests/fax/R16_77_A3.tif"
93 run_fax_test
94
95 FILE="../itutests/fax/R8_154_A3.tif"
96 run_fax_test
97
98 FILE="../itutests/fax/R16_154_A3.tif"
99 run_fax_test
100
101 OPTS=""
102
103 FILE="../itutests/fax/R8_385_A4.tif"
104 run_fax_test
105
106 FILE="../itutests/fax/R16_385_A4.tif"
107 run_fax_test
108
109 FILE="../itutests/fax/R8_77_A4.tif"
110 run_fax_test
111
112 FILE="../itutests/fax/R16_77_A4.tif"
113 run_fax_test
114
115 FILE="../itutests/fax/R8_154_A4.tif"
116 run_fax_test
117
118 FILE="../itutests/fax/R16_154_A4.tif"
119 run_fax_test
120
121 FILE="../itutests/fax/R8_385_B4.tif"
122 run_fax_test
123
124 FILE="../itutests/fax/R16_385_B4.tif"
125 run_fax_test
126
127 FILE="../itutests/fax/R8_77_B4.tif"
128 run_fax_test
129
130 FILE="../itutests/fax/R16_77_B4.tif"
131 run_fax_test
132
133 FILE="../itutests/fax/R8_154_B4.tif"
134 run_fax_test
135
136 FILE="../itutests/fax/R16_154_B4.tif"
137 run_fax_test
138
139 FILE="../itutests/fax/R8_385_A3.tif"
140 run_fax_test
141
142 FILE="../itutests/fax/R16_385_A3.tif"
143 run_fax_test
144
145 FILE="../itutests/fax/R8_77_A3.tif"
146 run_fax_test
147
148 FILE="../itutests/fax/R16_77_A3.tif"
149 run_fax_test
150
151 FILE="../itutests/fax/R8_154_A3.tif"
152 run_fax_test
153
154 FILE="../itutests/fax/R16_154_A3.tif"
155 run_fax_test

Repositories maintained by Peter Meerwald, pmeerw@pmeerw.net.