Skip to content

Commit ea22e78

Browse files
committed
validate builder::PATH_REMAP in bootstrap tests
Signed-off-by: onur-ozkan <[email protected]>
1 parent d413ad8 commit ea22e78

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/bootstrap/src/core/builder/tests.rs

+13
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,19 @@ fn test_intersection() {
115115
assert_eq!(command_paths, vec![Path::new("library/stdarch")]);
116116
}
117117

118+
#[test]
119+
fn validate_path_remap() {
120+
let build = Build::new(configure("test", &["A"], &["A"]));
121+
122+
PATH_REMAP
123+
.iter()
124+
.flat_map(|(_, paths)| paths.iter())
125+
.map(|path| build.src.join(path))
126+
.for_each(|path| {
127+
assert!(path.exists(), "{} should exist.", path.display());
128+
});
129+
}
130+
118131
#[test]
119132
fn test_exclude() {
120133
let mut config = configure("test", &["A"], &["A"]);

0 commit comments

Comments
 (0)