-
Notifications
You must be signed in to change notification settings - Fork 696
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'fix-coreth-wallet-dep' of github.com:ava-labs/avalanche…
…go into fix-coreth-wallet-dep
- Loading branch information
Showing
8 changed files
with
21 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euo pipefail | ||
|
||
# If an explicit version is not specified, go run uses the ginkgo version from go.mod | ||
go run github.com/onsi/ginkgo/v2/ginkgo "${@}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -63,7 +63,4 @@ ensure_command "kind-with-registry.sh" "https://raw.githubusercontent.com/kubern | |
# call them without a qualifying path. | ||
PATH="${PWD}/bin:$PATH" bash -x "${PWD}/bin/kind-with-registry.sh" | ||
|
||
# TODO(marun) Factor out ginkgo installation to avoid duplicating it across test scripts | ||
go install -v github.com/onsi/ginkgo/v2/[email protected] | ||
|
||
KUBECONFIG="$HOME/.kube/config" PATH="${PWD}/bin:$PATH" ginkgo -v ./tests/fixture/bootstrapmonitor/e2e | ||
KUBECONFIG="$HOME/.kube/config" PATH="${PWD}/bin:$PATH" ./scripts/ginkgo.sh -v ./tests/fixture/bootstrapmonitor/e2e |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,13 +20,6 @@ fi | |
# the instructions to build non-portable BLST. | ||
source ./scripts/constants.sh | ||
|
||
################################# | ||
echo "building e2e.test" | ||
# to 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/e2e | ||
./tests/e2e/e2e.test --help | ||
|
||
# Enable subnet testing by building xsvm | ||
./scripts/build_xsvm.sh | ||
echo "" | ||
|
@@ -66,4 +59,4 @@ fi | |
|
||
################################# | ||
# shellcheck disable=SC2086 | ||
ginkgo ${GINKGO_ARGS} -v ./tests/e2e/e2e.test -- "${E2E_ARGS[@]}" "${@}" | ||
./scripts/ginkgo.sh ${GINKGO_ARGS} -v ./tests/e2e -- "${E2E_ARGS[@]}" "${@}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -62,17 +62,9 @@ find "/tmp/avalanchego-v${VERSION}" | |
# the instructions to build non-portable BLST. | ||
source ./scripts/constants.sh | ||
|
||
################################# | ||
echo "building upgrade.test" | ||
# to 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/upgrade | ||
./tests/upgrade/upgrade.test --help | ||
|
||
################################# | ||
# By default, it runs all upgrade test cases! | ||
echo "running upgrade tests against the local cluster with ${AVALANCHEGO_PATH}" | ||
./tests/upgrade/upgrade.test \ | ||
--ginkgo.v \ | ||
./scripts/ginkgo.sh -v ./tests/upgrade -- \ | ||
--avalanchego-path="/tmp/avalanchego-v${VERSION}/avalanchego" \ | ||
--avalanchego-path-to-upgrade-to="${AVALANCHEGO_PATH}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,12 +6,9 @@ | |
## Running tests | ||
|
||
```bash | ||
go install -v github.com/onsi/ginkgo/v2/[email protected] | ||
ACK_GINKGO_RC=true ginkgo build ./tests/e2e | ||
./tests/e2e/e2e.test --help | ||
|
||
./tests/e2e/e2e.test \ | ||
--avalanchego-path=./build/avalanchego | ||
./scripts/build.sh # Builds avalanchego for use in deploying a test network | ||
./scripts/build_xsvm.sh # Builds xsvm for use in deploying a test network with a subnet | ||
./scripts/ginkgo.sh -v ./tests/e2e -- --avalanchego-path=./build/avalanchego | ||
``` | ||
|
||
See [`tests.e2e.sh`](../../scripts/tests.e2e.sh) for an example. | ||
|
@@ -27,9 +24,7 @@ primarily target the X-Chain: | |
|
||
|
||
```bash | ||
./tests/e2e/e2e.test \ | ||
--avalanchego-path=./build/avalanchego \ | ||
--ginkgo.label-filter=x | ||
./scripts/ginkgo.sh -v --label-filter=x ./tests/e2e -- --avalanchego-path=./build/avalanchego | ||
``` | ||
|
||
The ginkgo docs provide further detail on [how to compose label | ||
|
@@ -45,17 +40,14 @@ Create a new package to implement feature-specific tests, or add tests to an exi | |
tests | ||
└── e2e | ||
├── README.md | ||
├── e2e.go | ||
├── e2e_test.go | ||
└── x | ||
└── transfer.go | ||
└── virtuous.go | ||
``` | ||
|
||
`e2e.go` defines common configuration for other test | ||
packages. `x/transfer/virtuous.go` defines X-Chain transfer tests, | ||
labeled with `x`, which can be selected by `./tests/e2e/e2e.test | ||
--ginkgo.label-filter "x"`. | ||
`x/transfer/virtuous.go` defines X-Chain transfer tests, | ||
labeled with `x`, which can be selected by `--label-filter=x`. | ||
|
||
## Reusing temporary networks | ||
|
||
|
@@ -70,7 +62,7 @@ To enable network reuse across test runs, pass `--reuse-network` as an | |
argument to the test suite: | ||
|
||
```bash | ||
ginkgo -v ./tests/e2e -- --avalanchego-path=/path/to/avalanchego --reuse-network | ||
./scripts/gingko.sh -v ./tests/e2e -- --avalanchego-path=/path/to/avalanchego --reuse-network | ||
``` | ||
|
||
If a network is not already running the first time the suite runs with | ||
|
@@ -93,7 +85,7 @@ To stop a network configured for reuse, invoke the test suite with the | |
immediately without executing any tests: | ||
|
||
```bash | ||
ginkgo -v ./tests/e2e -- --stop-network | ||
./scripts/gingko.sh -v ./tests/e2e -- --stop-network | ||
``` | ||
|
||
## Skipping bootstrap checks | ||
|
@@ -105,5 +97,5 @@ these bootstrap checks during development, set the | |
`E2E_SKIP_BOOTSTRAP_CHECKS` env var to a non-empty value: | ||
|
||
```bash | ||
E2E_SKIP_BOOTSTRAP_CHECKS=1 ginkgo -v ./tests/e2e ... | ||
E2E_SKIP_BOOTSTRAP_CHECKS=1 ./scripts/ginkgo.sh -v ./tests/e2e ... | ||
``` |