@@ -32,7 +32,7 @@ build-port-alloc:
32
32
33
33
[private ]
34
34
build-test-utils :
35
- cargo build --release -p test-utils
35
+ cargo build --release -p test-utils --all-features
36
36
37
37
####################
38
38
###CHECK COMMANDS###
@@ -171,17 +171,42 @@ test-contract-deploy *ARGS:
171
171
scripts/ test-contract-deploy {{ ARGS}}
172
172
173
173
test-all : build_release build-test-utils
174
- env RUST_LOG=timeboost_builder::submit=debug,block_checker=info,warn target/ release/ run \
174
+ env RUST_LOG=timeboost_builder::submit=debug,block_checker=info,warn \
175
+ target/ release/ run \
175
176
- -verbose \
176
177
- -timeout 120 \
177
178
- -spawn " 1:anvil --port 8545" \
178
179
- -run " 2:sleep 3" \
179
- - -run " 3:scripts/deploy-test-contract" \
180
- - -spawn " 4:target/release/block-maker --port 55000 --committee test-configs/local/committee.toml" \
181
- - -spawn " 4:target/release/yapper --keyset-file test-configs/local/committee.toml" \
182
- - -spawn " 5:target/release/run-committee --configs test-configs/local/ --committee 0 --timeboost target/release/timeboost" \
183
- target/ release/ block-checker -- \
184
- - -config test-configs/ local/ node_0.toml \
185
- - -committee test-configs/ local/ committee.toml \
186
- - -committee-id 0 \
187
- - -blocks 1000
180
+ - -run " 3:scripts/deploy-test-contract test-configs/local/committee.toml http://localhost:8545" \
181
+ - -spawn " 4:target/release/block-maker --bind 127.0.0.1:55000 -c test-configs/local/committee.toml" \
182
+ - -spawn " 4:target/release/yapper -c test-configs/local/committee.toml" \
183
+ - -spawn " 5:target/release/run-committee -c test-configs/local/ -t target/release/timeboost" \
184
+ target/ release/ block-checker -- -c test-configs/ local -b 1000
185
+
186
+ forward-ipv4 val : build-test-utils
187
+ run0 target/ release/ net-setup system --forward-ipv4 {{ val}}
188
+
189
+ create-net : build-test-utils
190
+ run0 target/ release/ net-setup create -c test-configs/ linux/ net.toml
191
+
192
+ delete-net : build-test-utils
193
+ run0 target/ release/ net-setup delete -c test-configs/ linux/ net.toml
194
+
195
+ netsim : build_release build-test-utils
196
+ env RUST_LOG=timeboost_builder::submit=debug,block_checker=info,warn \
197
+ run0 --setenv=PATH --setenv=HOME --setenv=RUST_LOG target/ release/ run \
198
+ - -verbose \
199
+ - -timeout 120 \
200
+ - -clear-env \
201
+ - -env PATH \
202
+ - -env HOME \
203
+ - -env RUST_LOG \
204
+ - -uid ` id -u ` \
205
+ - -gid ` id -g ` \
206
+ - -spawn " 1:anvil --host 10.0.1.0 --port 8545" \
207
+ - -run " 2:sleep 3" \
208
+ - -run " 3:scripts/deploy-test-contract test-configs/linux/committee.toml http://10.0.1.0:8545" \
209
+ - -spawn " 4:target/release/block-maker --bind 10.0.1.0:55000 -c test-configs/linux/committee.toml" \
210
+ - -spawn " 4:target/release/yapper -c test-configs/linux/committee.toml" \
211
+ - -spawn-as-root " 5:target/release/run-committee -u `id -u` -g `id -g` -c test-configs/linux/ -t target/release/timeboost" \
212
+ target/ release/ block-checker -- -c test-configs/ linux -b 200
0 commit comments