-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexe_test.sh
More file actions
executable file
·47 lines (39 loc) · 794 Bytes
/
exe_test.sh
File metadata and controls
executable file
·47 lines (39 loc) · 794 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
#!/bin/sh
config=$1
if test -z "$config"
then
config='workloads/simple.pg';
else
shift
fi
set -x
#strace -s 80 -o srv.strace \
./src/server/server \
--config $config \
--cfg_dirs workloads/include \
--verb_lvl 10 \
--log /tmp/ts.log \
--console /tmp/ts.con $* &
sleep 3
#strace -s 80 -o clt.strace \
./src/client/client \
--config $config \
--cfg_dirs workloads/include \
--verb_lvl 10 \
--log /tmp/tc.log \
--console /tmp/tc.con $* &
sleep 3
set +x
a='';
while tail /tmp/ts.con /tmp/tc.con && test -z "$a"
do
echo -n "<enter> to continue, <nonempty string> to stop: "
read a
done
set -x
killall -INT client server
sleep 10;
tail /tmp/t[sc].con
./src/logextractors/lx /tmp/ts.log | fgrep rate | paste - -
./src/logextractors/lx /tmp/tc.log | fgrep rate | paste - -
set +x