add live progress display to complement wrapper

Added the `derive` feature to the workspace serde dependency here.
Previously, the dependency was only used in the main package, which
ended up enabling the `derive` feature through transitive serde
dependencies. This is not the case for xtask, so we need to enable it
explicitly.
This commit is contained in:
Benjamin Lee 2024-06-21 00:17:06 -07:00
parent ef6eb27b9b
commit e4e224f5dc
No known key found for this signature in database
GPG key ID: FB9624E2885D55A4
5 changed files with 277 additions and 8 deletions

View file

@ -6,7 +6,10 @@ use xshell::{cmd, Shell};
mod docker;
mod test2json;
use self::{docker::load_docker_image, test2json::run_complement};
use self::{
docker::load_docker_image,
test2json::{count_complement_tests, run_complement},
};
#[derive(clap::Args)]
pub(crate) struct Args;
@ -19,7 +22,9 @@ pub(crate) fn main(_args: Args) -> Result<()> {
let docker_image = load_docker_image(&sh, &toplevel).wrap_err(
"failed to build and load complement-grapevine docker image",
)?;
run_complement(&sh, &docker_image)
let test_count = count_complement_tests(&sh, &docker_image)
.wrap_err("failed to determine total complement test count")?;
run_complement(&sh, &docker_image, test_count)
.wrap_err("failed to run complement tests")?;
Ok(())
}