-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhttpservertest
More file actions
executable file
·39 lines (32 loc) · 994 Bytes
/
httpservertest
File metadata and controls
executable file
·39 lines (32 loc) · 994 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
#!/bin/sh
#
# defaults:
#
echo Testing Servers
exec="$VG $timbl_bin/timblserver"
client="$VG $timbl_bin/timblclient"
if test x"${VG}" = x; then
doD="--daemonize=yes"
else
doD="--daemonize=no"
fi
if test ! -d /tmp/run/ ; then
mkdir /tmp/run/
fi
rm -rf /tmp/server*.log
rm -rf /tmp/run/pid*
rm -rf /tmp/server7.log
$exec $doD --config=./tests/httpserver.cfg --debug=yes --logfile=/tmp/server7.log --pidfile=/tmp/run/pid7 &
sleep 10
wget http://localhost:7350/dimin0?classify=%22+,p,i,=,-,k,o,=,-,l,o,=,?%22 -O /tmp/http1.out
cat /tmp/http1.out
wget http://localhost:7350/dimin0?set=v-di-db -O /tmp/http2.out
cat /tmp/http2.out
wget http://localhost:7350/dimin0?show=settings -O /tmp/http2.out
cat /tmp/http2.out
wget http://localhost:7350/dimin0?classify=%22+,p,i,=,-,k,o,=,-,l,o,=,?%22 -O /tmp/http3.out
cat /tmp/http3.out
wget http://localhost:7350/dimin1?classify=%22=,=,=,=,+,sp,a,r,-,b,u,k,?%22 -O /tmp/http4.out
cat /tmp/http4.out
kill `cat /tmp/run/pid7`
cat /tmp/server7.log