From 631844895ff8a69c17cc21f8b197afe5527c02df Mon Sep 17 00:00:00 2001 From: Zach Ramsay Date: Wed, 18 Oct 2017 15:32:34 -0400 Subject: [PATCH] fixes --- README.md | 6 +++--- scripts/dist_build.sh | 40 +++++++++++++++++++--------------------- tests/test_cli/test.sh | 10 +++++----- 3 files changed, 27 insertions(+), 29 deletions(-) diff --git a/README.md b/README.md index f1b2ebb3..33b037da 100644 --- a/README.md +++ b/README.md @@ -60,9 +60,9 @@ The `abci-cli` tool wraps any ABCI client and can be used for probing/testing an See [the documentation](http://tendermint.readthedocs.io/en/master/) for more details. Multiple example apps are included: -- the `counter` application, which illustrates nonce checking in txs -- the `dummy` application, which illustrates a simple key-value merkle tree -- the `dummy --persistent` application, which augments the dummy with persistence and validator set changes +- the `abci-cli counter` application, which illustrates nonce checking in txs +- the `abci-cli dummy` application, which illustrates a simple key-value merkle tree +- the `abci-cli dummy --persistent` application, which augments the dummy with persistence and validator set changes ## Specification diff --git a/scripts/dist_build.sh b/scripts/dist_build.sh index 0f5e3e3b..adaca24a 100755 --- a/scripts/dist_build.sh +++ b/scripts/dist_build.sh @@ -24,30 +24,28 @@ make tools # Get VENDORED dependencies make get_vendor_deps -BINARIES=( "abci-cli" "dummy" "counter" ) +BINARY="abci-cli" -for binary in ${BINARIES[@]}; do - # Build! - echo "==> Building..." - "$(which gox)" \ - -os="${XC_OS}" \ - -arch="${XC_ARCH}" \ - -osarch="!darwin/arm !solaris/amd64 !freebsd/amd64" \ - -ldflags "-X ${GIT_IMPORT}.GitCommit='${GIT_COMMIT}' -X ${GIT_IMPORT}.GitDescribe='${GIT_DESCRIBE}'" \ - -output "build/pkg/{{.OS}}_{{.Arch}}/$binary" \ - -tags="${BUILD_TAGS}" \ - github.com/tendermint/abci/cmd/$binary +# Build! +echo "==> Building..." +"$(which gox)" \ + -os="${XC_OS}" \ + -arch="${XC_ARCH}" \ + -osarch="!darwin/arm !solaris/amd64 !freebsd/amd64" \ + -ldflags "-X ${GIT_IMPORT}.GitCommit='${GIT_COMMIT}' -X ${GIT_IMPORT}.GitDescribe='${GIT_DESCRIBE}'" \ + -output "build/pkg/{{.OS}}_{{.Arch}}/$BINARY" \ + -tags="${BUILD_TAGS}" \ + github.com/tendermint/abci/cmd/$BINARY - # Zip all the files. - echo "==> Packaging..." - for PLATFORM in $(find ./build/pkg -mindepth 1 -maxdepth 1 -type d); do - OSARCH=$(basename "${PLATFORM}") - echo "--> ${OSARCH}" +# Zip all the files. +echo "==> Packaging..." +for PLATFORM in $(find ./build/pkg -mindepth 1 -maxdepth 1 -type d); do + OSARCH=$(basename "${PLATFORM}") + echo "--> ${OSARCH}" - pushd "$PLATFORM" >/dev/null 2>&1 - zip "../${OSARCH}.zip" ./* - popd >/dev/null 2>&1 - done + pushd "$PLATFORM" >/dev/null 2>&1 + zip "../${OSARCH}.zip" ./* + popd >/dev/null 2>&1 done diff --git a/tests/test_cli/test.sh b/tests/test_cli/test.sh index 4266dd16..81b06a0e 100644 --- a/tests/test_cli/test.sh +++ b/tests/test_cli/test.sh @@ -11,13 +11,13 @@ cd "$DIR" || exit function testExample() { N=$1 INPUT=$2 - APP=$3 + APP="$3 $4" - echo "Example $N" + echo "Example $N: $APP" $APP &> /dev/null & sleep 2 abci-cli --verbose batch < "$INPUT" > "${INPUT}.out.new" - killall "$APP" + killall $3 pre=$(shasum < "${INPUT}.out") post=$(shasum < "${INPUT}.out.new") @@ -34,8 +34,8 @@ function testExample() { rm "${INPUT}".out.new } -testExample 1 tests/test_cli/ex1.abci dummy -testExample 2 tests/test_cli/ex2.abci counter +testExample 1 tests/test_cli/ex1.abci abci-cli dummy +testExample 2 tests/test_cli/ex2.abci abci-cli counter echo "" echo "PASS"