29 lines
858 B
Bash
Raw Normal View History

2016-07-23 18:54:58 -04:00
#! /bin/bash
set -e
2017-01-12 15:47:55 -05:00
# These tests spawn the counter app and server by execing the ABCI_APP command and run some simple client tests against it
2016-07-23 18:54:58 -04:00
# Get the directory of where this script is.
export PATH="$GOBIN:$PATH"
SOURCE="${BASH_SOURCE[0]}"
while [ -h "$SOURCE" ] ; do SOURCE="$(readlink "$SOURCE")"; done
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
# Change into that dir because we expect that.
cd "$DIR"
2016-07-23 18:54:58 -04:00
echo "RUN COUNTER OVER SOCKET"
2016-07-23 18:54:58 -04:00
# test golang counter
ABCI_APP="counter" go run -mod=readonly ./*.go
echo "----------------------"
2016-07-23 18:54:58 -04:00
echo "RUN COUNTER OVER GRPC"
2016-07-23 18:54:58 -04:00
# test golang counter via grpc
ABCI_APP="counter --abci=grpc" ABCI="grpc" go run -mod=readonly ./*.go
echo "----------------------"
2016-07-23 18:54:58 -04:00
# test nodejs counter
# TODO: fix node app
2017-01-12 15:47:55 -05:00
#ABCI_APP="node $GOPATH/src/github.com/tendermint/js-abci/example/app.js" go test -test.run TestCounter