2023-11-28 02:25:03 +01:00
|
|
|
Import-Module "$PSScriptRoot/../helpers/Common.Helpers.psm1"
|
|
|
|
|
|
2021-12-02 18:35:56 +03:00
|
|
|
Describe "Clang/LLVM" {
|
2022-07-06 11:52:52 +02:00
|
|
|
BeforeAll {
|
2023-12-04 12:13:08 +01:00
|
|
|
$toolsetVersion = (Get-ToolsetContent).llvm.version
|
2022-07-06 11:52:52 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
It "Clang/LLVM <toolsetVersion> is installed and version is correct" {
|
2022-06-28 08:48:08 +02:00
|
|
|
$clangVersion = & "$(brew --prefix llvm@$toolsetVersion)/bin/clang" --version
|
2021-11-11 11:23:05 +03:00
|
|
|
$clangVersion[0] | Should -BeLike "*${toolsetVersion}*"
|
|
|
|
|
}
|
2026-03-24 12:09:02 +01:00
|
|
|
|
|
|
|
|
It "Default clang points to Apple clang" {
|
|
|
|
|
(Get-CommandResult "which clang").Output.Trim() | Should -Be "/usr/bin/clang"
|
|
|
|
|
(Get-CommandResult "clang --version").Output | Should -BeLike "*Apple clang*"
|
|
|
|
|
}
|
2023-11-28 02:25:03 +01:00
|
|
|
}
|