Commit 78dbf4f0 authored by samuel hanot's avatar samuel hanot

add pass/fail output to test

parent 35780aea
#!/bin/bash
../../recursive_gmconvert.sh -f emd_3368.map -t $(cat cutoff.txt) -n 4 -N 2 -s
../../recursive_gmconvert.sh -f emd_3368.map -t $(cat cutoff.txt) -n 4 -N 4 -s
for f in 1 2 3 4
do
......@@ -8,4 +8,10 @@ do
done > result.txt
result=$(paste result.txt result_check.txt | awk '{checksum+=($1-$4)/$4+($2-$5)/$5+($3-$6)/$6;n+=1} END{print checksum/n>0.01}')
if (( result==0 ))
then
echo 'PASSED'
else
echo 'FAILED'
fi
exit $result
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment