Skip to content

Commit 68c72d8

Browse files
committed
add neutron ictest commands to Makefile
1 parent 0477ee9 commit 68c72d8

File tree

3 files changed

+37
-14
lines changed

3 files changed

+37
-14
lines changed

Makefile

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,19 @@ test-interchain:
6666
CONSUMER_IMAGE_TAG=$(CONSUMER_IMAGE_TAG) \
6767
go test ./... -timeout 30m -v
6868

69+
# run interchain tests with a Neutron consumer chain. Currently, it's required to have a local docker 'neutron:v5.0.6' image and
70+
# to use the a ICS v6.4.0 due to a versioning constraints.
71+
test-interchain-neutron:
72+
cd tests/interchain && \
73+
PROVIDER_IMAGE_TAG="v6.4.0" \
74+
CONSUMER_CHAIN_ID="neutron" \
75+
CONSUMER_IMAGE_NAME="neutron" \
76+
CONSUMER_IMAGE_TAG="v5.0.6" \
77+
CONSUMER_BINARY="neutrond" \
78+
CONSUMER_BECH32_PREFIX="neutron" \
79+
CONSUMER_DENOM="untrn" \
80+
go test -run TestProviderConsumersSuite -count=1 -v -timeout 30m
81+
6982
# run mbt tests
7083
test-mbt:
7184
cd tests/mbt/driver;\
@@ -288,3 +301,26 @@ build-testing-docs:
288301

289302
e2e-traces:
290303
cd tests/e2e; go test -timeout 30s -run ^TestWriteExamples -v
304+
305+
306+
###############################################################################
307+
### Heighliner ###
308+
###############################################################################
309+
310+
TAG ?= latest
311+
GO_VERSION ?= 1.22
312+
313+
# Currently use a Heighliner fork until https://github.com/strangelove-ventures/heighliner/pull/313 is merged
314+
FORK_REPO := https://github.com/sainoe/heighliner.git
315+
FORK_DIR := ./tools/heighliner
316+
FORK_VERSION := 9b5bbdfda4bb6c5f5c10e2303aaa866f0f8893c3
317+
318+
build-heighliner-image:
319+
ifeq (,$(shell which heighliner))
320+
@echo "Installing Heighliner..."
321+
git clone $(FORK_REPO) $(FORK_DIR)
322+
cd $(FORK_DIR) && git fetch && git checkout $(FORK_VERSION) && make install
323+
rm -rf $(FORK_DIR)
324+
endif
325+
@echo "Building $(IMAGE)..."
326+
@heighliner build -c $(IMAGE) --git-ref $(TAG) --go-version $(GO_VERSION)

tests/interchain/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,5 +293,5 @@ replace (
293293
// Remove this when strangelove-ventures updates the interchain tests to import ICS v6
294294
github.com/strangelove-ventures/interchaintest/v8 => github.com/sainoe/interchaintest/v8 v8.0.0-20250124160703-058a72282f21
295295
github.com/vedhavyas/go-subkey => github.com/strangelove-ventures/go-subkey v1.0.7
296-
296+
297297
)

tests/interchain/ictests-neutron.sh

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)