diff --git a/Cargo.lock b/Cargo.lock index 0f5167b4c72cde..de52d1a318d90a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -6909,17 +6909,10 @@ dependencies = [ "log", "proptest", "rustc_version 0.4.0", - "solana-cli", "solana-config-program", - "solana-faucet", "solana-logger", "solana-program-runtime", - "solana-rpc-client", - "solana-rpc-client-api", - "solana-rpc-client-nonce-utils", "solana-sdk", - "solana-streamer", - "solana-test-validator", "solana-vote-program", "test-case", ] @@ -7539,6 +7532,21 @@ dependencies = [ "thiserror", ] +[[package]] +name = "stake-program-test" +version = "1.17.0" +dependencies = [ + "solana-cli", + "solana-faucet", + "solana-rpc-client", + "solana-rpc-client-api", + "solana-rpc-client-nonce-utils", + "solana-sdk", + "solana-stake-program", + "solana-streamer", + "solana-test-validator", +] + [[package]] name = "static_assertions" version = "1.1.0" diff --git a/Cargo.toml b/Cargo.toml index 374a6c435c054b..ee0aa5c1879acd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -88,6 +88,7 @@ members = [ "sdk/program", "send-transaction-service", "stake-accounts", + "stake-program-test", "storage-bigtable", "storage-bigtable/build-proto", "storage-proto", diff --git a/programs/stake/Cargo.toml b/programs/stake/Cargo.toml index d6e2799f500939..d871b3622e3093 100644 --- a/programs/stake/Cargo.toml +++ b/programs/stake/Cargo.toml @@ -21,13 +21,6 @@ solana-vote-program = { workspace = true } assert_matches = { workspace = true } proptest = { workspace = true } solana-logger = { workspace = true } -solana-cli = { workspace = true } -solana-faucet = { workspace = true } -solana-rpc-client = { workspace = true, features = ["default"] } -solana-rpc-client-api = { workspace = true } -solana-rpc-client-nonce-utils = { workspace = true } -solana-streamer = { workspace = true } -solana-test-validator = {workspace = true } test-case = { workspace = true } [build-dependencies] diff --git a/stake-program-test/Cargo.toml b/stake-program-test/Cargo.toml new file mode 100644 index 00000000000000..174de6511fc779 --- /dev/null +++ b/stake-program-test/Cargo.toml @@ -0,0 +1,21 @@ +[package] +name = "stake-program-test" +publish = false +description = "Solana Stake Program Test" +version = { workspace = true } +authors = { workspace = true } +repository = { workspace = true } +homepage = { workspace = true } +license = { workspace = true } +edition = { workspace = true } + +[dependencies] +solana-cli = { workspace = true } +solana-faucet = { workspace = true } +solana-rpc-client = { workspace = true, features = ["default"] } +solana-rpc-client-api = { workspace = true } +solana-rpc-client-nonce-utils = { workspace = true } +solana-sdk = { workspace = true } +solana-stake-program = { workspace = true } +solana-streamer = { workspace = true } +solana-test-validator = { workspace = true } diff --git a/stake-program-test/src/lib.rs b/stake-program-test/src/lib.rs new file mode 100644 index 00000000000000..8b137891791fe9 --- /dev/null +++ b/stake-program-test/src/lib.rs @@ -0,0 +1 @@ + diff --git a/programs/stake/tests/stake.rs b/stake-program-test/tests/stake.rs similarity index 100% rename from programs/stake/tests/stake.rs rename to stake-program-test/tests/stake.rs