-
Notifications
You must be signed in to change notification settings - Fork 1
/
eval_all.sh
executable file
·47 lines (38 loc) · 1.05 KB
/
eval_all.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
36
37
38
39
40
41
42
43
44
45
46
47
#!/bin/bash
ARRAY_LEN_STR=(1 2 4 8 16 32 64)
function usage () {
echo "ERROR: args invalid"
echo "USAGE: eval_all.bash PLATFORM"
echo " PLATFORM : \"uros-serial\" \"uros-udp\" \"uros-rtps\" \"mros2-asp3\" \"mros2-mbed\""
}
### setup operation ###
if [ $# -ne 1 ];
then
usage
exit 1
else
PLATFORM=$1
fi
### create directory in `results/` ###
mkdir -p results/${PLATFORM}
### run evaluation ###
echo "INFO: all evaluation for \"${PLATFORM}\" start"
echo "INFO: evaluation for \"string\" start"
for LEN_STR in ${ARRAY_LEN_STR[@]} ;
do
echo "INFO: please RESET the board"
read -n1 -rsp $' : press any key to continue or Ctrl+C to exit...\n'
./eval.sh ${PLATFORM} string ${LEN_STR}
done
echo "INFO: evaluation for \"string\" end"
echo ""
echo "INFO: evaluation for \"uint16\" start"
./eval.sh ${PLATFORM} uint16
echo "INFO: evaluation for \"uint16\" end"
echo ""
echo "INFO: evaluation for \"twist\" start"
./eval.sh ${PLATFORM} twist
echo "INFO: evaluation for \"twist\" end"
echo ""
echo "INFO: all evaluation for \"${PLATFORM}\" finished"
exit 0