solana/programs/sbf/rust
Alessandro Decina 6679153ca1
CPI: improve test coverage (#31986)
* programs/sbf: add TEST_[FORBID|ALLOW]_WRITE_AFTER_OWNERSHIP_CHANGE*

* programs/sbf: add tests for the AccessViolation -> InstructionError mapping

* cpi: add more tests

* programs/sbf: add tests for immutable AccountInfo pointers

* programs/sbf: add tests for verification of SolAccountInfo pointers too

* programs/sbf: add tests for ref_to_len_in_vm handling in CPI

Add TEST_FORBID_LEN_UPDATE_AFTER_OWNERSHIP_CHANGE_MOVING_DATA_POINTER
and TEST_FORBID_LEN_UPDATE_AFTER_OWNERSHIP_CHANGE that exercise the new
logic.

* cpi: tweak tests

Remove some copy pasta and rename two tests to better describe what they're doing

* cpi: add tests that check that CPI updates all accounts at once

* direct mapping: test that writes to executable accounts trigger ExecutableDataModified

* programs/sbf: add explicit tests for when an account's data allocation changes
2023-09-05 14:27:26 +07:00
..
128bit Upgrades Rust to 1.72.0 & nightly-2023-08-25 (#32961) 2023-09-01 07:26:13 +00:00
128bit_dep Upgrades Rust to 1.72.0 & nightly-2023-08-25 (#32961) 2023-09-01 07:26:13 +00:00
alloc Upgrades Rust to 1.72.0 & nightly-2023-08-25 (#32961) 2023-09-01 07:26:13 +00:00
alt_bn128 Add alt_bn128 syscall tests (and fix related issues) (#31436) 2023-05-22 14:05:10 -07:00
big_mod_exp chore: workspace inheritance (#30939) 2023-03-29 03:28:56 +00:00
call_depth preliminaries for bumping nightly to 2023-08-25 (#33047) 2023-08-29 23:05:35 +00:00
caller_access chore: workspace inheritance (#29893) 2023-02-23 22:01:54 +08:00
curve25519 chore: workspace inheritance (#29893) 2023-02-23 22:01:54 +08:00
custom_heap Upgrades Rust to 1.72.0 & nightly-2023-08-25 (#32961) 2023-09-01 07:26:13 +00:00
dep_crate chore: workspace inheritance (#29893) 2023-02-23 22:01:54 +08:00
deprecated_loader CPI: improve test coverage (#31986) 2023-09-05 14:27:26 +07:00
dup_accounts Upgrades Rust to 1.72.0 & nightly-2023-08-25 (#32961) 2023-09-01 07:26:13 +00:00
error_handling chore: workspace inheritance (#29893) 2023-02-23 22:01:54 +08:00
external_spend Upgrades Rust to 1.72.0 & nightly-2023-08-25 (#32961) 2023-09-01 07:26:13 +00:00
finalize chore: workspace inheritance (#29893) 2023-02-23 22:01:54 +08:00
get_minimum_delegation chore: workspace inheritance (#29893) 2023-02-23 22:01:54 +08:00
inner_instruction_alignment_check ci: test-checks.sh all sbf code & use nightly only (#30602) 2023-03-13 14:28:34 +09:00
instruction_introspection ci: test-checks.sh all sbf code & use nightly only (#30602) 2023-03-13 14:28:34 +09:00
invoke CPI: improve test coverage (#31986) 2023-09-05 14:27:26 +07:00
invoke_and_error chore: workspace inheritance (#29893) 2023-02-23 22:01:54 +08:00
invoke_and_ok chore: workspace inheritance (#29893) 2023-02-23 22:01:54 +08:00
invoke_and_return chore: workspace inheritance (#29893) 2023-02-23 22:01:54 +08:00
invoked CPI: improve test coverage (#31986) 2023-09-05 14:27:26 +07:00
iter Upgrades Rust to 1.72.0 & nightly-2023-08-25 (#32961) 2023-09-01 07:26:13 +00:00
log_data chore: workspace inheritance (#29893) 2023-02-23 22:01:54 +08:00
many_args Upgrades Rust to 1.72.0 & nightly-2023-08-25 (#32961) 2023-09-01 07:26:13 +00:00
many_args_dep Upgrades Rust to 1.72.0 & nightly-2023-08-25 (#32961) 2023-09-01 07:26:13 +00:00
mem ci: test-checks.sh all sbf code & use nightly only (#30602) 2023-03-13 14:28:34 +09:00
membuiltins chore: workspace inheritance (#29893) 2023-02-23 22:01:54 +08:00
noop chore: workspace inheritance (#29893) 2023-02-23 22:01:54 +08:00
panic ci: test-checks.sh all sbf code & use nightly only (#30602) 2023-03-13 14:28:34 +09:00
param_passing chore: workspace inheritance (#29893) 2023-02-23 22:01:54 +08:00
param_passing_dep Upgrades Rust to 1.72.0 & nightly-2023-08-25 (#32961) 2023-09-01 07:26:13 +00:00
poseidon feat(sbf): Add Poseidon syscall (#32680) 2023-08-30 09:43:31 -07:00
rand Bump rand to 0.8, rand_chacha to 0.3, getrandom to 0.2 (#32871) 2023-08-21 19:11:21 +02:00
realloc CPI: improve test coverage (#31986) 2023-09-05 14:27:26 +07:00
realloc_invoke chore: workspace inheritance (#29893) 2023-02-23 22:01:54 +08:00
ro_account_modify chore: workspace inheritance (#29893) 2023-02-23 22:01:54 +08:00
ro_modify chore: workspace inheritance (#29893) 2023-02-23 22:01:54 +08:00
sanity Upgrades Rust to 1.72.0 & nightly-2023-08-25 (#32961) 2023-09-01 07:26:13 +00:00
secp256k1_recover Fix - Upcoming `arithmetic_side_effects` lints (#33000) 2023-08-29 20:58:53 +02:00
sha chore: workspace inheritance (#29893) 2023-02-23 22:01:54 +08:00
sibling_inner_instruction Upgrades Rust to 1.72.0 & nightly-2023-08-25 (#32961) 2023-09-01 07:26:13 +00:00
sibling_instruction chore: workspace inheritance (#29893) 2023-02-23 22:01:54 +08:00
simulation Upgrades Rust to 1.72.0 & nightly-2023-08-25 (#32961) 2023-09-01 07:26:13 +00:00
spoof1 chore: workspace inheritance (#29893) 2023-02-23 22:01:54 +08:00
spoof1_system Upgrades Rust to 1.72.0 & nightly-2023-08-25 (#32961) 2023-09-01 07:26:13 +00:00
sysvar fix sbf sysvar test (#32803) 2023-08-21 09:49:48 -06:00
upgradeable chore: workspace inheritance (#29893) 2023-02-23 22:01:54 +08:00
upgraded chore: workspace inheritance (#29893) 2023-02-23 22:01:54 +08:00