cantera/test_problems/pureFluidTest/runtest
Harry Moffat 581de52fbe Test Suite Update
-> Added a pureFluidTest problem that only gets carried out if
     the WIT_PURE_FLUIDS conditional compile takes place.
  -> added more to testWaterTP, so that it queries the unstable
     water region up to the spinodal curve.
2007-03-14 15:17:17 +00:00

33 lines
818 B
Bash
Executable file

#!/bin/sh
#
#
temp_success="1"
/bin/rm -f output.txt outputa.txt
testName=pureFluidTest_Water
#################################################################
#
#################################################################
CANTERA_DATA=${CANTERA_DATA:=../../../data/inputs}; export CANTERA_DATA
CANTERA_BIN=${CANTERA_BIN:=../../../bin}
./testPureWater > output.txt
retnStat=$?
if [ $retnStat != "0" ]
then
temp_success="0"
echo "$testName returned with bad status, $retnStat, check output"
fi
$CANTERA_BIN/exp3to2.sh output.txt > outputa.txt
diff -w outputa.txt output_blessed.txt > diff_test.out
retnStat=$?
if [ $retnStat = "0" ]
then
echo "successful diff comparison on $testName test"
else
echo "unsuccessful diff comparison on $testName test"
echo "FAILED" > csvCode.txt
temp_success="0"
fi