mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-15 22:36:46 +00:00
136 lines
2.6 KiB
PowerShell
136 lines
2.6 KiB
PowerShell
Import-Module (Join-Path $PSScriptRoot "..\SoftwareReport\SoftwareReport.Common.psm1") -DisableNameChecking
|
|
|
|
Describe "7-Zip" {
|
|
It "7z" {
|
|
"7z" | Should -ReturnZeroExitCode
|
|
}
|
|
}
|
|
|
|
Describe "CMake" {
|
|
It "cmake" {
|
|
"cmake --version" | Should -ReturnZeroExitCode
|
|
}
|
|
}
|
|
|
|
Describe "Kind" {
|
|
It "Kind" {
|
|
"kind version" | Should -ReturnZeroExitCode
|
|
}
|
|
}
|
|
|
|
Describe "DotnetTLS" {
|
|
It "Tls 1.2 is enabled" {
|
|
[Net.ServicePointManager]::SecurityProtocol -band "Tls12" | Should -Be Tls12
|
|
}
|
|
}
|
|
|
|
Describe "Jq" {
|
|
It "Jq" {
|
|
"jq -n ." | Should -ReturnZeroExitCode
|
|
}
|
|
}
|
|
|
|
Describe "Julia" {
|
|
It "Julia path exists" {
|
|
"C:\Julia" | Should -Exist
|
|
}
|
|
|
|
It "Julia" {
|
|
"julia --version" | Should -ReturnZeroExitCode
|
|
}
|
|
}
|
|
|
|
Describe "Mercurial" {
|
|
It "Mercurial" {
|
|
"hg --version" | Should -ReturnZeroExitCode
|
|
}
|
|
}
|
|
|
|
Describe "KubernetesCli" {
|
|
It "kubectl" {
|
|
"kubectl version --client=true --short=true" | Should -ReturnZeroExitCode
|
|
}
|
|
|
|
It "minikube" {
|
|
"minikube version --short" | Should -ReturnZeroExitCode
|
|
}
|
|
}
|
|
|
|
Describe "Mingw64" {
|
|
It "<ToolName>" -TestCases @(
|
|
@{ ToolName = "gcc" }
|
|
@{ ToolName = "g++" }
|
|
@{ ToolName = "make" }
|
|
) {
|
|
"$ToolName --version" | Should -ReturnZeroExitCode
|
|
}
|
|
}
|
|
|
|
Describe "InnoSetup" {
|
|
It "InnoSetup" {
|
|
(Get-Command -Name iscc).CommandType | Should -BeExactly "Application"
|
|
}
|
|
}
|
|
|
|
Describe "GitHub-CLI" {
|
|
It "gh" {
|
|
"gh --version" | Should -ReturnZeroExitCode
|
|
}
|
|
}
|
|
|
|
Describe "CloudFoundryCli" {
|
|
It "cf is located in C:\cf-cli" {
|
|
"C:\cf-cli\cf.exe" | Should -Exist
|
|
}
|
|
|
|
It "cf" {
|
|
"cf --version" | Should -ReturnZeroExitCode
|
|
}
|
|
}
|
|
|
|
Describe "GoogleCouldSDK" {
|
|
It "<ToolName>" -TestCases @(
|
|
@{ ToolName = "bq" }
|
|
@{ ToolName = "gcloud" }
|
|
@{ ToolName = "gsutil" }
|
|
) {
|
|
"$ToolName version" | Should -ReturnZeroExitCode
|
|
}
|
|
}
|
|
|
|
Describe "NET48" {
|
|
It "NET48" {
|
|
$netPath = (Get-DotnetFrameworkTools).Path.Split("<")[0]
|
|
${netPath} + "4.8 Tools" | Should -Exist
|
|
}
|
|
}
|
|
|
|
Describe "NSIS" {
|
|
It "NSIS" {
|
|
"makensis /VERSION" | Should -ReturnZeroExitCode
|
|
}
|
|
}
|
|
|
|
Describe "Nuget" {
|
|
It "Nuget" {
|
|
"nuget" | Should -ReturnZeroExitCode
|
|
}
|
|
}
|
|
|
|
Describe "OpenSSL" {
|
|
It "OpenSSL" {
|
|
"openssl version" | Should -ReturnZeroExitCode
|
|
}
|
|
}
|
|
|
|
Describe "Packer" {
|
|
It "Packer" {
|
|
"packer --version" | Should -ReturnZeroExitCode
|
|
}
|
|
}
|
|
|
|
Describe "Perl" {
|
|
It "Perl" {
|
|
"perl --version" | Should -ReturnZeroExitCode
|
|
}
|
|
} |