forked from ithewei/libhv
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest-coverage.sh
More file actions
executable file
·40 lines (33 loc) · 1.25 KB
/
test-coverage.sh
File metadata and controls
executable file
·40 lines (33 loc) · 1.25 KB
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
#!/bin/bash
SCRIPT_DIR=$(cd `dirname $0`; pwd)
ROOT_DIR=${SCRIPT_DIR}/..
cd ${ROOT_DIR}
bin/httpd -c etc/httpd.conf -s restart -d
bin/ls
bin/date
bin/ifconfig
bin/mkdir_p 123/456
bin/rmdir_p 123/456
bin/defer_test
bin/hstring_test
bin/hpath_test
bin/hatomic_test
bin/hatomic_cpp_test
bin/hmutex_test
bin/socketpair_test
bin/threadpool_test
bin/objectpool_test
bin/curl -v localhost:8080
bin/curl -v localhost:8080/ping
bin/curl -v localhost:8080/echo -d "hello,world!"
bin/curl -v localhost:8080/query?page_no=1\&page_size=10
bin/curl -v localhost:8080/kv -H "Content-Type:application/x-www-form-urlencoded" -d 'user=admin&pswd=123456'
bin/curl -v localhost:8080/json -H "Content-Type:application/json" -d '{"user":"admin","pswd":"123456"}'
bin/curl -v localhost:8080/form -F "user=admin pswd=123456"
bin/curl -v localhost:8080/upload -F "file=@LICENSE"
bin/curl -v localhost:8080/test -H "Content-Type:application/x-www-form-urlencoded" -d 'bool=1&int=123&float=3.14&string=hello'
bin/curl -v localhost:8080/test -H "Content-Type:application/json" -d '{"bool":true,"int":123,"float":3.14,"string":"hello"}'
bin/curl -v localhost:8080/test -F 'bool=1 int=123 float=3.14 string=hello'
bin/curl -v -X DELETE localhost:8080/group/test/user/123
bin/httpd -s stop
bin/htimer_test