Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 24 additions & 10 deletions tests/integrate/Autotest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -110,16 +110,30 @@ check_out(){
break
else
if [ $(echo "sqrt($deviation*$deviation) < $threshold"|bc) = 0 ]; then
if [[ $key == "totalforceref" && $(echo "sqrt($deviation*$deviation) < $force_threshold"|bc) = 0 ]]; then
echo -e "[WARNING ] "\
"$key cal=$cal ref=$ref deviation=$deviation"
let failed++
failed_case_list+=$dir'\n'
elif [[ $key == "totalstressref" && $(echo "sqrt($deviation*$deviation) < $stress_threshold"|bc) = 0 ]]; then
echo -e "[WARNING ] "\
"$key cal=$cal ref=$ref deviation=$deviation"
let failed++
failed_case_list+=$dir'\n'
if [ $key == "totalforceref" ]; then
if [ $(echo "sqrt($deviation*$deviation) < $force_threshold"|bc) = 0 ]; then
echo -e "[WARNING ] "\
"$key cal=$cal ref=$ref deviation=$deviation"
let failed++
failed_case_list+=$dir'\n'
else
#echo "$key cal=$cal ref=$ref deviation=$deviation"
#echo "[ PASS ] $key"
echo -e "\e[0;32m[ OK ] \e[0m $key"
fi

elif [ $key == "totalstressref" ]; then
if [ $(echo "sqrt($deviation*$deviation) < $stress_threshold"|bc) = 0 ]; then
echo -e "[WARNING ] "\
"$key cal=$cal ref=$ref deviation=$deviation"
let failed++
failed_case_list+=$dir'\n'
else
#echo "$key cal=$cal ref=$ref deviation=$deviation"
#echo "[ PASS ] $key"
echo -e "\e[0;32m[ OK ] \e[0m $key"
fi

else
echo -e "[WARNING ] "\
"$key cal=$cal ref=$ref deviation=$deviation"
Expand Down