Skip to content

Commit

Permalink
Update scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
eacfd committed Apr 6, 2022
1 parent 70f6006 commit 749f6da
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
12 changes: 6 additions & 6 deletions Tests/runTests
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ echo $'===== Running All Tests =====\n'> summary.log
echo $'===== Running All Tests =====\n'> total.log

cd unit/testExpiredFunction/
testExpiredFunction &>> ../../total.log
testExpiredFunction >> ../../total.log 2>&1
rc=$?
if [ "$rc" = "0" ]; then
echo $'===== testExpiredFunction OK =====\n' >> ../../summary.log
Expand All @@ -19,7 +19,7 @@ else
echo $'===== testExpiredFunction FAILED =====\n' >> ../../summary.log
fi
cd ../testValueAt/
testValueAt &>> ../../total.log
testValueAt >> ../../total.log 2>&1
rc=$?
if [ "$rc" = "0" ]; then
echo $'===== testValueAt OK =====\n' >> ../../summary.log
Expand All @@ -28,7 +28,7 @@ else
echo $'===== testValueAt FAILED =====\n' >> ../../summary.log
fi
cd ../../integration/testFormulationFunctions/
testFormulationFunction &>> ../../total.log
testFormulationFunction >> ../../total.log 2>&1
rc=$?
if [ "$rc" = "0" ]; then
echo $'===== testFormulationFunctions OK =====\n' >> ../../summary.log
Expand All @@ -37,7 +37,7 @@ else
echo $'===== testFormulationFunctions FAILED =====\n' >> ../../summary.log
fi
cd ../../integration/testMonopoleSource/
testMonopoleSource &>> ../../total.log
testMonopoleSource >> ../../total.log 2>&1
rc=$?
if [ "$rc" = "0" ]; then
echo $'===== testMonopoleSource OK =====\n' >> ../../summary.log
Expand All @@ -46,7 +46,7 @@ else
echo $'===== testMonopoleSource FAILED =====\n' >> ../../summary.log
fi
cd ../../integration/testDipoleSource/
testDipoleSource &>> ../../total.log
testDipoleSource >> ../../total.log 2>&1
rc=$?
if [ "$rc" = "0" ]; then
echo $'===== testDipoleSource OK =====\n' >> ../../summary.log
Expand All @@ -61,4 +61,4 @@ else
echo $errors > failed.txt
fi

#------------------------------------------------------------------------------
#-----------------------------------------------------------
8 changes: 4 additions & 4 deletions Tests/system/testDipole3D/Allrun
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,23 @@ if [ -d "0.orig" ]; then
rm -rf 0
cp -rf 0.orig/ 0/
fi
blockMesh &>> total.log
blockMesh >> total.log 2>&1
rc=$?
if [ "$rc" = "0" ]; then
echo $'===== blockMesh OK =====\n' >> total.log
else
errors=$errors+1
echo $'===== blockMesh FAILED =====\n' >> total.log
fi
snappyHexMesh -overwrite &>> total.log
snappyHexMesh -overwrite >> total.log 2>&1
rc=$?
if [ "$rc" = "0" ]; then
echo $'===== SnappyHexMesh OK =====\n' >> total.log
else
errors=$errors+1
echo $'===== SnappyHexMesh FAILED =====\n' >> total.log
fi
$(getApplication)&>> total.log
$(getApplication) >> total.log 2>&1
rc=$?
if [ "$rc" = "0" ]; then
echo $'===== runApplication OK =====\n' >> total.log
Expand All @@ -45,4 +45,4 @@ else
fi


#------------------------------------------------------------------------------
#------------------------------------------------------------------
8 changes: 4 additions & 4 deletions Tests/system/testMonopole3D/Allrun
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,23 @@ if [ -d "0.orig" ]; then
rm -rf 0
cp -rf 0.orig/ 0/
fi
blockMesh &>> total.log
blockMesh >> total.log 2>&1
rc=$?
if [ "$rc" = "0" ]; then
echo $'===== blockMesh OK =====\n' >> total.log
else
errors=$errors+1
echo $'===== blockMesh FAILED =====\n' >> total.log
fi
snappyHexMesh -overwrite &>> total.log
snappyHexMesh -overwrite >> total.log 2>&1
rc=$?
if [ "$rc" = "0" ]; then
echo $'===== SnappyHexMesh OK =====\n' >> total.log
else
errors=$errors+1
echo $'===== SnappyHexMesh FAILED =====\n' >> total.log
fi
$(getApplication)&>> total.log
$(getApplication) >> total.log 2>&1
rc=$?
if [ "$rc" = "0" ]; then
echo $'===== runApplication OK =====\n' >> total.log
Expand All @@ -45,4 +45,4 @@ else
fi


#------------------------------------------------------------------------------
#------------------------------------------------------------------

0 comments on commit 749f6da

Please sign in to comment.