Imported Upstream version 4.6.0
[debian/atlc] / tests / 5c-check_numeric_data_from_atlc-2conductor.test
1 #! /bin/sh
2 # Check only that atlc can correctly calculate the impedance Zo given a valid bitmap
3 # This does not require that any of the programs create_bmp_for* work. 
4
5 # Delete any files that may be left by mistake
6
7 # There should now be no coax2* files, except $top_srcdir/examples/coax2.bmp
8 rm -f $top_builddir/tmp/coax2.*
9 cp $top_srcdir/examples/coax2.bmp $top_builddir/tmp
10
11 # Add the -S and -s options together to prevent all ( .bmp or .bin files ) being created. 
12 if [ "$mpirun_found" = "yes" ] ; then
13   Zo=`mpirun -np 2 $top_builddir/src/non_gui/atlc -s -S $top_builddir/tmp/coax2.bmp | awk '{print $6}'`
14 else
15   Zo=`$top_builddir/src/non_gui/atlc -s -S $top_builddir/tmp/coax2.bmp | awk '{print $6}'`
16 fi
17
18 if [ $Zo != 70.199 ] ; then
19   echo "FAILED:" $0 >> tests.log 
20   exit 1
21 fi  
22
23 rm -f  $top_builddir/tmp/coax2.bmp
24 echo "PASSED:" $0 >> tests.log 
25 exit 0