Skip to content

Commit

Permalink
Build local image to run tests with make e2e-test (#1722)
Browse files Browse the repository at this point in the history
  • Loading branch information
chatton committed Jul 19, 2022
1 parent 193e414 commit 9776639
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
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}$

0 comments on commit 9776639

Please sign in to comment.