forked from xapi-project/message-switch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbasic-rpc-test.sh
executable file
·45 lines (36 loc) · 1 KB
/
basic-rpc-test.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
#!/bin/bash
set -e
set -x
#function finish {
# killall switch_main.native || true
# killall server_unix_main.native || true
# killall server_main.native || true
#}
#trap finish EXIT
rm -f /tmp/switch/*
mkdir -p /tmp/switch
SPATH=/tmp/sock
echo Checking the switch can start late
./server_unix_main.native -path $SPATH &
sleep 1
./switch_main.native --path $SPATH --statedir /tmp/switch &
./client_unix_main.native -path $SPATH -secs 5
sleep 2
echo Performance test of Unix to Unix
./server_unix_main.native -path $SPATH &
./client_unix_main.native -path $SPATH -secs 5
sleep 2
echo Performance test of Lwt to Lwt
./server_main.native -path $SPATH &
./client_main.native -path $SPATH -secs 5
sleep 2
echo Performance test of Async to Lwt
./server_main.native -path $SPATH &
./client_async_main.native -path $SPATH -secs 5
sleep 2
echo Performance test of Async to Async
./server_async_main.native -path $SPATH &
./client_async_main.native -path $SPATH -secs 5
sleep 2
./main.native shutdown --path $SPATH
sleep 2