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.
[adapter] Use Move's transactional test framework (MystenLabs#1643)
* [adapter] Use Move's transactional test framework - Move has a transactional test framework designed for invoking the adapter in a series of transactions specified in a file - Added a Sui instantiation of this - Used it for some adapter tests (more to come)
- Loading branch information
Showing
21 changed files
with
982 additions
and
113 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
10 changes: 0 additions & 10 deletions
10
sui_programmability/adapter/src/unit_tests/data/publish_init_param/Move.toml
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
sui_programmability/adapter/src/unit_tests/data/publish_init_public/Move.toml
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
sui_programmability/adapter/src/unit_tests/data/publish_init_ret/Move.toml
This file was deleted.
Oops, something went wrong.
16 changes: 16 additions & 0 deletions
16
sui_programmability/adapter/transactional-tests/Cargo.toml
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
[package] | ||
name = "sui-adapter-transactional-tests" | ||
version = "0.1.0" | ||
authors = ["Mysten Labs <[email protected]>"] | ||
description = "Adapter and accompanying CLI for local sui development" | ||
license = "Apache-2.0" | ||
publish = false | ||
edition = "2021" | ||
|
||
[dev-dependencies] | ||
datatest-stable = "0.1.1" | ||
sui-transactional-test-runner = { path = "../../transactional-test-runner" } | ||
|
||
[[test]] | ||
name = "tests" | ||
harness = false |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// Copyright (c) 2022, Mysten Labs, Inc. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
#![forbid(unsafe_code)] | ||
|
||
// Empty src/lib.rs to get rusty-tags working. |
4 changes: 4 additions & 0 deletions
4
sui_programmability/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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
processed 2 tasks | ||
|
||
task 1 'publish'. lines 5-24: | ||
Error: Failed to verify the Move module, reason: "'init' function can have 0 or 1 parameter(s)". |
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
4 changes: 4 additions & 0 deletions
4
sui_programmability/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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
processed 2 tasks | ||
|
||
task 1 'publish'. lines 5-25: | ||
Error: Failed to verify the Move module, reason: "_::M1. 'init' function cannot be public". |
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
4 changes: 4 additions & 0 deletions
4
sui_programmability/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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
processed 2 tasks | ||
|
||
task 1 'publish'. lines 5-26: | ||
Error: Failed to verify the Move module, reason: "_::M1, 'init' function cannot have return values". |
Oops, something went wrong.