-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathanalyze.sh
More file actions
executable file
·51 lines (44 loc) · 823 Bytes
/
analyze.sh
File metadata and controls
executable file
·51 lines (44 loc) · 823 Bytes
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/bin/bash
CURVE="true"
MAP="true"
TEST_NAME="last"
printHelp() {
echo "./analyze.sh [-n test_name]"
}
while [[ $# -gt 0 ]]; do
key="$1"
case $key in
-n | --name)
TEST_NAME="$2"
shift 2
;;
-h)
printHelp
exit 0
;;
*) # unknown option
echo "$1" is not valid
printHelp
exit 1
;;
esac
done
DIR="out/last"
RESULT_DIR="${DIR}/result.d"
CURVE_DATA="$RESULT_DIR/curve"
MAP_DATA="$RESULT_DIR/map"
GNUPLOT_CURVE="./scripts/curve.gp"
GNUPLOT_MAP="./scripts/map.gp"
[ -d $RESULT_DIR ] || exit
if [ $CURVE = "true" ]; then
./result.sh -n "$TEST_NAME" --curve >"$CURVE_DATA"
$GNUPLOT_CURVE
else
echo "$0 -c to output winrate curve"
fi
if [ $MAP = "true" ]; then
./result.sh -n "$TEST_NAME" --map >"$MAP_DATA"
$GNUPLOT_MAP
else
echo "$0 -m to output score map"
fi