Skip to content

Commit

Permalink
Collect all benchmarks as selected tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aakoshh committed Oct 9, 2024
1 parent 63ae996 commit 5e60e31
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tooling/nargo_cli/benches/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ fn get_selected_tests() -> Vec<PathBuf> {
Ok(dir) => PathBuf::from(dir),
Err(_) => std::env::current_dir().unwrap(),
};

let test_dir = manifest_dir
.parent()
.unwrap()
Expand All @@ -15,5 +16,11 @@ fn get_selected_tests() -> Vec<PathBuf> {
.join("execution_success");

let selected_tests = vec!["struct", "eddsa", "regression"];
selected_tests.into_iter().map(|t| test_dir.join(t)).collect()
let mut selected_tests =
selected_tests.into_iter().map(|t| test_dir.join(t)).collect::<Vec<_>>();

let test_dir = test_dir.parent().unwrap().join("benchmarks");
selected_tests.extend(test_dir.read_dir().unwrap().filter_map(|e| e.ok()).map(|e| e.path()));

selected_tests
}

0 comments on commit 5e60e31

Please sign in to comment.