-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(zk_toolbox): Add zk_supervisor test prover command (#2614)
## What ❔ Add zk_supervisor test prover command
- Loading branch information
1 parent
e07a39d
commit 0fe173b
Showing
3 changed files
with
25 additions
and
2 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
17 changes: 17 additions & 0 deletions
17
zk_toolbox/crates/zk_supervisor/src/commands/test/prover.rs
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,17 @@ | ||
use common::{cmd::Cmd, logger}; | ||
use config::EcosystemConfig; | ||
use xshell::{cmd, Shell}; | ||
|
||
use crate::messages::MSG_PROVER_TEST_SUCCESS; | ||
|
||
pub fn run(shell: &Shell) -> anyhow::Result<()> { | ||
let ecosystem = EcosystemConfig::from_file(shell)?; | ||
let _dir_guard = shell.push_dir(&ecosystem.link_to_code.join("prover")); | ||
|
||
Cmd::new(cmd!(shell, "cargo test --release --workspace --locked")) | ||
.with_force_run() | ||
.run()?; | ||
|
||
logger::outro(MSG_PROVER_TEST_SUCCESS); | ||
Ok(()) | ||
} |
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