cargo-test-sbf 339 B

1234567891011121314
  1. #!/usr/bin/env bash
  2. here=$(dirname "$0")
  3. maybe_sbf_sdk="--sbf-sdk $here/platform-tools-sdk/sbf"
  4. for a in "$@"; do
  5. if [[ $a = --sbf-sdk ]]; then
  6. maybe_sbf_sdk=
  7. fi
  8. done
  9. export CARGO_BUILD_SBF="$here"/cargo-build-sbf
  10. set -x
  11. exec cargo run --manifest-path "$here"/platform-tools-sdk/cargo-test-sbf/Cargo.toml -- $maybe_sbf_sdk "$@"