[cantera]: adding error codes to runtest scripts
This commit is contained in:
parent
d84133fc9f
commit
e0eeb3825f
6 changed files with 12 additions and 0 deletions
|
|
@ -46,6 +46,8 @@ fi
|
|||
##########################################################################
|
||||
if test $temp_success = "0" ; then
|
||||
echo "PASSED" > csvCode.txt
|
||||
return 0
|
||||
else
|
||||
echo "FAILED" > csvCode.txt
|
||||
return 1
|
||||
fi
|
||||
|
|
|
|||
|
|
@ -32,9 +32,11 @@ diff DH_NaCl_NM.csv DH_NaCl_NM_blessed.csv > output.txt
|
|||
zres=$?
|
||||
if test "$zres" = "0" -a "$retnStat" = "0"; then
|
||||
echo "successful diff comparison on $prog NM test"
|
||||
return 0
|
||||
else
|
||||
echo "unsuccessful diff comparison on $prog NM test"
|
||||
echo "FAILED" > csvCode.txt
|
||||
temp_success="0"
|
||||
return 1
|
||||
fi
|
||||
|
||||
|
|
|
|||
|
|
@ -32,9 +32,11 @@ diff DH_NaCl_Pitzer.csv DH_NaCl_Pitzer_blessed.csv > output.txt
|
|||
zres=$?
|
||||
if test "$zres" = "0" -a "$retnStat" = "0"; then
|
||||
echo "successful diff comparison on $prog Pitzer test"
|
||||
return 0
|
||||
else
|
||||
echo "unsuccessful diff comparison on $prog Pitzer test"
|
||||
echo "FAILED" > csvCode.txt
|
||||
temp_success="0"
|
||||
return 1
|
||||
fi
|
||||
|
||||
|
|
|
|||
|
|
@ -32,9 +32,11 @@ 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"
|
||||
return 0
|
||||
else
|
||||
echo "unsuccessful diff comparison on $prog _acommon test"
|
||||
echo "FAILED" > csvCode.txt
|
||||
temp_success="0"
|
||||
return 1
|
||||
fi
|
||||
|
||||
|
|
|
|||
|
|
@ -32,9 +32,11 @@ diff DH_NaCl_bdotak.csv DH_NaCl_bdotak_blessed.csv > output.txt
|
|||
zres=$?
|
||||
if test "$zres" = "0" -a "$retnStat" = "0"; then
|
||||
echo "successful diff comparison on $prog bdotak test"
|
||||
return 0
|
||||
else
|
||||
echo "unsuccessful diff comparison on $prog bdotak test"
|
||||
echo "FAILED" > csvCode.txt
|
||||
temp_success="0"
|
||||
return 1
|
||||
fi
|
||||
|
||||
|
|
|
|||
|
|
@ -34,9 +34,11 @@ retnStat=$?
|
|||
if [ $retnStat = "0" ]
|
||||
then
|
||||
echo "successful diff comparison on $prog test"
|
||||
return 0
|
||||
else
|
||||
echo "unsuccessful diff comparison on $prog test"
|
||||
echo "FAILED" > csvCode.txt
|
||||
temp_success="0"
|
||||
return 1
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue