made the shell script more generic
This commit is contained in:
parent
1049aaa1b3
commit
ee7370dc56
2 changed files with 4 additions and 4 deletions
|
|
@ -87,7 +87,6 @@ int openRankine(int np, void* p) {
|
|||
|
||||
#ifndef CXX_DEMO
|
||||
int main() {
|
||||
|
||||
try {
|
||||
return openRankine(0, 0);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,12 +8,13 @@ testName="rankine"
|
|||
#################################################################
|
||||
#
|
||||
#################################################################
|
||||
CANTERA_DATA=${CANTERA_DATA:=../../data/inputs}; export CANTERA_DATA
|
||||
CANTERA_DATA=${CANTERA_DATA:="../../data/inputs"}
|
||||
export CANTERA_DATA
|
||||
|
||||
CANTERA_BIN=${CANTERA_BIN:=../../bin}
|
||||
./rankine > output.txt
|
||||
retnStat=$?
|
||||
if [ $retnStat != "0" ]
|
||||
if test $retnStat != "0"
|
||||
then
|
||||
temp_success="0"
|
||||
echo "$testName returned with bad status, $retnStat, check output"
|
||||
|
|
@ -21,7 +22,7 @@ fi
|
|||
|
||||
diff -w output.txt output_blessed.txt > diff_test.out
|
||||
retnStat=$?
|
||||
if [ $retnStat = "0" ]
|
||||
if test $retnStat = "0"
|
||||
then
|
||||
echo "successful diff comparison on $testName test"
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue