solana/cargo-test-sbf

15 lines
309 B
Plaintext
Raw Normal View History

2020-11-04 18:29:26 -08:00
#!/usr/bin/env bash
here=$(dirname "$0")
maybe_sbf_sdk="--sbf-sdk $here/sdk/sbf"
2020-11-04 18:29:26 -08:00
for a in "$@"; do
if [[ $a = --sbf-sdk ]]; then
maybe_sbf_sdk=
2020-11-04 18:29:26 -08:00
fi
done
export CARGO_BUILD_SBF="$here"/cargo-build-sbf
2020-11-04 18:29:26 -08:00
set -x
exec cargo run --manifest-path "$here"/sdk/cargo-test-sbf/Cargo.toml -- $maybe_sbf_sdk "$@"