Imported Upstream version 4.6.0
[debian/atlc] / tests / 1b-create_bmp_for_symmetrical_stripline.txt.test
1 # !/bin/sh
2 # This test runs atlc, but if the package was configured with the --with-mpi
3 # or --with-mpe options, then atlc should not be called directly, but via
4 # the mpirun script, which is part of the MPICH distribution. 
5
6 if [ -n "$mpirun_found" ] ; then
7   Zo=`mpirun -np 2 $top_builddir/src/non_gui/atlc $top_builddir/tmp/test_sym_strip.bmp | awk '{print $6}'` 2> /dev/null
8 else
9   Zo=`$top_builddir/src/non_gui/atlc $top_builddir/tmp/test_sym_strip.bmp | awk '{print $6}'`
10 fi
11
12 # Check the impedance Zo which should be 122.43 Ohms
13 if [ "x$Zo" = "x122.792" ] ; then
14   echo "PASSED:" $0 >> tests.log
15   exit 0
16 else
17   echo "FAILED:" $0 Zo=$Zo >> tests.log
18   exit 1
19 fi