forked from MystenLabs/sui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
transactional-tests: also provide the rich error in the exp files
- Loading branch information
Showing
45 changed files
with
167 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
crates/sui-adapter-transactional-tests/tests/publish/init_param.exp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
processed 2 tasks | ||
|
||
task 1 'publish'. lines 5-24: | ||
Error: MiscellaneousError | ||
Error: Transaction Effects Status: MiscellaneousError | ||
Execution Error: ExecutionError: ExecutionError { inner: ExecutionErrorInner { kind: ModuleVerificationFailure, source: Some("Expected exactly one parameter for _::M1::init of type &mut sui::tx_context::TxContext") } } |
3 changes: 2 additions & 1 deletion
3
crates/sui-adapter-transactional-tests/tests/publish/init_public.exp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
processed 2 tasks | ||
|
||
task 1 'publish'. lines 5-25: | ||
Error: MiscellaneousError | ||
Error: Transaction Effects Status: MiscellaneousError | ||
Execution Error: ExecutionError: ExecutionError { inner: ExecutionErrorInner { kind: ModuleVerificationFailure, source: Some("_::M1. 'init' function must be private") } } |
3 changes: 2 additions & 1 deletion
3
crates/sui-adapter-transactional-tests/tests/publish/init_ret.exp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
processed 2 tasks | ||
|
||
task 1 'publish'. lines 5-26: | ||
Error: MiscellaneousError | ||
Error: Transaction Effects Status: MiscellaneousError | ||
Execution Error: ExecutionError: ExecutionError { inner: ExecutionErrorInner { kind: ModuleVerificationFailure, source: Some("_::M1, 'init' function cannot have return values") } } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 4 additions & 2 deletions
6
crates/sui-adapter-transactional-tests/tests/sui/move_call_incorrect_function.exp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
processed 2 tasks | ||
|
||
task 0 'run'. lines 7-9: | ||
Error: MiscellaneousError | ||
Error: Transaction Effects Status: MiscellaneousError | ||
Execution Error: ExecutionError: ExecutionError { inner: ExecutionErrorInner { kind: VmError, source: Some(VMError { major_status: LINKER_ERROR, sub_status: None, message: Some("Cannot find ModuleId { address: _, name: Identifier(\"object_basics\") } in data cache"), exec_state: None, location: Undefined, indices: [], offsets: [] }) } } | ||
|
||
task 1 'run'. lines 10-10: | ||
Error: MiscellaneousError | ||
Error: Transaction Effects Status: MiscellaneousError | ||
Execution Error: ExecutionError: ExecutionError { inner: ExecutionErrorInner { kind: FunctionNotFound, source: Some("Could not resolve function 'foo' in module sui::object_basics") } } |
3 changes: 2 additions & 1 deletion
3
crates/sui-adapter-transactional-tests/tests/sui/publish_module_non_zero_address.exp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
processed 2 tasks | ||
|
||
task 1 'publish'. lines 8-10: | ||
Error: MiscellaneousError | ||
Error: Transaction Effects Status: MiscellaneousError | ||
Execution Error: ExecutionError: ExecutionError { inner: ExecutionErrorInner { kind: ModulePublishFailure, source: Some("Publishing module M with non-zero address is not allowed") } } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 4 additions & 2 deletions
6
crates/sui-verifier-transactional-tests/tests/entry_points/generic_with_key_invalid.exp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
processed 2 tasks | ||
|
||
task 0 'publish'. lines 6-16: | ||
Error: MiscellaneousError | ||
Error: Transaction Effects Status: MiscellaneousError | ||
Execution Error: ExecutionError: ExecutionError { inner: ExecutionErrorInner { kind: ModuleVerificationFailure, source: Some("Invalid entry point parameter type. Expected primitive or object type. Got: std::option::Option<T0>") } } | ||
|
||
task 1 'publish'. lines 18-28: | ||
Error: MiscellaneousError | ||
Error: Transaction Effects Status: MiscellaneousError | ||
Execution Error: ExecutionError: ExecutionError { inner: ExecutionErrorInner { kind: ModuleVerificationFailure, source: Some("Invalid entry point parameter type. Expected primitive or object type. Got: vector<std::option::Option<T0>>") } } |
3 changes: 2 additions & 1 deletion
3
crates/sui-verifier-transactional-tests/tests/entry_points/non_key_struct.exp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
processed 1 task | ||
|
||
task 0 'publish'. lines 6-17: | ||
Error: MiscellaneousError | ||
Error: Transaction Effects Status: MiscellaneousError | ||
Execution Error: ExecutionError: ExecutionError { inner: ExecutionErrorInner { kind: ModuleVerificationFailure, source: Some("Invalid entry point parameter type. Expected primitive or object type. Got: _::m::S") } } |
6 changes: 4 additions & 2 deletions
6
crates/sui-verifier-transactional-tests/tests/entry_points/non_key_struct_generic.exp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
processed 2 tasks | ||
|
||
task 0 'publish'. lines 6-21: | ||
Error: MiscellaneousError | ||
Error: Transaction Effects Status: MiscellaneousError | ||
Execution Error: ExecutionError: ExecutionError { inner: ExecutionErrorInner { kind: ModuleVerificationFailure, source: Some("Invalid entry point parameter type. Expected primitive or object type. Got: _::m::Obj<_::m::NoStore>") } } | ||
|
||
task 1 'publish'. lines 23-35: | ||
Error: MiscellaneousError | ||
Error: Transaction Effects Status: MiscellaneousError | ||
Execution Error: ExecutionError: ExecutionError { inner: ExecutionErrorInner { kind: ModuleVerificationFailure, source: Some("Invalid entry point parameter type. Expected primitive or object type. Got: _::m::Obj<T0>") } } |
3 changes: 2 additions & 1 deletion
3
crates/sui-verifier-transactional-tests/tests/entry_points/non_key_struct_vector.exp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
processed 1 task | ||
|
||
task 0 'publish'. lines 6-17: | ||
Error: MiscellaneousError | ||
Error: Transaction Effects Status: MiscellaneousError | ||
Execution Error: ExecutionError: ExecutionError { inner: ExecutionErrorInner { kind: ModuleVerificationFailure, source: Some("Invalid entry point parameter type. Expected primitive or object type. Got: vector<_::m::S>") } } |
12 changes: 8 additions & 4 deletions
12
crates/sui-verifier-transactional-tests/tests/entry_points/return_values.exp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,17 @@ | ||
processed 4 tasks | ||
|
||
task 0 'publish'. lines 4-11: | ||
Error: MiscellaneousError | ||
Error: Transaction Effects Status: MiscellaneousError | ||
Execution Error: ExecutionError: ExecutionError { inner: ExecutionErrorInner { kind: ModuleVerificationFailure, source: Some("Entry function foo cannot have return values") } } | ||
|
||
task 1 'publish'. lines 13-20: | ||
Error: MiscellaneousError | ||
Error: Transaction Effects Status: MiscellaneousError | ||
Execution Error: ExecutionError: ExecutionError { inner: ExecutionErrorInner { kind: ModuleVerificationFailure, source: Some("Entry function foo cannot have return values") } } | ||
|
||
task 2 'publish'. lines 22-29: | ||
Error: MiscellaneousError | ||
Error: Transaction Effects Status: MiscellaneousError | ||
Execution Error: ExecutionError: ExecutionError { inner: ExecutionErrorInner { kind: ModuleVerificationFailure, source: Some("Entry function foo cannot have return values") } } | ||
|
||
task 3 'publish'. lines 32-39: | ||
Error: MiscellaneousError | ||
Error: Transaction Effects Status: MiscellaneousError | ||
Execution Error: ExecutionError: ExecutionError { inner: ExecutionErrorInner { kind: ModuleVerificationFailure, source: Some("Entry function foo cannot have return values") } } |
3 changes: 2 additions & 1 deletion
3
crates/sui-verifier-transactional-tests/tests/global_storage_access/all.exp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
processed 1 task | ||
|
||
task 0 'publish'. lines 4-31: | ||
Error: MiscellaneousError | ||
Error: Transaction Effects Status: MiscellaneousError | ||
Execution Error: ExecutionError: ExecutionError { inner: ExecutionErrorInner { kind: ModuleVerificationFailure, source: Some("Access to Move global storage is not allowed. Found in function no: [Exists(StructDefinitionIndex(0)), ExistsGeneric(StructDefInstantiationIndex(0)), ImmBorrowGlobal(StructDefinitionIndex(0)), ImmBorrowGlobalGeneric(StructDefInstantiationIndex(0)), MutBorrowGlobal(StructDefinitionIndex(0)), MutBorrowGlobalGeneric(StructDefInstantiationIndex(0)), MoveFrom(StructDefinitionIndex(0)), MoveFromGeneric(StructDefInstantiationIndex(0)), MoveTo(StructDefinitionIndex(0)), MoveToGeneric(StructDefInstantiationIndex(0))]") } } |
6 changes: 4 additions & 2 deletions
6
crates/sui-verifier-transactional-tests/tests/global_storage_access/borrow_global.exp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
processed 2 tasks | ||
|
||
task 0 'publish'. lines 4-15: | ||
Error: MiscellaneousError | ||
Error: Transaction Effects Status: MiscellaneousError | ||
Execution Error: ExecutionError: ExecutionError { inner: ExecutionErrorInner { kind: ModuleVerificationFailure, source: Some("Access to Move global storage is not allowed. Found in function no: [ImmBorrowGlobal(StructDefinitionIndex(0))]") } } | ||
|
||
task 1 'publish'. lines 17-27: | ||
Error: MiscellaneousError | ||
Error: Transaction Effects Status: MiscellaneousError | ||
Execution Error: ExecutionError: ExecutionError { inner: ExecutionErrorInner { kind: ModuleVerificationFailure, source: Some("Access to Move global storage is not allowed. Found in function no: [ImmBorrowGlobalGeneric(StructDefInstantiationIndex(0))]") } } |
6 changes: 4 additions & 2 deletions
6
crates/sui-verifier-transactional-tests/tests/global_storage_access/borrow_global_mut.exp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
processed 2 tasks | ||
|
||
task 0 'publish'. lines 4-15: | ||
Error: MiscellaneousError | ||
Error: Transaction Effects Status: MiscellaneousError | ||
Execution Error: ExecutionError: ExecutionError { inner: ExecutionErrorInner { kind: ModuleVerificationFailure, source: Some("Access to Move global storage is not allowed. Found in function no: [MutBorrowGlobal(StructDefinitionIndex(0))]") } } | ||
|
||
task 1 'publish'. lines 17-27: | ||
Error: MiscellaneousError | ||
Error: Transaction Effects Status: MiscellaneousError | ||
Execution Error: ExecutionError: ExecutionError { inner: ExecutionErrorInner { kind: ModuleVerificationFailure, source: Some("Access to Move global storage is not allowed. Found in function no: [MutBorrowGlobalGeneric(StructDefInstantiationIndex(0))]") } } |
6 changes: 4 additions & 2 deletions
6
crates/sui-verifier-transactional-tests/tests/global_storage_access/exists.exp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
processed 2 tasks | ||
|
||
task 0 'publish'. lines 4-14: | ||
Error: MiscellaneousError | ||
Error: Transaction Effects Status: MiscellaneousError | ||
Execution Error: ExecutionError: ExecutionError { inner: ExecutionErrorInner { kind: ModuleVerificationFailure, source: Some("Access to Move global storage is not allowed. Found in function no: [Exists(StructDefinitionIndex(0))]") } } | ||
|
||
task 1 'publish'. lines 16-25: | ||
Error: MiscellaneousError | ||
Error: Transaction Effects Status: MiscellaneousError | ||
Execution Error: ExecutionError: ExecutionError { inner: ExecutionErrorInner { kind: ModuleVerificationFailure, source: Some("Access to Move global storage is not allowed. Found in function no: [ExistsGeneric(StructDefInstantiationIndex(0))]") } } |
6 changes: 4 additions & 2 deletions
6
crates/sui-verifier-transactional-tests/tests/global_storage_access/move_from.exp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
processed 2 tasks | ||
|
||
task 0 'publish'. lines 4-20: | ||
Error: MiscellaneousError | ||
Error: Transaction Effects Status: MiscellaneousError | ||
Execution Error: ExecutionError: ExecutionError { inner: ExecutionErrorInner { kind: ModuleVerificationFailure, source: Some("Access to Move global storage is not allowed. Found in function no: [MoveFrom(StructDefinitionIndex(0))]") } } | ||
|
||
task 1 'publish'. lines 22-38: | ||
Error: MiscellaneousError | ||
Error: Transaction Effects Status: MiscellaneousError | ||
Execution Error: ExecutionError: ExecutionError { inner: ExecutionErrorInner { kind: ModuleVerificationFailure, source: Some("Access to Move global storage is not allowed. Found in function no: [MoveFromGeneric(StructDefInstantiationIndex(0))]") } } |
6 changes: 4 additions & 2 deletions
6
crates/sui-verifier-transactional-tests/tests/global_storage_access/move_to.exp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
processed 2 tasks | ||
|
||
task 0 'publish'. lines 4-15: | ||
Error: MiscellaneousError | ||
Error: Transaction Effects Status: MiscellaneousError | ||
Execution Error: ExecutionError: ExecutionError { inner: ExecutionErrorInner { kind: ModuleVerificationFailure, source: Some("Access to Move global storage is not allowed. Found in function no: [MoveTo(StructDefinitionIndex(0))]") } } | ||
|
||
task 1 'publish'. lines 17-27: | ||
Error: MiscellaneousError | ||
Error: Transaction Effects Status: MiscellaneousError | ||
Execution Error: ExecutionError: ExecutionError { inner: ExecutionErrorInner { kind: ModuleVerificationFailure, source: Some("Access to Move global storage is not allowed. Found in function no: [MoveToGeneric(StructDefInstantiationIndex(0))]") } } |
Oops, something went wrong.