Imported Upstream version 4.6.0
[debian/atlc] / tests / 8a-design_coupler.bmp.test
1 #! /bin/sh
2 # This is one of a set of test that generate checksums after files are
3 # created, in this case the program design_coupler is run and its 
4 # output compared to what is expected. Since design_coupler creates
5 # a text file, the format of which is different between UNIX  (where
6 # a carriage return is used at the end of a line) and Windoze, where both
7 # a carriage return and a line feed are needed, the checksum of the file
8 # will be different on the two systems. Hence any of two checksums are 
9 # acceptable. 
10
11 # The GNU scientific library is needed to use design_coupler, so if it's
12 # not present, this test gets skipped. 
13
14 $top_builddir/src/non_gui/design_coupler -d 20 144 146 > $top_builddir/tmp/results  2> /dev/null
15 MD5SUM=`$top_builddir/tools/src/mymd5sum $top_builddir/tmp/results`
16 # Accept eithe a DOS or UNIX based text file, so accept two checksums. 
17 if [ $MD5SUM = f53d09bdc334c3f0508b4f44e789e216 ] || [ $MD5SUM = aebd9a6d1c1db548d39723edec454640 ] ; then
18   rm $top_builddir/tmp/results
19   echo "PASSED:" $0 >> tests.log 
20   exit 0
21 else
22   echo "FAILED:" $0 >> tests.log 
23   exit 1
24 fi