11.PHONY : help build-docker clean-docker docker-info verify
2- .PHONY : test test-local test-v1.9.1 test-v1.10.1 test-v1.9.1-local test-v1.10.1 -local
3- .PHONY : test-genesis test-genesis-local test-genesis-v1.9.1 test-genesis-v1.10.1 test-genesis-v1.9.1-local test-genesis-v1.10.1-local
4- .PHONY : test-ica test-ica-local test-ica-v1.9.1 test-ica-v1.10.1 test-ica-v1.9.1-local test-ica- v1.10.1-local
5- .PHONY : test-all-versions test-all-versions-local full-test
2+ .PHONY : test test-local test-genesis test-genesis-local test-ica test-ica -local full-test
3+
4+ # Lumera version — override via: make test LUMERA_VERSION= v1.10.1
5+ LUMERA_VERSION ?= v1.10.1
66
77# Default target
88help :
99 @echo " Lumera Interchaintest Makefile"
1010 @echo " "
11+ @echo " LUMERA_VERSION=$( LUMERA_VERSION) (override with LUMERA_VERSION=vX.Y.Z)"
12+ @echo " "
1113 @echo " Docker:"
12- @echo " build-docker Build lumerad Docker image from local source "
14+ @echo " build-docker Build lumerad Docker image"
1315 @echo " clean-docker Remove local Docker images"
1416 @echo " docker-info Show Docker image info"
1517 @echo " verify Verify local setup"
1618 @echo " "
17- @echo " Genesis tests:"
18- @echo " test-genesis-v1.9.1 Test genesis for v1.9.1"
19- @echo " test-genesis-v1.10.1 Test genesis for v1.10.1"
20- @echo " test-genesis-v1.9.1-local ... with local image"
21- @echo " test-genesis-v1.10.1-local ... with local image"
22- @echo " "
23- @echo " ICA tests:"
24- @echo " test-ica-v1.9.1 Run ICA tests for v1.9.1"
25- @echo " test-ica-v1.10.1 Run ICA tests for v1.10.1"
26- @echo " test-ica-v1.9.1-local ... with local image"
27- @echo " test-ica-v1.10.1-local ... with local image"
28- @echo " "
29- @echo " All tests for a version:"
30- @echo " test-v1.9.1 Run all tests for v1.9.1"
31- @echo " test-v1.10.1 Run all tests for v1.10.1"
32- @echo " test-v1.9.1-local ... with local image"
33- @echo " test-v1.10.1-local ... with local image"
34- @echo " "
35- @echo " Shortcuts (default v1.10.1):"
36- @echo " test-genesis Test genesis (v1.10.1)"
19+ @echo " Tests:"
20+ @echo " test-genesis Test genesis configuration"
3721 @echo " test-genesis-local Test genesis with local image"
38- @echo " test-ica Run ICA tests (v1.10.1) "
22+ @echo " test-ica Run ICA tests"
3923 @echo " test-ica-local Run ICA tests with local image"
40- @echo " test Run all tests (v1.10.1) "
24+ @echo " test Run all tests"
4125 @echo " test-local Run all tests with local image"
42- @echo " "
43- @echo " Multi-version:"
44- @echo " test-all-versions Test both v1.9.1 and v1.10.1"
45- @echo " test-all-versions-local Test both versions with local image"
46- @echo " full-test Build + test all versions locally"
26+ @echo " full-test Build + run all tests locally"
4727
4828# ── Docker ──────────────────────────────────────────────
4929
5030build-docker :
5131 @echo " Building lumerad Docker image..."
52- ./build-docker.sh
32+ LUMERA_VERSION= $( LUMERA_VERSION ) ./build-docker.sh
5333
5434clean-docker :
5535 -docker rmi lumerad-local:local 2> /dev/null || true
@@ -67,64 +47,26 @@ verify:
6747
6848# ── Genesis tests ───────────────────────────────────────
6949
70- test-genesis-v1.9.1 :
71- LUMERA_VERSION=v1.9.1 go test -v -timeout 10m -run TestLumeraGenesisSetup
72-
73- test-genesis-v1.10.1 :
74- LUMERA_VERSION=v1.10.1 go test -v -timeout 10m -run TestLumeraGenesisSetup
75-
76- test-genesis-v1.9.1-local : build-docker
77- LUMERA_VERSION=v1.9.1 USE_LOCAL_IMAGE=true go test -v -timeout 10m -run TestLumeraGenesisSetup
78-
79- test-genesis-v1.10.1-local : build-docker
80- LUMERA_VERSION=v1.10.1 USE_LOCAL_IMAGE=true go test -v -timeout 10m -run TestLumeraGenesisSetup
50+ test-genesis :
51+ LUMERA_VERSION=$(LUMERA_VERSION ) go test -v -timeout 10m -run TestLumeraGenesisSetup
8152
82- # Shortcuts (default v1.10.1)
83- test-genesis : test-genesis-v1.10.1
84- test-genesis-local : test-genesis-v1.10.1-local
53+ test-genesis-local : build-docker
54+ LUMERA_VERSION=$(LUMERA_VERSION ) USE_LOCAL_IMAGE=true go test -v -timeout 10m -run TestLumeraGenesisSetup
8555
8656# ── ICA tests ───────────────────────────────────────────
8757
88- test-ica-v1.9.1 :
89- LUMERA_VERSION=v1.9.1 go test -v -timeout 20m -run TestOsmosisLumeraICA
90-
91- test-ica-v1.10.1 :
92- LUMERA_VERSION=v1.10.1 go test -v -timeout 20m -run TestOsmosisLumeraICA
93-
94- test-ica-v1.9.1-local : build-docker
95- LUMERA_VERSION=v1.9.1 USE_LOCAL_IMAGE=true go test -v -timeout 20m -run TestOsmosisLumeraICA
96-
97- test-ica-v1.10.1-local : build-docker
98- LUMERA_VERSION=v1.10.1 USE_LOCAL_IMAGE=true go test -v -timeout 20m -run TestOsmosisLumeraICA
99-
100- # Shortcuts (default v1.10.1)
101- test-ica : test-ica-v1.10.1
102- test-ica-local : test-ica-v1.10.1-local
103-
104- # ── All tests for a version ─────────────────────────────
105-
106- test-v1.9.1 :
107- LUMERA_VERSION=v1.9.1 go test -v -timeout 30m ./...
108-
109- test-v1.10.1 :
110- LUMERA_VERSION=v1.10.1 go test -v -timeout 30m ./...
111-
112- test-v1.9.1-local : build-docker
113- LUMERA_VERSION=v1.9.1 USE_LOCAL_IMAGE=true go test -v -timeout 30m ./...
114-
115- test-v1.10.1-local : build-docker
116- LUMERA_VERSION=v1.10.1 USE_LOCAL_IMAGE=true go test -v -timeout 30m ./...
58+ test-ica :
59+ LUMERA_VERSION=$(LUMERA_VERSION ) go test -v -timeout 20m -run TestOsmosisLumeraICA
11760
118- # Shortcuts (default v1.10.1)
119- test : test-v1.10.1
120- test-local : test-v1.10.1-local
61+ test-ica-local : build-docker
62+ LUMERA_VERSION=$(LUMERA_VERSION ) USE_LOCAL_IMAGE=true go test -v -timeout 20m -run TestOsmosisLumeraICA
12163
122- # ── Multi-version ───────────────────────────────────────
64+ # ── All tests ──── ───────────────────────────────────────
12365
124- test-all-versions :
125- go test -v -timeout 30m -run TestBothVersions
66+ test :
67+ LUMERA_VERSION= $( LUMERA_VERSION ) go test -v -timeout 30m ./...
12668
127- test-all-versions- local : build-docker
128- USE_LOCAL_IMAGE=true go test -v -timeout 30m -run TestBothVersions
69+ test-local : build-docker
70+ LUMERA_VERSION= $( LUMERA_VERSION ) USE_LOCAL_IMAGE=true go test -v -timeout 30m ./...
12971
130- full-test : build-docker test-all-versions -local
72+ full-test : test-local
0 commit comments