-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sc-meta template & install crash fix
- Loading branch information
1 parent
a7dd92b
commit a6ee1d3
Showing
8 changed files
with
48 additions
and
41 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
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
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 |
---|---|---|
|
@@ -106,36 +106,37 @@ fn template_test_current(template_name: &str, sub_path: &str, new_name: &str, ne | |
cargo_test(&target); | ||
} | ||
|
||
#[test] | ||
#[tokio::test] | ||
#[cfg_attr(not(feature = "template-test-released"), ignore)] | ||
fn template_released_adder() { | ||
async fn template_released_adder() { | ||
template_test_released( | ||
"adder", | ||
"released-adder", | ||
"Alin Cruceat <[email protected]>", | ||
); | ||
) | ||
.await; | ||
|
||
cargo_check_interactor("", "released-adder"); | ||
} | ||
|
||
#[test] | ||
#[tokio::test] | ||
#[cfg_attr(not(feature = "template-test-released"), ignore)] | ||
fn template_released_crypto_zombies() { | ||
template_test_released("crypto-zombies", "released-crypto-zombies", ""); | ||
async fn template_released_crypto_zombies() { | ||
template_test_released("crypto-zombies", "released-crypto-zombies", "").await; | ||
} | ||
|
||
#[test] | ||
#[tokio::test] | ||
#[cfg_attr(not(feature = "template-test-released"), ignore)] | ||
fn template_released_empty() { | ||
template_test_released("empty", "released-empty", ""); | ||
async fn template_released_empty() { | ||
template_test_released("empty", "released-empty", "").await; | ||
} | ||
|
||
/// These tests fully replicate the templating process. They | ||
/// - download the last released version of the repo, | ||
/// - create proper contracts, | ||
/// - build the newly created contracts (to wasm) | ||
/// - run all tests (including Go scenarios) on them. | ||
fn template_test_released(template_name: &str, new_name: &str, new_author: &str) { | ||
async fn template_test_released(template_name: &str, new_name: &str, new_author: &str) { | ||
let workspace_path = find_current_workspace().unwrap(); | ||
let target = ContractCreatorTarget { | ||
target_path: workspace_path.join(TEMPLATE_TEMP_DIR_NAME), | ||
|
@@ -149,7 +150,8 @@ fn template_test_released(template_name: &str, new_name: &str, new_author: &str) | |
let repo_source = RepoSource::download_from_github( | ||
RepoVersion::Tag(version_history::LAST_TEMPLATE_VERSION.to_string()), | ||
temp_dir_path, | ||
); | ||
) | ||
.await; | ||
|
||
prepare_target_dir(&target); | ||
|
||
|