cantera/test_problems/negATest/runtest
Ray Speth 99ededf824 Fixed conflict between copies of noxNeg.xml for negATest
The test should run using noxNeg.cti or noxNeg_blessed.xml. In the former case,
a comparision can be made between the resulting noxNeg.xml and
noxNeg_blessed.xml.
2012-07-18 17:37:09 +00:00

36 lines
842 B
Bash
Executable file

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