* Generate keypair file for c program deployment
* Build and use solana-keygen in test-stable-perf
(cherry picked from commit bba1b49663
)
Co-authored-by: Jack May <jack@solana.com>
This commit is contained in:
@ -39,6 +39,10 @@ test-stable)
|
|||||||
_ "$cargo" stable test --jobs "$NPROC" --all --exclude solana-local-cluster ${V:+--verbose} -- --nocapture
|
_ "$cargo" stable test --jobs "$NPROC" --all --exclude solana-local-cluster ${V:+--verbose} -- --nocapture
|
||||||
;;
|
;;
|
||||||
test-stable-perf)
|
test-stable-perf)
|
||||||
|
# solana-keygen required when building C programs
|
||||||
|
_ "$cargo" build --manifest-path=keygen/Cargo.toml
|
||||||
|
export PATH="$PWD/target/debug":$PATH
|
||||||
|
|
||||||
# BPF solana-sdk legacy compile test
|
# BPF solana-sdk legacy compile test
|
||||||
./cargo-build-bpf --manifest-path sdk/Cargo.toml
|
./cargo-build-bpf --manifest-path sdk/Cargo.toml
|
||||||
|
|
||||||
|
@ -168,6 +168,11 @@ $1: $2
|
|||||||
@echo "[lld] $1 ($2)"
|
@echo "[lld] $1 ($2)"
|
||||||
$(_@)mkdir -p $(dir $1)
|
$(_@)mkdir -p $(dir $1)
|
||||||
$(_@)$(LLD) $(BPF_LLD_FLAGS) -o $1 $2
|
$(_@)$(LLD) $(BPF_LLD_FLAGS) -o $1 $2
|
||||||
|
ifeq (,$(wildcard $(subst .so,-keypair.json,$1)))
|
||||||
|
$(_@)solana-keygen new --no-passphrase --silent -o $(subst .so,-keypair.json,$1)
|
||||||
|
endif
|
||||||
|
@echo To deploy this program:
|
||||||
|
@echo $$$$ solana program deploy $(realpath $1)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define TEST_C_RULE
|
define TEST_C_RULE
|
||||||
|
Reference in New Issue
Block a user