validate builder::PATH_REMAP in bootstrap tests
Signed-off-by: onur-ozkan <work@onurozkan.dev>
This commit is contained in:
parent
d413ad8f64
commit
ea22e7851f
1 changed files with 13 additions and 0 deletions
|
|
@ -115,6 +115,19 @@ fn test_intersection() {
|
|||
assert_eq!(command_paths, vec![Path::new("library/stdarch")]);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn validate_path_remap() {
|
||||
let build = Build::new(configure("test", &["A"], &["A"]));
|
||||
|
||||
PATH_REMAP
|
||||
.iter()
|
||||
.flat_map(|(_, paths)| paths.iter())
|
||||
.map(|path| build.src.join(path))
|
||||
.for_each(|path| {
|
||||
assert!(path.exists(), "{} should exist.", path.display());
|
||||
});
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_exclude() {
|
||||
let mut config = configure("test", &["A"], &["A"]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue