test llvm_out behaviour
Signed-off-by: onur-ozkan <work@onurozkan.dev>
This commit is contained in:
parent
7fb4512ee8
commit
63cc3c7b8f
1 changed files with 17 additions and 0 deletions
|
|
@ -524,6 +524,23 @@ mod dist {
|
|||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn llvm_out_behaviour() {
|
||||
let mut config = configure(&["A"], &["B"]);
|
||||
config.llvm_from_ci = true;
|
||||
let build = Build::new(config.clone());
|
||||
|
||||
let target = TargetSelection::from_user("A");
|
||||
assert!(build.llvm_out(target).ends_with("ci-llvm"));
|
||||
let target = TargetSelection::from_user("B");
|
||||
assert!(build.llvm_out(target).ends_with("llvm"));
|
||||
|
||||
config.llvm_from_ci = false;
|
||||
let build = Build::new(config.clone());
|
||||
let target = TargetSelection::from_user("A");
|
||||
assert!(build.llvm_out(target).ends_with("llvm"));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn build_with_empty_host() {
|
||||
let config = configure(&[], &["C"]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue