Files
runner-images/images/macos/scripts/tests/PipxPackages.Tests.ps1
Erik Bershel ab15087979 [macOS] Introduce macOS-15 code (#10535)
Co-authored-by: Alexey-Ayupov <alexey-ayupov@github.com>
2024-09-03 18:45:06 +02:00

13 lines
396 B
PowerShell

Import-Module "$PSScriptRoot/../helpers/Common.Helpers.psm1"
$os = Get-OSVersion
Describe "PipxPackages" -Skip:($os.IsVentura -or $os.IsSonoma -or $os.IsSequoia) {
$pipxToolset = (Get-ToolsetContent).pipx
$testCases = $pipxToolset | ForEach-Object { @{package = $_.package; cmd = $_.cmd} }
It "<package>" -TestCases $testCases {
"$cmd" | Should -ReturnZeroExitCode
}
}