Skip to content

Commit 533fd2e

Browse files
committed
solana: update Makefile
1 parent 1a7abb6 commit 533fd2e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

solana/Makefile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,15 @@ check-idl: idl
6868

6969
$(BUILD_$(NETWORK)): cargo-test
7070

71+
.PHONY: test-sbf
72+
test-sbf:
73+
### Because the tests are performed in a separate module, we need to ensure that the programs are
74+
### built prior to performing `cargo test-sbf`.
75+
cargo build-sbf --features mainnet
76+
### Unfortunately we cannot saturate all CPUs to perform tests due to nondeterministic `RpcError`
77+
### reverts. We constrain the number of threads when we run these tests.
78+
cd modules/matching-engine-testing && cargo test-sbf --features mainnet -- --test-threads 4
79+
7180
.PHONY: anchor-test
7281
anchor-test: anchor-test-setup
7382
cp target/deploy/upgrade_manager.so ts/tests/artifacts/testnet_upgrade_manager.so

0 commit comments

Comments
 (0)