mirror of
https://github.com/actions/runner-images.git
synced 2026-01-06 18:19:54 +08:00
[Ubuntu] Implement new directories hierarchy (#8627)
This commit is contained in:
committed by
GitHub
parent
d1f2c9a3be
commit
5d40b1e213
52
images/ubuntu/scripts/tests/Common.Tests.ps1
Normal file
52
images/ubuntu/scripts/tests/Common.Tests.ps1
Normal file
@@ -0,0 +1,52 @@
|
||||
Describe "PHP" {
|
||||
|
||||
[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
|
||||
}
|
||||
|
||||
It "libsourcekitd" {
|
||||
"/usr/local/lib/libsourcekitdInProc.so" | Should -Exist
|
||||
}
|
||||
}
|
||||
|
||||
Describe "PipxPackages" {
|
||||
[array]$testCases = (Get-ToolsetContent).pipx | ForEach-Object { @{package=$_.package; cmd = $_.cmd} }
|
||||
|
||||
It "<package>" -TestCases $testCases {
|
||||
"$cmd --version" | Should -ReturnZeroExitCode
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user