diff --git a/images/linux/scripts/tests/Tools.Tests.ps1 b/images/linux/scripts/tests/Tools.Tests.ps1 index 5d7c5a85..97a364b1 100644 --- a/images/linux/scripts/tests/Tools.Tests.ps1 +++ b/images/linux/scripts/tests/Tools.Tests.ps1 @@ -257,22 +257,16 @@ Describe "HHVM" -Skip:(Test-IsUbuntu22) { } Describe "Homebrew" { - $brewToolset = (Get-ToolsetContent).brew - $testCases = $brewToolset | ForEach-Object { @{brewName = $_.name; brewCommand = $_.command} } - It "homebrew" { "brew --version" | Should -ReturnZeroExitCode } - It "zstd has /usr/local/bin symlink" { - "/usr/local/bin/zstd" | Should -Exist - } + Context "Packages" { + $testCases = (Get-ToolsetContent).brew | ForEach-Object { @{ ToolName = $_.name } } - It "homebrew package " -TestCases $testCases { - $brewPrefix = brew --prefix $brewName - $brewPackage = Join-Path $brewPrefix "bin" $brewCommand - - "$brewPackage --version" | Should -ReturnZeroExitCode + It "" -TestCases $testCases { + "$ToolName --version" | Should -Not -BeNullOrEmpty + } } } diff --git a/images/linux/toolsets/toolset-1804.json b/images/linux/toolsets/toolset-1804.json index b4a42783..264c6d96 100644 --- a/images/linux/toolsets/toolset-1804.json +++ b/images/linux/toolsets/toolset-1804.json @@ -217,14 +217,7 @@ ] }, "brew": [ - { - "name": "gcc@11", - "command": "gcc-11" - }, - { - "name": "zstd", - "command": "zstd" - } + {"name": "zstd"} ], "docker": { "images": [ diff --git a/images/linux/toolsets/toolset-2004.json b/images/linux/toolsets/toolset-2004.json index 01ae9d0f..df9434cd 100644 --- a/images/linux/toolsets/toolset-2004.json +++ b/images/linux/toolsets/toolset-2004.json @@ -217,14 +217,7 @@ ] }, "brew": [ - { - "name": "gcc@11", - "command": "gcc-11" - }, - { - "name": "zstd", - "command": "zstd" - } + {"name": "zstd"} ], "docker": { "images": [ diff --git a/images/linux/toolsets/toolset-2204.json b/images/linux/toolsets/toolset-2204.json index f16f0ec6..3c3c4bb0 100644 --- a/images/linux/toolsets/toolset-2204.json +++ b/images/linux/toolsets/toolset-2204.json @@ -201,10 +201,7 @@ ] }, "brew": [ - { - "name": "zstd", - "command": "zstd" - } + {"name": "zstd"} ], "docker": { "images": [