test-coverage.sh 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. #!/bin/bash
  2. SCRIPT_DIR=$(cd `dirname $0`; pwd)
  3. ROOT_DIR=${SCRIPT_DIR}/..
  4. cd ${ROOT_DIR}
  5. bin/httpd -c etc/httpd.conf -s restart -d
  6. bin/ls
  7. bin/date
  8. bin/ifconfig
  9. bin/mkdir_p 123/456
  10. bin/rmdir_p 123/456
  11. bin/defer_test
  12. bin/hstring_test
  13. bin/hatomic_test
  14. bin/hatomic_cpp_test
  15. bin/hmutex_test
  16. bin/socketpair_test
  17. bin/threadpool_test
  18. bin/objectpool_test
  19. bin/curl -v localhost:8080
  20. bin/curl -v localhost:8080/ping
  21. bin/curl -v localhost:8080/echo -d "hello,world!"
  22. bin/curl -v localhost:8080/query?page_no=1\&page_size=10
  23. bin/curl -v localhost:8080/kv -H "Content-Type:application/x-www-form-urlencoded" -d 'user=admin&pswd=123456'
  24. bin/curl -v localhost:8080/json -H "Content-Type:application/json" -d '{"user":"admin","pswd":"123456"}'
  25. bin/curl -v localhost:8080/form -F "user=admin pswd=123456"
  26. bin/curl -v localhost:8080/upload -F "file=@LICENSE"
  27. bin/curl -v localhost:8080/test -H "Content-Type:application/x-www-form-urlencoded" -d 'bool=1&int=123&float=3.14&string=hello'
  28. bin/curl -v localhost:8080/test -H "Content-Type:application/json" -d '{"bool":true,"int":123,"float":3.14,"string":"hello"}'
  29. bin/curl -v localhost:8080/test -F 'bool=1 int=123 float=3.14 string=hello'
  30. bin/curl -v -X DELETE localhost:8080/group/test/user/123
  31. bin/httpd -s stop
  32. bin/htimer_test