-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move zk test to a different file to avoid merge conflicts
- Loading branch information
Showing
10 changed files
with
391 additions
and
378 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
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
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 |
---|---|---|
|
@@ -26,3 +26,6 @@ mod verify; | |
mod verify_bytecode; | ||
|
||
mod ext_integration; | ||
mod zk_build; | ||
mod zk_cmd; | ||
mod zk_script; |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
use foundry_test_utils::util::OutputExt; | ||
use regex::Regex; | ||
|
||
// tests build output is as expected in zksync mode | ||
forgetest_init!(test_zk_build_sizes, |prj, cmd| { | ||
cmd.args(["build", "--sizes", "--zksync", "--evm-version", "shanghai"]); | ||
let stdout = cmd.assert_success().get_output().stdout_lossy(); | ||
let pattern = | ||
Regex::new(r"\|\s*Counter\s*\|\s*800\s*\|\s*800\s*\|\s*450,199\s*\|\s*450,199\s*\|") | ||
.unwrap(); | ||
|
||
assert!(pattern.is_match(&stdout), "Unexpected size output:\n{stdout}"); | ||
}); |
Oops, something went wrong.