forked from ava-labs/avalanchego
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtests.e2e.kube.sh
More file actions
executable file
·26 lines (19 loc) · 865 Bytes
/
tests.e2e.kube.sh
File metadata and controls
executable file
·26 lines (19 loc) · 865 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/usr/bin/env bash
set -euo pipefail
# Run e2e tests against nodes deployed to a kind cluster.
# TODO(marun) Support testing against a remote cluster
if ! [[ "$0" =~ scripts/tests.e2e.kube.sh ]]; then
echo "must be run from repository root"
exit 255
fi
# This script will use kubeconfig arguments if supplied
./scripts/start_kind_cluster.sh "$@"
# Use an image that will be pushed to the local registry that the kind cluster is configured to use.
AVALANCHEGO_IMAGE="localhost:5001/avalanchego"
XSVM_IMAGE="${AVALANCHEGO_IMAGE}-xsvm"
if [[ -n "${SKIP_BUILD_IMAGE:-}" ]]; then
echo "Skipping build of xsvm image due to SKIP_BUILD_IMAGE=${SKIP_BUILD_IMAGE}"
else
XSVM_IMAGE="${XSVM_IMAGE}" AVALANCHEGO_IMAGE="${AVALANCHEGO_IMAGE}" bash -x ./scripts/build_xsvm_image.sh
fi
bash -x ./scripts/tests.e2e.sh --runtime=kube --kube-image="${XSVM_IMAGE}" "$@"