-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun.bat
41 lines (23 loc) · 887 Bytes
/
run.bat
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
del server.exe
go build -o server.exe
start server.exe -port=8001
start server.exe -port=8002
start server.exe -port=8003 -api=1
ping -n 2 127.0.0.1 > nul
echo ">>> start test"
start /B curl "http://localhost:9999/api?key=Tom"
start /B curl "http://localhost:9999/api?key=Tom"
start /B curl "http://localhost:9999/api?key=Tom"
start /B curl "http://localhost:9999/api?key=Tom"
start /B curl "http://localhost:9999/api?key=Tom"
start /B curl "http://localhost:9999/api?key=Tom"
ping -n 10 127.0.0.1 > nul
timeout /t 15
start /B curl "http://localhost:9999/api?key=Tom"
start /B curl "http://localhost:9999/api?key=Tom"
start /B curl "http://localhost:9999/api?key=Tom"
start /B curl "http://localhost:9999/api?key=Tom"
start /B curl "http://localhost:9999/api?key=Tom"
start /B curl "http://localhost:9999/api?key=Tom"
ping -n 10 127.0.0.1 > nul
echo ">>> test finished"