2 # Check that the inductance per metre calculated from
3 # tests.bmp is the correct value.
4 # .bin files are unchecked, so let removed them.
7 if [ -n "$mpirun_found" ] ; then
8 mpirun -np 2 $top_builddir/src/atlc -s -S $top_builddir/tmp/test.bmp > $top_builddir/tmp/test.txt 2> /dev/null
10 $top_builddir/src/atlc -s -S $top_builddir/tmp/test.bmp > $top_builddir/tmp/test.txt
13 # Check the inductance per metre, which should be in column 12 and
14 # should be 340.8 nH/m
16 Lo=`cat $top_builddir/tmp/test.txt | awk '{print $12}'`
17 Zo=`cat $top_builddir/tmp/test.txt | awk '{print $6}'`
19 if [ -z "$Lo" ] || [ -z "$Zo" ] ; then
23 if [ $Lo = 341.9 ] && [ $Zo = 102.506 ] ; then
24 rm $top_builddir/tmp/test.txt
25 rm $top_builddir/tmp/test.bmp
26 echo "PASSED:" $0 >> tests.log
29 echo "FAILED:" $0 >> tests.log