Skip to content

Commit

Permalink
fix test script
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrienLeGuillou committed Oct 18, 2024
1 parent 3b922c9 commit d026b6b
Showing 1 changed file with 17 additions and 8 deletions.
25 changes: 17 additions & 8 deletions test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,24 @@ echo "EpiModel Gallery Testing:" $dl "Directories"
echo "---------------------------------------------"

for i in $d; do
echo -n $i "... "
SECONDS=0
if Rscript "$i/model.R" "options(error = function() q('no', 1, FALSE))" >& /dev/null
then
echo "OK" "($SECONDS seconds)"
else
echo "Failed"
fi
if [[ "$i" == "renv/" ]]; then
continue
fi

echo -n $i "... "
SECONDS=0
if Rscript "$i/model.R" "options(error = function() q('no', 1, FALSE))" >& /dev/null
then
echo "OK" "($SECONDS seconds)"
else
echo "Failed"
fi
cd "$i"
rm -f *.pdf
cd ..
done

rm -f *.pdf

echo "#############################################"
echo " "

0 comments on commit d026b6b

Please sign in to comment.