Skip to content

Commit

Permalink
chore(wasm-builder): ignore smoke tests (#3194)
Browse files Browse the repository at this point in the history
  • Loading branch information
StackOverflowExcept1on authored and shamilsan committed Sep 11, 2023
1 parent f8e36d9 commit bbb40e1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions scripts/src/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -108,4 +108,5 @@ doc_test() {

time_consuming_tests() {
$CARGO test -p demo-fungible-token --no-fail-fast "$@" -- --nocapture --ignored
$CARGO test -p gear-wasm-builder --no-fail-fast "$@" -- --nocapture --ignored
}
5 changes: 5 additions & 0 deletions utils/wasm-builder/tests/smoke.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,21 +42,25 @@ impl CargoRunner {
}
}

#[ignore]
#[test]
fn test_debug() {
CargoRunner::new().args(["test"]).run();
}

#[ignore]
#[test]
fn build_debug() {
CargoRunner::new().args(["build"]).run()
}

#[ignore]
#[test]
fn test_release() {
CargoRunner::new().args(["test", "--release"]).run()
}

#[ignore]
#[test]
fn build_release() {
CargoRunner::new().args(["build", "--release"]).run()
Expand All @@ -69,6 +73,7 @@ fn build_release_for_target() {
.run()
}

#[ignore]
#[test]
fn no_infinite_build() {
fs::write("test-program/src/rebuild_test.rs", "mod a {}").unwrap();
Expand Down

0 comments on commit bbb40e1

Please sign in to comment.