Imported Upstream version 4.6.0
[debian/atlc] / tests / 11b-verify-checksum-of-created-test-coupler1.Ex.odd.bmp.test
1 #! /bin/sh
2 # There should be a supplied bitmap file test-coupler1.bmp
3 # We will generate all the bitmaps and check they 
4 # are all okay. 
5 if [ "$mpirun" = "yes" ] ; then 
6   mpirun -np 2 $top_builddir/src/non_gui/atlc -S $top_builddir/tmp/test-coupler1.bmp  > /dev/null
7   rm $top_builddir/tmp/test-coupler1.Ex.odd.bmp
8 else
9   $top_builddir/src/non_gui/atlc -S $top_builddir/tmp/test-coupler1.bmp  > /dev/null
10 fi
11 touch $top_builddir/tmp/test-coupler1.Ex.odd.bmp
12 MD5SUM=`$top_builddir/tools/src/mymd5sum $top_builddir/tmp/test-coupler1.Ex.odd.bmp`
13 rm $top_builddir/tmp/test-coupler1.Ex.odd.bmp
14 if [ $MD5SUM != 5309c7bfa4aeb3d2b8bfa211587e59fe ]; then
15   echo "FAILED:" $0  >> tests.log
16   exit 1
17 else 
18   echo "PASSED:" $0 >> tests.log
19   exit 0
20 fi
21