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 create_bmp_for_symmetrical_stripline,
5 # create_bmp_for_create_bmp_for_rect_in_rect,
6 # create_bmp_for_rect_cen_in_rect, create_bmp_for_circ_in_circ, create_bmp_for_circ_in_rect,
7 # create_bmp_for_stripline_coupler etc.
9 # The checksum of the bitmap generated is compared to what is known to be
10 # the correct checksum using a program 'mymd5sum' which is a cut-down version of
11 # the GNU program 'sum'. Using my own version avoids the need for the user to
12 # have the GNU textutils installed and avoids the possibility that they have
13 # 'textutils' installed but have another version of 'sum' (such as the one
14 # supplied by Sun with Solaris, which generates a different checksum.
16 # atlc is then run, generating a lot of files, including those with the
17 # extension .bmp, .txt and .bin. The checksum of the .bmp's and part of
18 # the .txt file are checked. The .bin's are not, since they will be
19 # dependent on the whether the machine is Big Endian (like Suns) or
20 # Little Endian like PCs. It will also be too dependent on rounding
21 # difference caused by the different FPUs in the different machines.
23 # compute Zo of a bitmap, and compare it to what is the known value
30 touch $top_builddir/tmp/test_stripline_coupler.bmp
31 if [ "x$mpirun_found" = "xyes" ] ; then
32 mpirun -np 2 Zodd=`$top_builddir/src/non_gui/atlc -S $top_builddir/tmp/test_stripline_coupler.bmp | awk '{print $8}'` 2> /dev/null
34 Zodd=`$top_builddir/src/non_gui/atlc -S $top_builddir/tmp/test_stripline_coupler.bmp | awk '{print $8}'`
37 rm -f $top_builddir/tmp/test_stripline_coupler.bmp
38 if [ "x$Zodd" = "x64.074" ] ; then
39 echo "PASSED:" $0 >> tests.log
42 echo "FAILED:" $0 >> tests.log