Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build local image to run tests with make e2e-test #1722

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion e2e/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ cleanup-ibc-test-containers:
done

e2e-test: cleanup-ibc-test-containers
@go test -v ./ --run $(suite) -testify.m ^$(test)$$
./scripts/run-e2e.sh $(suite) $(test)

.PHONY: cleanup-ibc-test-containers e2e-test
17 changes: 17 additions & 0 deletions e2e/scripts/run-e2e.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash

set -euo pipefail

SUITE="${1}"
TEST="${2}"
export SIMD_TAG="${SIMD_TAG:-latest}"
export SIMD_IMAGE="${SIMD_IMAGE:-ibc-go-simd-e2e}"

# In CI, the docker images will be built separately.
# context for building the image is one directory up.
if [ "${CI:-}" != "true" ]
then
(cd ..; docker build . -t "${SIMD_IMAGE}:${SIMD_TAG}")
fi

go test -v ./ --run ${SUITE} -testify.m ^${TEST}$