-
Notifications
You must be signed in to change notification settings - Fork 364
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CLI - loader v3 to v4 migration #4856
base: master
Are you sure you want to change the base?
Conversation
|
runtime/src/bank/tests.rs
Outdated
@@ -13381,6 +13381,180 @@ fn test_deploy_last_epoch_slot() { | |||
assert_eq!(result_with_feature_enabled, Ok(())); | |||
} | |||
|
|||
#[test] | |||
fn test_loader_v3_to_v4_migration() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This test is in #4661, isn't it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes
@@ -4255,6 +4418,46 @@ mod tests { | |||
); | |||
} | |||
|
|||
#[test] | |||
fn test_cli_parse_migrate_program() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we test the error paths too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the CLI. Error handling here is only for slightly nicer error messages. The actual security comes from what we test in test_loader_v3_to_v4_migration
.
|
7d0f4d0
to
8889a6c
Compare
8889a6c
to
70b55b7
Compare
Problem
Split off from #4661 as requested (#4661 (review)).
Summary of Changes
Adds a CLI subcommand for migrating loader-v3 programs to loader-v4.