-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy patheval.sh
executable file
·35 lines (29 loc) · 1.4 KB
/
eval.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/sh
# This script runs our evaluation, generating an output file with numbers.
dune exec runner/runner.exe run tests/borrowck 2>&1 > /dev/null
MATCHES=`jq '.matches | length' tests/borrowck/results.json`
DOESNTMATCH=`jq '.doesntmatch | length' tests/borrowck/results.json`
MISSING=`jq '.missing | length' tests/borrowck/results.json`
TYPEERROR=`jq '.typeerror | length' tests/borrowck/results.json`
REDUCERERROR=`jq '.reducererror | length' tests/borrowck/results.json`
echo "${MATCHES} borrowck MATCHING"
echo "${DOESNTMATCH} borrowck FAILING"
echo "${MISSING} borrowck UNCHECKED"
echo "${TYPEERROR} borrowck UNSUPPORTED BY OXIDE"
echo "${REDUCERERROR} borrowck UNANNOTATED OR UNSUPPORTED BY DESUGARER"
dune exec runner/runner.exe run tests/nll 2>&1 > /dev/null
MATCHES=`jq '.matches | length' tests/nll/results.json`
DOESNTMATCH=`jq '.doesntmatch | length' tests/nll/results.json`
MISSING=`jq '.missing | length' tests/nll/results.json`
TYPEERROR=`jq '.typeerror | length' tests/nll/results.json`
REDUCERERROR=`jq '.reducererror | length' tests/nll/results.json`
echo "${MATCHES} nll MATCHING"
echo "${DOESNTMATCH} nll FAILING"
echo "${MISSING} nll UNCHECKED"
echo "${TYPEERROR} nll UNSUPPORTED BY OXIDE"
echo "${REDUCERERROR} nll UNANNOTATED OR UNSUPPORTED BY DESUGARER"
for dir in `ls tests/disqualified`
do
COUNT=`ls -l tests/disqualified/$dir | wc -l | tr -d [:space:]`
echo "${COUNT} disqualified/$dir"
done