We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
perf-config.json
1 parent 1858715 commit b51c7b7Copy full SHA for b51c7b7
collector/src/compile/benchmark/mod.rs
@@ -514,3 +514,24 @@ fn substring_matches(
514
}
515
false
516
517
+
518
+#[cfg(test)]
519
+mod tests {
520
+ use crate::compile::benchmark::get_compile_benchmarks;
521
+ use std::path::Path;
522
523
+ #[test]
524
+ fn check_compile_benchmarks() {
525
+ // Check that we can deserialize all perf-config.json files in the compile benchmark
526
+ // directory.
527
+ let root = env!("CARGO_MANIFEST_DIR");
528
+ let benchmarks = get_compile_benchmarks(
529
+ &Path::new(root).join("compile-benchmarks"),
530
+ None,
531
532
533
+ )
534
+ .unwrap();
535
+ assert!(benchmarks.len() > 0);
536
+ }
537
+}
0 commit comments