Fixed an error in IdealMolalSoln -> density wasn't beeing recalculated.
Updated the test problem with the fix.
Worked CANTERA_DEBUG_MODE into the Makefiles. It wasn't being used.
Split the multiproblem DH_graph_1 test into multiple directories, one per test
Worked on getting all of the test problems to have the same look, feel, and printout.
40 lines
1 KiB
Bash
Executable file
40 lines
1 KiB
Bash
Executable file
#!/bin/sh
|
|
#
|
|
# run_test
|
|
#
|
|
##########################################################################
|
|
# A couple of validity checks
|
|
if test ! $# -eq 0 ; then
|
|
echo 'usage: runtest'
|
|
echo ' '
|
|
exit -1
|
|
fi
|
|
|
|
temp_success="0"
|
|
/bin/rm -f output.txt outputa.txt
|
|
##########################################################################
|
|
CANTERA_DATA=${CANTERA_DATA:=../../../data/inputs}; export CANTERA_DATA
|
|
|
|
CANTERA_BIN=${CANTERA_BIN:=../../../bin}
|
|
|
|
prog=DH_graph_1
|
|
if test ! -x $prog ; then
|
|
echo $prog ' does not exist'
|
|
exit -1
|
|
fi
|
|
|
|
##########################################################################
|
|
/bin/rm -f test.out test.diff DH_NaCl_acommon.csv
|
|
|
|
$prog DH_NaCl_acommon.xml > DH_NaCl_acommon.csv
|
|
retnStat=$?
|
|
diff DH_NaCl_acommon.csv DH_NaCl_acommon_blessed.csv > output.txt
|
|
zres=$?
|
|
if test "$zres" = "0" -a "$retnStat" = "0"; then
|
|
echo "successful diff comparison on $prog acommon test"
|
|
else
|
|
echo "unsuccessful diff comparison on $prog acommon test"
|
|
echo "FAILED" > csvCode.txt
|
|
temp_success="0"
|
|
fi
|
|
|