2021-10-26 15:30:59 +03:00
|
|
|
Describe "PHP" {
|
2023-12-14 17:33:34 +01:00
|
|
|
$testCases = (Get-ToolsetContent).php.versions | ForEach-Object { @{PhpVersion = $_} }
|
2020-12-25 13:02:25 +03:00
|
|
|
|
|
|
|
|
It "php <phpVersion>" -TestCases $testCases {
|
2023-12-14 17:33:34 +01:00
|
|
|
"php${PhpVersion} --version" | Should -ReturnZeroExitCode
|
|
|
|
|
"php-config${PhpVersion} --version" | Should -ReturnZeroExitCode
|
|
|
|
|
"phpize${PhpVersion} --version" | Should -ReturnZeroExitCode
|
2020-12-25 13:02:25 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
It "PHPUnit" {
|
|
|
|
|
"phpunit --version" | Should -ReturnZeroExitCode
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
It "Composer" {
|
|
|
|
|
"composer --version" | Should -ReturnZeroExitCode
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
It "Pear" {
|
|
|
|
|
"pear" | Should -ReturnZeroExitCode
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
It "Pecl" {
|
|
|
|
|
"pecl" | Should -ReturnZeroExitCode
|
|
|
|
|
}
|
2020-12-29 10:02:46 +03:00
|
|
|
}
|
|
|
|
|
|
2024-04-26 23:18:26 +02:00
|
|
|
Describe "Swift" -Skip:((-not (Test-IsUbuntu20)) -and (-not (Test-IsUbuntu22))) {
|
2020-12-29 10:02:46 +03:00
|
|
|
It "swift" {
|
|
|
|
|
"swift --version" | Should -ReturnZeroExitCode
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
It "swiftc" {
|
|
|
|
|
"swiftc --version" | Should -ReturnZeroExitCode
|
|
|
|
|
}
|
2022-05-30 23:50:57 -07:00
|
|
|
|
|
|
|
|
It "libsourcekitd" {
|
|
|
|
|
"/usr/local/lib/libsourcekitdInProc.so" | Should -Exist
|
|
|
|
|
}
|
2020-12-29 10:02:46 +03:00
|
|
|
}
|
|
|
|
|
|
2021-10-26 15:30:59 +03:00
|
|
|
Describe "PipxPackages" {
|
2023-12-14 17:33:34 +01:00
|
|
|
$testCases = (Get-ToolsetContent).pipx | ForEach-Object { @{package=$_.package; cmd = $_.cmd} }
|
2020-12-29 10:02:46 +03:00
|
|
|
|
|
|
|
|
It "<package>" -TestCases $testCases {
|
2021-03-25 12:40:36 +03:00
|
|
|
"$cmd --version" | Should -ReturnZeroExitCode
|
2020-12-29 10:02:46 +03:00
|
|
|
}
|
|
|
|
|
}
|