]> rtime.felk.cvut.cz Git - hercules2020/kcf.git/blob - print-test-results
Merge remote-tracking branch 'upstream/master' into rotation
[hercules2020/kcf.git] / print-test-results
1 #!/bin/bash
2 set -e
3
4 expected_accuracy=([bag]=0.53 [ball1]=0.70 [car1]=0.35 [book]=0.19)
5
6 for i in "$@"; do
7     [[ "$i" =~ build-(.*)/kcf_vot-(.*)-(.*).log ]]
8     build=${BASH_REMATCH[1]}
9     flags=${BASH_REMATCH[3]}
10     seq=${BASH_REMATCH[2]}
11
12     result=$(grep 'Average accuracy:' $i || :)
13     if [[ "$result" =~ Average\ accuracy:\ ([0-9.]+) ]]; then
14         if [[ $(echo "${BASH_REMATCH[1]} >= ${expected_accuracy[$seq]}"|bc) -eq 1 ]]; then
15             status=ok
16         else
17             status=BAD
18         fi
19     else
20         status=FAILED
21     fi
22     echo ! "$seq;$flags;$build;$result;$status"
23 done | sort | column -t -s";"