Skip to content

Commit eb34ace

Browse files
committed
improve test and fix cicd script
1 parent e35f93d commit eb34ace

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

basics/hello-solana/asm/cicd.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
# It also serves as a reference for the commands used for building & deploying Solana programs.
55
# Run this bad boy with "bash cicd.sh" or "./cicd.sh"
66

7-
cargo build-sbf --manifest-path=./program/Cargo.toml --bpf-out-dir=./program/target/so
8-
solana program deploy ./program/target/so/program.so
7+
sbpf build --deploy-dir ./tests/fixtures/
8+
solana program deploy ./tests/fixtures/hello-solana-asm-program.so

basics/hello-solana/asm/src/lib.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,10 @@ mod tests {
3434

3535
let res = svm.send_transaction(tx);
3636
assert!(res.is_ok());
37+
38+
let logs = &res.unwrap().logs;
39+
40+
assert!(logs[0].starts_with("Program 11157t3sqMV725NVRLrVQbAu98Jjfk1uCKehJnXXQs"));
41+
assert_eq!(logs[1], "Program log: Hello, Solana!");
3742
}
3843
}

0 commit comments

Comments
 (0)