You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

57 lines
953 B

  1. #! /bin/bash
  2. set -e
  3. #- dummy over socket, curl
  4. #- counter over socket, curl
  5. #- counter over grpc, curl
  6. #- counter over grpc, grpc
  7. # TODO: install everything
  8. function dummy_over_socket(){
  9. dummy > /dev/null &
  10. tendermint node > tendermint.log &
  11. sleep 3
  12. bash dummy_test.sh "Dummy over Socket"
  13. killall dummy tendermint
  14. }
  15. function counter_over_socket() {
  16. counter --serial > /dev/null &
  17. tendermint node > tendermint.log &
  18. sleep 3
  19. bash counter_test.sh "Counter over Socket"
  20. killall counter tendermint
  21. }
  22. function counter_over_grpc() {
  23. counter --serial --tmsp grpc > /dev/null &
  24. tendermint node --tmsp grpc > tendermint.log &
  25. sleep 3
  26. bash counter_test.sh "Counter over GRPC"
  27. killall counter tendermint
  28. }
  29. case "$1" in
  30. "dummy_over_socket")
  31. dummy_over_socket
  32. ;;
  33. "counter_over_socket")
  34. counter_over_socket
  35. ;;
  36. "counter_over_grpc")
  37. counter_over_grpc
  38. ;;
  39. *)
  40. dummy_over_socket
  41. counter_over_socket
  42. counter_over_grpc
  43. esac