File tree Expand file tree Collapse file tree 2 files changed +20
-3
lines changed Expand file tree Collapse file tree 2 files changed +20
-3
lines changed Original file line number Diff line number Diff line change @@ -55,9 +55,12 @@ test-stable-sbf)
5555 # Install the platform tools
5656 _ platform-tools-sdk/sbf/scripts/install.sh
5757
58- # SBF program tests
58+ # SBPFv0 program tests
5959 _ make -C programs/sbf test-v0
6060
61+ # SBPFv1 program tests
62+ _ make -C programs/sbf clean-all test-v1
63+
6164 exit 0
6265 ;;
6366test-docs)
Original file line number Diff line number Diff line change @@ -2,13 +2,27 @@ SBF_SDK_PATH := ../../platform-tools-sdk/sbf
22SRC_DIR := c/src
33OUT_DIR := target/deploy
44
5- test-v0 : all rust-v0
5+ clean-all : clean
6+ cargo clean
7+
8+ test :
69 SBF_OUT_DIR=$(OUT_DIR ) cargo test --features=" sbf_rust,sbf_c" $(TEST_ARGS )
710
11+ test-v1 :
12+ SBPF_CPU=v1 $(MAKE ) all ; \
13+ $(MAKE ) rust-v1 ; \
14+ $(MAKE ) test
15+
16+ test-v0 : all rust-v0 test
17+
818rust-v0 :
919 cargo +solana build --release --target sbpf-solana-solana --workspace ; \
1020 cp -r target/sbpf-solana-solana/release/* target/deploy
1121
12- .PHONY : rust
22+ rust-v1 :
23+ cargo +solana build --release --target sbpfv1-solana-solana --workspace ; \
24+ cp -r target/sbpfv1-solana-solana/release/* target/deploy
25+
26+ .PHONY : rust-v0
1327
1428include $(SBF_SDK_PATH ) /c/sbf.mk
You can’t perform that action at this time.
0 commit comments