github.com/evdatsion/aphelion-dpos-bft@v0.32.1/abci/tests/test_app/test.sh (about)

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