Skip to content

Commit 363e92f

Browse files
committed
Add games preset and agave 2.1.0 test
1 parent 2a7e82f commit 363e92f

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/test.rs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,22 @@ mod tests {
8484
Ok(())
8585
}
8686

87+
#[test]
88+
fn test_games_preset() -> anyhow::Result<()> {
89+
const EXPECTED_HASH: &str = "668ff275819d9276362c6a2636d2a392afe224296e815481b94474785f490025";
90+
let args: Vec<&str> = "verify-from-repo -um --program-id MkabCfyUD6rBTaYHpgKBBpBo5qzWA2pK2hrGGKMurJt https://github.com/solana-developers/solana-game-preset --commit-hash eaf772fd1f21fe03a9974587f5680635e970be38 --mount-path program".split(" ").collect();
91+
test_verify_program_hash_helper(EXPECTED_HASH, &args)?;
92+
Ok(())
93+
}
94+
95+
#[test]
96+
fn test_agave_2_1() -> anyhow::Result<()> {
97+
const EXPECTED_HASH: &str = "29e7713aa3c48e242e2847bc031fe2a03eb61aae5ecaec8728131e16934de465";
98+
let args: Vec<&str> = " verify-from-repo https://github.com/Woody4618/verify-2-1 --program-id kGYz2q2WUYCXhKpgUF4AMR3seDA9eg8sbirP5dhbyhy --commit-hash e0f138fb58b669791c823f44f878cb3547a92a26".split(" ").collect();
99+
test_verify_program_hash_helper(EXPECTED_HASH, &args)?;
100+
Ok(())
101+
}
102+
87103
#[test]
88104
fn test_local_example() -> anyhow::Result<()> {
89105
const EXPECTED_HASH: &str = "08d91368d349c2b56c712422f6d274a1e8f1946ff2ecd1dc3efc3ebace52a760";

0 commit comments

Comments
 (0)