Remove bloat due to test symbols (#5965)

This commit is contained in:
Jack May
2019-09-18 19:54:10 -07:00
committed by GitHub
parent 10565277d6
commit 0d16db2d1b
31 changed files with 207 additions and 19 deletions

View File

@ -15,6 +15,9 @@ edition = "2018"
solana-sdk = { path = "../../../../sdk/", version = "0.19.0-pre0", default-features = false }
solana-bpf-rust-param-passing-dep = { path = "../param_passing_dep", version = "0.19.0-pre0" }
[dev_dependencies]
solana-sdk-bpf-test = { path = "../../../../sdk/bpf/rust/test", version = "0.19.0-pre0" }
[features]
program = ["solana-sdk/program"]
default = ["program"]

View File

@ -23,3 +23,15 @@ pub extern "C" fn entrypoint(_input: *mut u8) -> u32 {
SUCCESS
}
#[cfg(test)]
mod test {
use super::*;
// Pulls in the stubs requried for `info!()`
solana_sdk_bpf_test::stubs!();
#[test]
fn test_entrypoint() {
assert_eq!(SUCCESS, entrypoint(std::ptr::null_mut()));
}
}