Skip to content

Latest commit

 

History

History
53 lines (34 loc) · 1.6 KB

File metadata and controls

53 lines (34 loc) · 1.6 KB

Setup

At the time of writing, SPL repo contains an undeployed version of Token22 with active developments on confidential transfer extension. To run the sample, and the known CLI example, you will need to build the Token22 program from source and deploy it on the solana-test-validator.

Version Requirements

  • solana-test-validator v2.0.1
  • cargo-build-sbf v0.2.0

Validator Setup

  1. git clone https://github.com/solana-labs/solana-program-library.git

  2. cd solana-program-library

  3. git checkout d2f5144c1650179376cb0e2fad6aa656ffd5749a (known working version)

  4. cd token/program-2022

  5. cargo build-sbf --tools-version v1.43

  6. solana-test-validator -r --bpf-program TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb ../../target/deploy/spl_token_2022.so

Test Commands

Running Individual Ingredients

# Run all tests in an ingredient
cargo test -p setup_participants

# Run a specific test from an ingredient
cargo test -p setup_participants setup_basic_participant

Running Recipes (Test Sequences)

# Run all recipes
cargo test -p test-runner

# Run a specific recipe
cargo test -p test-runner recipe::basic_transfer_recipe

Test Output Options

# Show output from successful tests
cargo test -- --nocapture

# Show test execution time
cargo test -- --show-output