-
Notifications
You must be signed in to change notification settings - Fork 0
/
run.sh
executable file
·53 lines (39 loc) · 977 Bytes
/
run.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
48
49
50
51
52
53
#!/bin/bash
if [ $# -lt 1 ]; then
echo "ERROR: No input file given"
fi
if [ $# -eq 1 ]; then
./install_dir/bin/tck-reach -a gta_gsim $1
fi
if [ $# -eq 2 ]; then
if [ "$1" == "gta_gsim" ]; then
./install_dir/bin/tck-reach -a gta_gsim $2
fi
if [ "$1" == "gsim" ]; then
./install_dir/bin/tck-reach -a gsim $2
fi
if [ "$1" == "eca" ]; then
python3 eca_wrapper/main_prog.py $2
fi
fi
if [ $# -eq 3 ]; then
if [[ "$1" == "eca" && "$3" != "-C" ]]; then
python3 eca_wrapper/main_prog.py $2 > $3
fi
if [[ "$1" == "gsim" && "$3" == "-C" ]]; then
./install_dir/bin/tck-reach -a gsim $2 -C tmp.txt
fi
if [[ "$1" == "gta_gsim" && "$3" == "-C" ]]; then
./install_dir/bin/tck-reach -a gta_gsim $2 -C tmp.txt
fi
fi
if [ $# -eq 4 ]; then
if [ "$3" == "-C" ]; then
if [ "$1" == "gta_gsim" ]; then
./install_dir/bin/tck-reach -a gta_gsim $2 -C $4
fi
if [ "$1" == "gsim" ]; then
./install_dir/bin/tck-reach -a gsim $2 -C $4
fi
fi
fi