Skip to content

Commit

Permalink
Minor cleanup to test scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
maru-ava committed Nov 7, 2023
1 parent 3483189 commit 58dd28a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion scripts/build_avalanchego.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -euo pipefail

# Run AvalancheGo e2e tests from the target version against the current state of coreth.
# Build avalanchego binary from the target version against the current state of coreth.

# e.g.,
# ./scripts/build_avalanchego.sh
Expand Down
12 changes: 6 additions & 6 deletions scripts/tests.integration.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,17 @@ fi
# Allow configuring the clone path to point to an existing clone
export AVALANCHEGO_CLONE_PATH="${AVALANCHEGO_CLONE_PATH:-avalanchego}"

echo "building integration.test"
# Install the ginkgo binary (required for test build and run)
go install -v github.com/onsi/ginkgo/v2/[email protected]
ACK_GINKGO_RC=true ginkgo build ./tests/integration
./tests/integration/integration.test --help

# Only build avalanchego if using the network fixture
if [[ "${@}" =~ "--use-network-fixture" ]]; then
./scripts/build_avalanchego.sh
export AVALANCHEGO_PATH="$(realpath ${AVALANCHEGO_PATH:-${AVALANCHEGO_CLONE_PATH}/build/avalanchego})"
fi

echo "building integration.test"
# Install the ginkgo binary (required for test build and run)
go install -v github.com/onsi/ginkgo/v2/[email protected]
ACK_GINKGO_RC=true ginkgo build ./tests/integration
./tests/integration/integration.test --help

# Execute in random order to identify unwanted dependency
ginkgo -v --randomize-all ./tests/integration/integration.test -- "${@}"

0 comments on commit 58dd28a

Please sign in to comment.