15 lines
309 B
Bash
Executable File
15 lines
309 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
here=$(dirname "$0")
|
|
|
|
maybe_sbf_sdk="--sbf-sdk $here/sdk/sbf"
|
|
for a in "$@"; do
|
|
if [[ $a = --sbf-sdk ]]; then
|
|
maybe_sbf_sdk=
|
|
fi
|
|
done
|
|
|
|
export CARGO_BUILD_SBF="$here"/cargo-build-sbf
|
|
set -x
|
|
exec cargo run --manifest-path "$here"/sdk/cargo-test-sbf/Cargo.toml -- $maybe_sbf_sdk "$@"
|