Add program-test tests to bpf programs (#16407)

This commit is contained in:
Jack May
2021-04-07 01:47:15 -07:00
committed by GitHub
parent 6cd4bc5e60
commit 476fd40948
9 changed files with 337 additions and 84 deletions

View File

@ -43,6 +43,14 @@ test-stable-perf)
# BPF solana-sdk legacy compile test
./cargo-build-bpf --manifest-path sdk/Cargo.toml
# BPF Program unit tests
for program in programs/bpf/rust/*; do
if [ -d "${program}" ]; then
_ "$cargo" test --manifest-path "$program"/Cargo.toml
_ "$cargo" test-bpf --manifest-path "$program"/Cargo.toml --bpf-sdk sdk/bpf
fi
done
# BPF program tests
_ make -C programs/bpf/c tests
_ "$cargo" stable test \