Imported Upstream version 4.6.0
[debian/atlc] / tests / 2h-create_bmp_for_rect_in_rect.V.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 sym_strip, 
4 # rect_in_rect, rect_cen_in_rect, circ_in_circ, circ_in_rect, 
5 # generate_coupler_bitmap etc.
6
7 # In a few cases, the checksum is performed on a file that is 
8 # supplied with the package, rather than one that is 
9 # generated. 
10
11 # The checksum of the bitmaps generated is compared to what is known to be 
12 # the correct checksum using a program 'mymd5sum' which is a cut-down version of
13 # the normal md5 or md5sum command.  It does not print the filename 
14 # to stdout, as the normal version does. 
15
16 # I have tried to test these checksums on as many systems as possible and 
17 # know all tests pass on all systems I have checked this on. Typically the
18 # systems have been mainly Suns, but running various operating systems. 
19 # such as Solaris 9, NetBSD, Solaris 2.5, Linux but also a PC running
20 # rehat Linux and a Dec Alpha. Any failure probably indicates a 
21 # program bug, so PLEASE PLEASE let me know about it!!
22 # Dr. David Kirkby, drkirkby@ntlworld.com
23
24 touch $top_builddir/tmp/test_rect_in_rect.V.bmp
25 MD5SUM=`$top_builddir/tools/src/mymd5sum $top_builddir/tmp/test_rect_in_rect.V.bmp`
26 if [ $MD5SUM = b2a39d973d22e88526bd780d383f6f88 ]; then
27   rm -f $top_builddir/tmp/test_rect_in_rect.V.bmp
28   echo "PASSED:" $0 >> tests.log
29   exit 0
30 else
31   exit 1
32 fi