-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Move zk tests to different files (#775)
* Add zkout to gitignore template when in zksync forge init mode * Add test for forge init --zksync * Move zk test to a different file to avoid merge conflicts * Move aave test outside the file
- Loading branch information
Showing
12 changed files
with
400 additions
and
372 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
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 |
---|---|---|
@@ -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.