Skip to content

Commit

Permalink
add neutron ictest commands to Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
sainoe committed Jan 27, 2025
1 parent 0477ee9 commit 68c72d8
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 14 deletions.
36 changes: 36 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,19 @@ test-interchain:
CONSUMER_IMAGE_TAG=$(CONSUMER_IMAGE_TAG) \
go test ./... -timeout 30m -v

# run interchain tests with a Neutron consumer chain. Currently, it's required to have a local docker 'neutron:v5.0.6' image and
# to use the a ICS v6.4.0 due to a versioning constraints.
test-interchain-neutron:
cd tests/interchain && \
PROVIDER_IMAGE_TAG="v6.4.0" \
CONSUMER_CHAIN_ID="neutron" \
CONSUMER_IMAGE_NAME="neutron" \
CONSUMER_IMAGE_TAG="v5.0.6" \
CONSUMER_BINARY="neutrond" \
CONSUMER_BECH32_PREFIX="neutron" \
CONSUMER_DENOM="untrn" \
go test -run TestProviderConsumersSuite -count=1 -v -timeout 30m

# run mbt tests
test-mbt:
cd tests/mbt/driver;\
Expand Down Expand Up @@ -288,3 +301,26 @@ build-testing-docs:

e2e-traces:
cd tests/e2e; go test -timeout 30s -run ^TestWriteExamples -v


###############################################################################
### Heighliner ###
###############################################################################

TAG ?= latest
GO_VERSION ?= 1.22

# Currently use a Heighliner fork until https://github.com/strangelove-ventures/heighliner/pull/313 is merged
FORK_REPO := https://github.com/sainoe/heighliner.git
FORK_DIR := ./tools/heighliner
FORK_VERSION := 9b5bbdfda4bb6c5f5c10e2303aaa866f0f8893c3

build-heighliner-image:
ifeq (,$(shell which heighliner))
@echo "Installing Heighliner..."
git clone $(FORK_REPO) $(FORK_DIR)
cd $(FORK_DIR) && git fetch && git checkout $(FORK_VERSION) && make install
rm -rf $(FORK_DIR)
endif
@echo "Building $(IMAGE)..."
@heighliner build -c $(IMAGE) --git-ref $(TAG) --go-version $(GO_VERSION)
2 changes: 1 addition & 1 deletion tests/interchain/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -293,5 +293,5 @@ replace (
// Remove this when strangelove-ventures updates the interchain tests to import ICS v6
github.com/strangelove-ventures/interchaintest/v8 => github.com/sainoe/interchaintest/v8 v8.0.0-20250124160703-058a72282f21
github.com/vedhavyas/go-subkey => github.com/strangelove-ventures/go-subkey v1.0.7

)
13 changes: 0 additions & 13 deletions tests/interchain/ictests-neutron.sh

This file was deleted.

0 comments on commit 68c72d8

Please sign in to comment.