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