solana-program-library/feature-proposal/program/run-tests.sh

16 lines
197 B
Bash
Executable File

#!/usr/bin/env bash
set -ex
cd "$(dirname "$0")"
cargo fmt -- --check
cargo clippy
cargo build
cargo build-bpf
if [[ $1 = -v ]]; then
export RUST_LOG=solana=debug
fi
cargo test
cargo test-bpf