Imported Upstream version 4.6.0
[debian/atlc] / tests / 9e-create-100-Ohm-201b.bmp.test
1 #! /bin/sh
2
3 # The following creates some of the example bitmaps and checks the 
4 # file lengths are okay. Checking the checksums would be better, 
5 # but I can't easily verify that will be right on a lot of machines
6 # and it is tedious to do. 
7
8 # The following are around 25 Ohm transmission lines. 
9 $top_builddir/src/non_gui/create_bmp_for_symmetrical_stripline 5000 201 101  $top_builddir/tmp/100-Ohm-201b.bmp >/dev/null 2>/dev/null
10 LENGTH=`$top_builddir/tools/src/myfilelength $top_builddir/tmp/100-Ohm-201b.bmp`
11 rm $top_builddir/tmp/100-Ohm-201b.bmp
12 if [ $LENGTH =  3165054 ];   then
13   echo "PASSED:" $0 >> tests.log
14   exit 0
15 else
16   echo "FAILED:" $0  >> tests.log
17   exit 1
18 fi