3 # This is one of a set of test that generate checksums after files are
4 # created. Generally a bitmap if first produced by a program such as sym_strip,
5 # rect_in_rect, rect_cen_in_rect, circ_in_circ, circ_in_rect,
6 # generate_coupler_bitmap etc.
8 # In a few cases, the checksum is performed on a file that is
9 # supplied with the package, rather than one that is
12 # The checksum of the bitmaps generated is compared to what is known to be
13 # the correct checksum using a program 'mymd5sum' which is a cut-down version of
14 # the normal md5 or md5sum command. It does not print the filename
15 # to stdout, as the normal version does.
17 # I have tried to test these checksums on as many systems as possible and
18 # know all tests pass on all systems I have checked this on. Typically the
19 # systems have been mainly Suns, but running various operating systems.
20 # such as Solaris 9, NetBSD, Solaris 2.5, Linux but also a PC running
21 # rehat Linux and a Dec Alpha. Any failure probably indicates a
22 # program bug, so PLEASE PLEASE let me know about it!!
23 # Dr. David Kirkby, drkirkby@ntlworld.com
25 $top_builddir/src/non_gui/create_bmp_for_rect_cen_in_rect 267 150 140 50 1 $top_builddir/tmp/central.bmp >/dev/null 2>/dev/null
26 MD5SUM=`$top_builddir/tools/src/mymd5sum $top_builddir/tmp/central.bmp`
27 rm $top_builddir/tmp/central.bmp
28 if [ $MD5SUM != e9d0da5766743faaa772bf15ad383716 ]; then
29 echo "FAILED:" $0 >> tests.log
32 echo "PASSED:" $0 >> tests.log