Salome HOME
Merge from BR_V5_DEV 16Feb09
[modules/med.git] / src / MEDMEMBinTest / scripts / check_test_porflow_driver
1 #! /bin/sh -f
2
3 outdir="/tmp"
4 if test "z$TMP" != "z" && test -e $TMP; then
5     outdir=$TMP
6 else
7  if test "z$TMPDIR" != "z" && test -e $TMPDIR; then
8     outdir=$TMPDIR
9  fi
10 fi
11
12 initfile=${srcdir}/../../resources/cube.inp
13 xyzfile=${srcdir}/../../resources/cube.xyz
14 cncfile=${srcdir}/../../resources/cube.cnc
15 infile=${outdir}/test_porflow_driver.inp
16
17 cp $initfile $infile
18 cp $xyzfile ${outdir}/cube.xyz
19 cp $cncfile ${outdir}/cube.cnc
20
21 ./test_porflow_driver $infile
22
23 ok=$?
24
25 rm $infile
26 rm ${outdir}/cube.xyz
27 rm ${outdir}/cube.cnc
28 rm ${outdir}/test_porflow_driver.med
29 rm ${outdir}/test_porflow_driver.vtk
30
31 exit $ok