Imported Upstream version 4.6.0
[debian/atlc] / tests / 7j-create_bmp_for_stripline_coupler.Ex.even.bmp.test
1 #! /bin/sh
2 # This is one of a set of test that generate checksums after files are
3 # created. Generally a bitmap if first produced by a program such as create_bmp_for_symmetrical_stripline, 
4 # create_bmp_for_create_bmp_for_rect_in_rect, create_bmp_for_rect_cen_in_rect, create_bmp_for_circ_in_circ, create_bmp_for_circ_in_rect, 
5 # create_bmp_for_stripline_coupler etc.
6
7 # The checksum of the bitmap generated is compared to what is known to be 
8 # the correct checksum using a program 'mymd5sum' which is a cut-down version of
9 # the GNU program 'sum'. Using my own version avoids the need for the user to 
10 # have the GNU textutils installed and avoids the possibility that they have
11 # 'textutils' installed but have another version of 'sum' (such as the one 
12 # supplied by Sun with Solaris, which generates a different checksum. 
13
14 # atlc is then run, generating a lot of files, including those with the 
15 # extension .bmp, .txt and .bin. The checksum of the .bmp's and part of
16 # the .txt file are checked. The .bin's are not, since they will be
17 # dependent on the whether the machine is Big Endian (like Suns) or
18 # Little Endian like PCs. It will also be too dependent on rounding
19 # difference caused by the different FPUs in the different machines. 
20
21 # Any failure to generate the correct checksums are noted. 
22
23 # Check the Ex.even file created by running 7a
24 touch $top_builddir/tmp/test_stripline_coupler.Ex.even.bmp
25 MD5SUM=`$top_builddir/tools/src/mymd5sum $top_builddir/tmp/test_stripline_coupler.Ex.even.bmp`
26 if [ $MD5SUM != 4fc55cfc75d375864cd21a0c03df889f ] ; then
27   echo "FAILED:(checksum failure)" $0 >> tests.log
28   exit 1
29 else
30   rm $top_builddir/tmp/test_stripline_coupler.Ex.even.bmp
31   echo "PASSED:" $0 >> tests.log
32   exit 0
33 fi