Skip to content

Commit

Permalink
Merge pull request #7 from solana-developers/add-test-games-preset
Browse files Browse the repository at this point in the history
Add games preset and agave 2.1.0 test
  • Loading branch information
ngundotra authored Nov 11, 2024
2 parents d757efe + b055b55 commit 81e65b3
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ jobs:
- test_marginfi_v2
- test_local_example
- test_verify_from_image
- test_games_preset
- test_agave_2_1
steps:
- uses: actions/checkout@v4

Expand Down
16 changes: 16 additions & 0 deletions src/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,22 @@ mod tests {
Ok(())
}

#[test]
fn test_games_preset() -> anyhow::Result<()> {
const EXPECTED_HASH: &str = "668ff275819d9276362c6a2636d2a392afe224296e815481b94474785f490025";
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();
test_verify_program_hash_helper(EXPECTED_HASH, &args)?;
Ok(())
}

#[test]
fn test_agave_2_1() -> anyhow::Result<()> {
const EXPECTED_HASH: &str = "29e7713aa3c48e242e2847bc031fe2a03eb61aae5ecaec8728131e16934de465";
let args: Vec<&str> = "verify-from-repo https://github.com/Woody4618/verify-2-1 --program-id kGYz2q2WUYCXhKpgUF4AMR3seDA9eg8sbirP5dhbyhy --commit-hash e0f138fb58b669791c823f44f878cb3547a92a26".split(" ").collect();
test_verify_program_hash_helper(EXPECTED_HASH, &args)?;
Ok(())
}

#[test]
fn test_local_example() -> anyhow::Result<()> {
const EXPECTED_HASH: &str = "08d91368d349c2b56c712422f6d274a1e8f1946ff2ecd1dc3efc3ebace52a760";
Expand Down

0 comments on commit 81e65b3

Please sign in to comment.