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.

27 lines
804 B

8 years ago
8 years ago
  1. #! /bin/bash
  2. set -e
  3. # These tests spawn the counter app and server by execing the ABCI_APP command and run some simple client tests against it
  4. # Get the directory of where this script is.
  5. SOURCE="${BASH_SOURCE[0]}"
  6. while [ -h "$SOURCE" ] ; do SOURCE="$(readlink "$SOURCE")"; done
  7. DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
  8. # Change into that dir because we expect that.
  9. cd "$DIR"
  10. echo "RUN COUNTER OVER SOCKET"
  11. # test golang counter
  12. ABCI_APP="counter" go run ./*.go
  13. echo "----------------------"
  14. echo "RUN COUNTER OVER GRPC"
  15. # test golang counter via grpc
  16. ABCI_APP="counter --abci=grpc" ABCI="grpc" go run ./*.go
  17. echo "----------------------"
  18. # test nodejs counter
  19. # TODO: fix node app
  20. #ABCI_APP="node $GOPATH/src/github.com/tendermint/js-abci/example/app.js" go test -test.run TestCounter