Skip to content

Commit 81e65b3

Browse files
authored
Merge pull request #7 from solana-developers/add-test-games-preset
Add games preset and agave 2.1.0 test
2 parents d757efe + b055b55 commit 81e65b3

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

.github/workflows/test.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ jobs:
2121
- test_marginfi_v2
2222
- test_local_example
2323
- test_verify_from_image
24+
- test_games_preset
25+
- test_agave_2_1
2426
steps:
2527
- uses: actions/checkout@v4
2628

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)