-
Notifications
You must be signed in to change notification settings - Fork 0
/
run.sh
executable file
·68 lines (50 loc) · 1.25 KB
/
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#! /bin/bash
if [ "$1" == "s" ]
then
if [ "${10}" == "v" ]
then
make
valgrind -v --trace-children=yes --show-leak-kinds=all --leak-check=full --fair-sched=yes --track-origins=yes ./whoServer ${*:2}
elif [ "${10}" == "g" ]
then
make
gdb --args ./whoServer ${*:2}
else
make
./whoServer ${*:2}
# killall worker
fi
elif [ "$1" == "c" ]
then
if [ "${10}" == "v" ]
then
make
valgrind -v --trace-children=yes --show-reachable=yes --show-leak-kinds=all --leak-check=full --fair-sched=yes --track-origins=yes ./whoClient ${*:2}
elif [ "${10}" == "g" ]
then
make
gdb --args ./whoClient ${*:2}
else
make
./whoClient ${*:2}
# killall worker
fi
elif [ "$1" == "m" ]
then
rm -f log_file.*
rm -f worker.*
rm -f master.*
if [ "${12}" == "v" ]
then
make
valgrind -v --trace-children=yes --show-leak-kinds=all --leak-check=full --fair-sched=yes --track-origins=yes ./master ${*:2}
elif [ "${12}" == "g" ]
then
make
gdb --args ./master ${*:2}
else
make
./master ${*:2}
# killall worker
fi
fi