Files
runner-images/images/linux/scripts/tests/Common.Tests.ps1
Mikhail Timofeev 4416d54d30 [Ubuntu] Remove php installation, tests and software docs for Ubuntu 16 (#3541)
* Remove php installation, tests and software docs for Ubuntu 16

* Add openssl 1.1.1k installation as python toolcache depends on it

* Add a comment about openssl installation on Ubuntu 16
2021-06-10 22:33:08 +03:00

49 lines
1.2 KiB
PowerShell

Describe "PHP" -Skip:(Test-IsUbuntu16) {
[array]$testCases = (Get-ToolsetContent).php.versions | ForEach-Object { @{phpVersion = $_} }
It "php <phpVersion>" -TestCases $testCases {
param (
[string] $phpVersion
)
"php$phpVersion --version" | Should -ReturnZeroExitCode
"php-config$phpVersion --version" | Should -ReturnZeroExitCode
"phpize$phpVersion --version" | Should -ReturnZeroExitCode
}
It "PHPUnit" {
"phpunit --version" | Should -ReturnZeroExitCode
}
It "Composer" {
"composer --version" | Should -ReturnZeroExitCode
}
It "Pear" {
"pear" | Should -ReturnZeroExitCode
}
It "Pecl" {
"pecl" | Should -ReturnZeroExitCode
}
}
Describe "Swift" {
It "swift" {
"swift --version" | Should -ReturnZeroExitCode
}
It "swiftc" {
"swiftc --version" | Should -ReturnZeroExitCode
}
}
Describe "PipxPackages" -Skip:(Test-IsUbuntu16) {
[array]$testCases = (Get-ToolsetContent).pipx | ForEach-Object { @{package=$_.package; cmd = $_.cmd} }
It "<package>" -TestCases $testCases {
"$cmd --version" | Should -ReturnZeroExitCode
}
}