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.

29 lines
854 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. export GO111MODULE=on
  5. # Get the directory of where this script is.
  6. SOURCE="${BASH_SOURCE[0]}"
  7. while [ -h "$SOURCE" ] ; do SOURCE="$(readlink "$SOURCE")"; done
  8. DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
  9. # Change into that dir because we expect that.
  10. cd "$DIR"
  11. echo "RUN COUNTER OVER SOCKET"
  12. # test golang counter
  13. ABCI_APP="counter" go run -mod=readonly ./*.go
  14. echo "----------------------"
  15. echo "RUN COUNTER OVER GRPC"
  16. # test golang counter via grpc
  17. ABCI_APP="counter --abci=grpc" ABCI="grpc" go run -mod=readonly ./*.go
  18. echo "----------------------"
  19. # test nodejs counter
  20. # TODO: fix node app
  21. #ABCI_APP="node $GOPATH/src/github.com/tendermint/js-abci/example/app.js" go test -test.run TestCounter