cantera/test_problems/cathermo/testWaterTP/runtest
Harry Moffat 6545937948 Changed the WaterTP class to WaterSSTP, which now inherits from SingleSpeciesTP,
as it should
Fixed an error in pressure calculation within  WaterSSTP.
Added more function calls to the test problem for WaterSSTP.
2007-03-15 22:56:59 +00:00

33 lines
810 B
Bash
Executable file

#!/bin/sh
#
#
temp_success="1"
/bin/rm -f output.txt outputa.txt
testName=testWaterTP
#################################################################
#
#################################################################
CANTERA_DATA=${CANTERA_DATA:=../../../data/inputs}; export CANTERA_DATA
CANTERA_BIN=${CANTERA_BIN:=../../../bin}
./testWaterSSTP > 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