Skip to content

Commit c0c58e0

Browse files
committedAug 19, 2022
tests: add tool that runs nodes
Signed-off-by: Jun Kimura <[email protected]>
1 parent 6a5dc19 commit c0c58e0

File tree

7 files changed

+4105
-9
lines changed

7 files changed

+4105
-9
lines changed
 

‎.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
bin/
1+
/bin/
2+
/data/
23

34
#object file
45
*.o

‎Cargo.lock

+8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎Cargo.toml

+2-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ members = [
2020
"modules/service",
2121
"modules/relay/tendermint",
2222
"proto",
23-
"tests/integration"
23+
"tests/integration",
24+
"tools/nodes-runner"
2425
]
2526
exclude = [
2627
"enclave",

‎Makefile

+11-7
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,14 @@ clean:
176176
fmt:
177177
@cargo fmt --all && cd ./enclave && cargo fmt --all
178178

179+
.PHONY: proto
180+
proto:
181+
@cd proto-compiler && cargo run -- compile --ibc /tmp/cosmos/ibc --out ../proto/src/prost
182+
183+
.PHONY: docker
184+
docker:
185+
@cd rust-sgx-sdk/dockerfile && docker build --no-cache -t datachainlab/sgx-rust:2004-1.1.5 -f Dockerfile.2004.nightly .
186+
179187
.PHONY: test
180188
test:
181189
@cargo test $(CARGO_TARGET) --lib --workspace --exclude integration-test
@@ -184,13 +192,9 @@ test:
184192
integration-test: $(Signed_RustEnclave_Name) bin/gaiad
185193
@PATH=${PATH}:$(CURDIR)/bin SGX_MODE=HW cargo test $(CARGO_TARGET) --package integration-test
186194

187-
.PHONY: proto
188-
proto:
189-
@cd proto-compiler && cargo run -- compile --ibc /tmp/cosmos/ibc --out ../proto/src/prost
190-
191-
.PHONY: docker
192-
docker:
193-
@cd rust-sgx-sdk/dockerfile && docker build --no-cache -t datachainlab/sgx-rust:2004-1.1.5 -f Dockerfile.2004.nightly .
195+
.PHONY: test-nodes
196+
test-setup-nodes: bin/gaiad
197+
@PATH=${PATH}:$(CURDIR)/bin cargo run --bin test_setup_with_binary_channel
194198

195199
bin/gaiad:
196200
curl -o ./bin/gaiad -LO https://github.com/cosmos/gaia/releases/download/$(GAIAD_VERSION)/gaiad-$(GAIAD_VERSION)-linux-amd64 && chmod +x ./bin/gaiad

0 commit comments

Comments
 (0)
Please sign in to comment.