2024-04-26 23:18:26 +02:00
|
|
|
Import-Module "$PSScriptRoot/../helpers/Common.Helpers.psm1"
|
2020-12-17 09:52:09 +03:00
|
|
|
Describe "azcopy" {
|
|
|
|
|
It "azcopy" {
|
2021-02-24 18:21:51 +03:00
|
|
|
"azcopy --version" | Should -ReturnZeroExitCode
|
2020-12-17 09:52:09 +03:00
|
|
|
}
|
|
|
|
|
|
2021-02-24 18:21:51 +03:00
|
|
|
It "azcopy10 link exists" {
|
2020-12-17 09:52:09 +03:00
|
|
|
"azcopy10 --version" | Should -ReturnZeroExitCode
|
|
|
|
|
}
|
2020-12-23 10:25:52 +03:00
|
|
|
}
|
|
|
|
|
|
2021-10-26 15:30:59 +03:00
|
|
|
Describe "Bicep" {
|
2021-06-24 03:13:00 -05:00
|
|
|
It "Bicep" {
|
|
|
|
|
"bicep --version" | Should -ReturnZeroExitCode
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2020-12-28 11:34:32 +03:00
|
|
|
Describe "Rust" {
|
2021-11-26 12:39:13 +03:00
|
|
|
BeforeAll {
|
|
|
|
|
$env:PATH = "/etc/skel/.cargo/bin:/etc/skel/.rustup/bin:$($env:PATH)"
|
|
|
|
|
$env:RUSTUP_HOME = "/etc/skel/.rustup"
|
|
|
|
|
$env:CARGO_HOME = "/etc/skel/.cargo"
|
|
|
|
|
}
|
2022-05-20 15:40:31 +02:00
|
|
|
|
2020-12-28 11:34:32 +03:00
|
|
|
It "Rustup is installed" {
|
|
|
|
|
"rustup --version" | Should -ReturnZeroExitCode
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
It "Rustc is installed" {
|
|
|
|
|
"rustc --version" | Should -ReturnZeroExitCode
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
It "Rustdoc is installed" {
|
|
|
|
|
"rustdoc --version" | Should -ReturnZeroExitCode
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
It "Rustfmt is installed" {
|
|
|
|
|
"rustfmt --version" | Should -ReturnZeroExitCode
|
|
|
|
|
}
|
2024-04-26 23:18:26 +02:00
|
|
|
|
|
|
|
|
It "cargo" {
|
|
|
|
|
"cargo --version" | Should -ReturnZeroExitCode
|
|
|
|
|
}
|
2020-12-28 11:34:32 +03:00
|
|
|
|
2024-04-26 23:18:26 +02:00
|
|
|
Context "Cargo dependencies" -Skip:((-not (Test-IsUbuntu20)) -and (-not (Test-IsUbuntu22))) {
|
2020-12-28 11:34:32 +03:00
|
|
|
It "bindgen" {
|
|
|
|
|
"bindgen --version" | Should -ReturnZeroExitCode
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
It "cbindgen" {
|
|
|
|
|
"cbindgen --version" | Should -ReturnZeroExitCode
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
It "cargo-clippy" {
|
|
|
|
|
"cargo-clippy --version" | Should -ReturnZeroExitCode
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
It "Cargo audit" {
|
|
|
|
|
"cargo audit --version" | Should -ReturnZeroExitCode
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
It "Cargo outdated" {
|
|
|
|
|
"cargo outdated --version" | Should -ReturnZeroExitCode
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-12-14 17:33:34 +01:00
|
|
|
|
2020-12-23 15:18:48 +03:00
|
|
|
Describe "Docker" {
|
2024-02-01 13:46:06 +01:00
|
|
|
It "docker client" {
|
|
|
|
|
$version=(Get-ToolsetContent).docker.components | Where-Object { $_.package -eq 'docker-ce-cli' } | Select-Object -ExpandProperty version
|
|
|
|
|
If ($version -ne "latest") {
|
2024-05-25 15:14:03 +02:00
|
|
|
$(sudo docker version --format '{{.Client.Version}}') | Should -BeLike "*$version*"
|
2024-02-01 13:46:06 +01:00
|
|
|
}else{
|
2024-05-25 15:14:03 +02:00
|
|
|
"sudo docker version --format '{{.Client.Version}}'" | Should -ReturnZeroExitCode
|
2024-02-01 13:46:06 +01:00
|
|
|
}
|
2020-12-23 15:18:48 +03:00
|
|
|
}
|
|
|
|
|
|
2024-05-25 15:14:03 +02:00
|
|
|
It "docker server" {
|
|
|
|
|
$version=(Get-ToolsetContent).docker.components | Where-Object { $_.package -eq 'docker-ce' } | Select-Object -ExpandProperty version
|
|
|
|
|
If ($version -ne "latest") {
|
|
|
|
|
$(sudo docker version --format '{{.Server.Version}}') | Should -BeLike "*$version*"
|
|
|
|
|
}else{
|
|
|
|
|
"sudo docker version --format '{{.Server.Version}}'" | Should -ReturnZeroExitCode
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
It "docker client/server versions match" {
|
|
|
|
|
$clientVersion = $(sudo docker version --format '{{.Client.Version}}')
|
|
|
|
|
$serverVersion = $(sudo docker version --format '{{.Server.Version}}')
|
|
|
|
|
$clientVersion | Should -Be $serverVersion
|
|
|
|
|
}
|
|
|
|
|
|
2020-12-23 15:18:48 +03:00
|
|
|
It "docker buildx" {
|
2024-02-01 13:46:06 +01:00
|
|
|
$version=(Get-ToolsetContent).docker.plugins | Where-Object { $_.plugin -eq 'buildx' } | Select-Object -ExpandProperty version
|
|
|
|
|
If ($version -ne "latest") {
|
|
|
|
|
$(docker buildx version) | Should -BeLike "*$version*"
|
|
|
|
|
}else{
|
|
|
|
|
"docker buildx" | Should -ReturnZeroExitCode
|
|
|
|
|
}
|
2020-12-23 15:18:48 +03:00
|
|
|
}
|
|
|
|
|
|
2024-04-03 09:42:13 +02:00
|
|
|
It "docker compose v2" {
|
2024-02-01 13:46:06 +01:00
|
|
|
$version=(Get-ToolsetContent).docker.plugins | Where-Object { $_.plugin -eq 'compose' } | Select-Object -ExpandProperty version
|
|
|
|
|
If ($version -ne "latest") {
|
|
|
|
|
$(docker compose version --short) | Should -BeLike "*$version*"
|
|
|
|
|
}else{
|
|
|
|
|
"docker compose version --short" | Should -ReturnZeroExitCode
|
|
|
|
|
}
|
2021-10-01 12:33:34 +03:00
|
|
|
}
|
|
|
|
|
|
2022-05-16 17:49:51 +02:00
|
|
|
It "docker-credential-ecr-login" {
|
|
|
|
|
"docker-credential-ecr-login -v" | Should -ReturnZeroExitCode
|
|
|
|
|
}
|
2023-05-11 19:58:03 +02:00
|
|
|
}
|
2022-05-16 17:49:51 +02:00
|
|
|
|
2023-05-11 19:58:03 +02:00
|
|
|
Describe "Docker images" {
|
|
|
|
|
$testCases = (Get-ToolsetContent).docker.images | ForEach-Object { @{ ImageName = $_ } }
|
2020-12-23 15:18:48 +03:00
|
|
|
|
2023-05-11 19:58:03 +02:00
|
|
|
It "<ImageName>" -TestCases $testCases {
|
|
|
|
|
sudo docker images "$ImageName" --format "{{.Repository}}" | Should -Not -BeNullOrEmpty
|
2020-12-23 15:18:48 +03:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2020-12-23 10:25:52 +03:00
|
|
|
Describe "Ansible" {
|
|
|
|
|
It "Ansible" {
|
|
|
|
|
"ansible --version" | Should -ReturnZeroExitCode
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2024-05-09 13:16:22 +02:00
|
|
|
Describe "Bazel" {
|
2020-12-23 10:25:52 +03:00
|
|
|
It "<ToolName>" -TestCases @(
|
|
|
|
|
@{ ToolName = "bazel" }
|
|
|
|
|
@{ ToolName = "bazelisk" }
|
|
|
|
|
) {
|
|
|
|
|
"$ToolName --version"| Should -ReturnZeroExitCode
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Describe "clang" {
|
2023-12-14 17:33:34 +01:00
|
|
|
$testCases = (Get-ToolsetContent).clang.Versions | ForEach-Object { @{ClangVersion = $_} }
|
2020-12-23 10:25:52 +03:00
|
|
|
|
|
|
|
|
It "clang <ClangVersion>" -TestCases $testCases {
|
|
|
|
|
"clang-$ClangVersion --version" | Should -ReturnZeroExitCode
|
|
|
|
|
"clang++-$ClangVersion --version" | Should -ReturnZeroExitCode
|
2022-05-23 21:50:28 +08:00
|
|
|
"clang-format-$ClangVersion --version" | Should -ReturnZeroExitCode
|
|
|
|
|
"clang-tidy-$ClangVersion --version" | Should -ReturnZeroExitCode
|
|
|
|
|
"run-clang-tidy-$ClangVersion --help" | Should -ReturnZeroExitCode
|
2022-05-20 15:40:31 +02:00
|
|
|
}
|
2020-12-23 10:25:52 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Describe "Cmake" {
|
|
|
|
|
It "cmake" {
|
|
|
|
|
"cmake --version" | Should -ReturnZeroExitCode
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2024-04-26 23:18:26 +02:00
|
|
|
Describe "erlang" -Skip:(-not (Test-IsUbuntu20)) {
|
2021-03-31 11:38:11 +02:00
|
|
|
$testCases = @("erl -version", "erlc -v", "rebar3 -v") | ForEach-Object { @{ErlangCommand = $_} }
|
2020-12-23 10:25:52 +03:00
|
|
|
|
|
|
|
|
It "erlang <ErlangCommand>" -TestCases $testCases {
|
2021-03-31 11:38:11 +02:00
|
|
|
"$ErlangCommand" | Should -ReturnZeroExitCode
|
|
|
|
|
}
|
2020-12-23 10:25:52 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Describe "gcc" {
|
2023-12-14 17:33:34 +01:00
|
|
|
$testCases = (Get-ToolsetContent).gcc.Versions | ForEach-Object { @{GccVersion = $_} }
|
2020-12-23 10:25:52 +03:00
|
|
|
|
|
|
|
|
It "gcc <GccVersion>" -TestCases $testCases {
|
|
|
|
|
"$GccVersion --version" | Should -ReturnZeroExitCode
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Describe "gfortran" {
|
2023-12-14 17:33:34 +01:00
|
|
|
$testCases = (Get-ToolsetContent).gfortran.Versions | ForEach-Object { @{GfortranVersion = $_} }
|
2020-12-23 10:25:52 +03:00
|
|
|
|
|
|
|
|
It "gfortran <GfortranVersion>" -TestCases $testCases {
|
|
|
|
|
"$GfortranVersion --version" | Should -ReturnZeroExitCode
|
|
|
|
|
}
|
2020-12-23 15:18:48 +03:00
|
|
|
}
|
2020-12-25 18:03:35 +03:00
|
|
|
|
2024-04-26 23:18:26 +02:00
|
|
|
Describe "Mono" -Skip:(Test-IsUbuntu24) {
|
2020-12-29 10:02:46 +03:00
|
|
|
It "mono" {
|
|
|
|
|
"mono --version" | Should -ReturnZeroExitCode
|
|
|
|
|
}
|
|
|
|
|
|
2021-04-19 16:17:48 +03:00
|
|
|
It "msbuild" {
|
|
|
|
|
"msbuild -version" | Should -ReturnZeroExitCode
|
|
|
|
|
}
|
|
|
|
|
|
2020-12-29 10:02:46 +03:00
|
|
|
It "nuget" {
|
|
|
|
|
"nuget" | Should -ReturnZeroExitCode
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2024-05-01 22:11:11 +02:00
|
|
|
Describe "MSSQLCommandLineTools" -Skip:((-not (Test-IsUbuntu20)) -and (-not (Test-IsUbuntu22))) {
|
2020-12-29 10:02:46 +03:00
|
|
|
It "sqlcmd" {
|
|
|
|
|
"sqlcmd -?" | Should -ReturnZeroExitCode
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2024-05-01 22:11:11 +02:00
|
|
|
Describe "SqlPackage" -Skip:((-not (Test-IsUbuntu20)) -and (-not (Test-IsUbuntu22))) {
|
2021-07-12 00:59:56 -07:00
|
|
|
It "sqlpackage" {
|
|
|
|
|
"sqlpackage /version" | Should -ReturnZeroExitCode
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2024-05-01 22:11:11 +02:00
|
|
|
Describe "R" -Skip:((-not (Test-IsUbuntu20)) -and (-not (Test-IsUbuntu22))) {
|
2020-12-29 10:02:46 +03:00
|
|
|
It "r" {
|
|
|
|
|
"R --version" | Should -ReturnZeroExitCode
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2024-05-01 22:11:11 +02:00
|
|
|
Describe "Sbt" -Skip:((-not (Test-IsUbuntu20)) -and (-not (Test-IsUbuntu22))) {
|
2020-12-29 10:02:46 +03:00
|
|
|
It "sbt" {
|
|
|
|
|
"sbt --version" | Should -ReturnZeroExitCode
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2022-05-27 10:46:59 +04:00
|
|
|
Describe "Selenium" {
|
2021-10-29 16:55:01 +03:00
|
|
|
It "Selenium is installed" {
|
2023-11-29 20:25:29 +01:00
|
|
|
$seleniumPath = Join-Path "/usr/share/java" "selenium-server.jar"
|
2021-10-29 16:55:01 +03:00
|
|
|
$seleniumPath | Should -Exist
|
2020-12-29 10:02:46 +03:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2024-05-01 22:11:11 +02:00
|
|
|
Describe "Terraform" -Skip:((-not (Test-IsUbuntu20)) -and (-not (Test-IsUbuntu22))) {
|
2020-12-29 10:02:46 +03:00
|
|
|
It "terraform" {
|
|
|
|
|
"terraform --version" | Should -ReturnZeroExitCode
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2022-12-29 23:33:04 +01:00
|
|
|
Describe "Zstd" {
|
|
|
|
|
It "zstd" {
|
|
|
|
|
"zstd --version" | Should -ReturnZeroExitCode
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
It "pzstd" {
|
|
|
|
|
"pzstd --version" | Should -ReturnZeroExitCode
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2020-12-29 10:02:46 +03:00
|
|
|
Describe "Vcpkg" {
|
|
|
|
|
It "vcpkg" {
|
|
|
|
|
"vcpkg version" | Should -ReturnZeroExitCode
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2020-12-25 18:03:35 +03:00
|
|
|
Describe "Git" {
|
|
|
|
|
It "git" {
|
|
|
|
|
"git --version" | Should -ReturnZeroExitCode
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
It "git-ftp" {
|
|
|
|
|
"git-ftp --version" | Should -ReturnZeroExitCode
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2023-11-06 11:54:23 +01:00
|
|
|
Describe "Git-lfs" {
|
|
|
|
|
It "git-lfs" {
|
|
|
|
|
"git-lfs --version" | Should -ReturnZeroExitCode
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2024-05-01 22:11:11 +02:00
|
|
|
Describe "Heroku" -Skip:((-not (Test-IsUbuntu20)) -and (-not (Test-IsUbuntu22))) {
|
2020-12-25 18:03:35 +03:00
|
|
|
It "heroku" {
|
|
|
|
|
"heroku --version" | Should -ReturnZeroExitCode
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2024-04-26 23:18:26 +02:00
|
|
|
Describe "HHVM" -Skip:(-not (Test-IsUbuntu20)) {
|
2020-12-25 18:03:35 +03:00
|
|
|
It "hhvm" {
|
|
|
|
|
"hhvm --version" | Should -ReturnZeroExitCode
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Describe "Homebrew" {
|
|
|
|
|
It "homebrew" {
|
2022-09-22 18:07:12 +02:00
|
|
|
"/home/linuxbrew/.linuxbrew/bin/brew --version" | Should -ReturnZeroExitCode
|
2020-12-25 18:03:35 +03:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Describe "Julia" {
|
|
|
|
|
It "julia" {
|
|
|
|
|
"julia --version" | Should -ReturnZeroExitCode
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Describe "Kubernetes tools" {
|
|
|
|
|
It "kind" {
|
2023-08-18 12:44:06 +02:00
|
|
|
"kind version" | Should -ReturnZeroExitCode
|
2020-12-25 18:03:35 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
It "kubectl" {
|
2023-12-04 12:05:25 +01:00
|
|
|
"kubectl version --client=true" | Should -OutputTextMatchingRegex "Client Version: v"
|
2020-12-25 18:03:35 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
It "helm" {
|
2023-08-18 12:44:06 +02:00
|
|
|
"helm version --short" | Should -ReturnZeroExitCode
|
2020-12-25 18:03:35 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
It "minikube" {
|
2023-08-18 12:44:06 +02:00
|
|
|
"minikube version --short" | Should -ReturnZeroExitCode
|
2020-12-25 18:03:35 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
It "kustomize" {
|
|
|
|
|
"kustomize version" | Should -ReturnZeroExitCode
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2024-05-01 22:11:11 +02:00
|
|
|
Describe "Leiningen" -Skip:((-not (Test-IsUbuntu20)) -and (-not (Test-IsUbuntu22))) {
|
2020-12-25 18:03:35 +03:00
|
|
|
It "leiningen" {
|
|
|
|
|
"lein --version" | Should -ReturnZeroExitCode
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Describe "Conda" {
|
|
|
|
|
It "conda" {
|
|
|
|
|
"conda --version" | Should -ReturnZeroExitCode
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2024-09-04 01:10:52 +05:30
|
|
|
Describe "Packer" {
|
2020-12-25 18:03:35 +03:00
|
|
|
It "packer" {
|
|
|
|
|
"packer --version" | Should -ReturnZeroExitCode
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Describe "Pulumi" {
|
|
|
|
|
It "pulumi" {
|
|
|
|
|
"pulumi version" | Should -ReturnZeroExitCode
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2024-04-26 23:18:26 +02:00
|
|
|
Describe "Phantomjs" -Skip:(-not (Test-IsUbuntu20)) {
|
2020-12-25 18:03:35 +03:00
|
|
|
It "phantomjs" {
|
2023-12-14 17:33:34 +01:00
|
|
|
$env:OPENSSL_CONF="/etc/ssl"
|
2020-12-25 18:03:35 +03:00
|
|
|
"phantomjs --version" | Should -ReturnZeroExitCode
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2024-05-10 13:31:07 +02:00
|
|
|
Describe "Containers" {
|
2020-12-31 10:00:43 +03:00
|
|
|
$testCases = @("podman", "buildah", "skopeo") | ForEach-Object { @{ContainerCommand = $_} }
|
|
|
|
|
|
|
|
|
|
It "<ContainerCommand>" -TestCases $testCases {
|
|
|
|
|
"$ContainerCommand -v" | Should -ReturnZeroExitCode
|
2022-05-20 15:40:31 +02:00
|
|
|
}
|
2023-09-04 10:50:30 +02:00
|
|
|
|
|
|
|
|
# https://github.com/actions/runner-images/issues/7753
|
|
|
|
|
It "podman networking" -TestCases "podman CNI plugins" {
|
2023-12-14 17:33:34 +01:00
|
|
|
"podman network create -d bridge test-net" | Should -ReturnZeroExitCode
|
|
|
|
|
"podman network ls" | Should -Not -OutputTextMatchingRegex "Error"
|
|
|
|
|
"podman network rm test-net" | Should -ReturnZeroExitCode
|
2023-09-04 10:50:30 +02:00
|
|
|
}
|
|
|
|
|
|
2020-12-31 10:00:43 +03:00
|
|
|
}
|
|
|
|
|
|
2024-05-01 22:11:11 +02:00
|
|
|
Describe "nvm" -Skip:((-not (Test-IsUbuntu20)) -and (-not (Test-IsUbuntu22))) {
|
2020-12-31 10:00:43 +03:00
|
|
|
It "nvm" {
|
|
|
|
|
"source /etc/skel/.nvm/nvm.sh && nvm --version" | Should -ReturnZeroExitCode
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Describe "Python" {
|
|
|
|
|
$testCases = @("python", "pip", "python3", "pip3") | ForEach-Object { @{PythonCommand = $_} }
|
|
|
|
|
|
|
|
|
|
It "<PythonCommand>" -TestCases $testCases {
|
|
|
|
|
"$PythonCommand --version" | Should -ReturnZeroExitCode
|
2023-12-14 17:33:34 +01:00
|
|
|
}
|
2021-01-13 10:45:39 +03:00
|
|
|
}
|
2021-02-19 18:33:28 +03:00
|
|
|
|
|
|
|
|
Describe "Ruby" {
|
|
|
|
|
$testCases = @("ruby", "gem") | ForEach-Object { @{RubyCommand = $_} }
|
|
|
|
|
|
|
|
|
|
It "<RubyCommand>" -TestCases $testCases {
|
|
|
|
|
"$RubyCommand --version" | Should -ReturnZeroExitCode
|
|
|
|
|
}
|
|
|
|
|
|
2023-12-14 17:33:34 +01:00
|
|
|
$gemTestCases = (Get-ToolsetContent).rubygems | ForEach-Object { @{gemName = $_.name} }
|
2021-02-19 18:33:28 +03:00
|
|
|
|
2023-12-14 17:33:34 +01:00
|
|
|
if ($gemTestCases) {
|
2021-02-19 18:33:28 +03:00
|
|
|
It "Gem <gemName> is installed" -TestCases $gemTestCases {
|
2023-12-04 12:05:25 +01:00
|
|
|
"gem list -i '^$gemName$'" | Should -OutputTextMatchingRegex "true"
|
2021-02-19 18:33:28 +03:00
|
|
|
}
|
|
|
|
|
}
|
2021-02-26 20:06:24 +05:00
|
|
|
}
|
2021-07-15 11:21:48 +02:00
|
|
|
|
|
|
|
|
Describe "yq" {
|
|
|
|
|
It "yq" {
|
|
|
|
|
"yq -V" | Should -ReturnZeroExitCode
|
|
|
|
|
}
|
|
|
|
|
}
|
2021-07-22 11:31:30 +03:00
|
|
|
|
2024-08-22 00:27:56 +05:30
|
|
|
Describe "Kotlin" {
|
2021-07-22 11:31:30 +03:00
|
|
|
It "kapt" {
|
2023-12-14 17:33:34 +01:00
|
|
|
"kapt -version" | Should -ReturnZeroExitCode
|
2021-07-22 11:31:30 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
It "kotlin" {
|
2023-12-14 17:33:34 +01:00
|
|
|
"kotlin -version" | Should -ReturnZeroExitCode
|
2021-07-22 11:31:30 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
It "kotlinc" {
|
2023-12-14 17:33:34 +01:00
|
|
|
"kotlinc -version" | Should -ReturnZeroExitCode
|
2021-07-22 11:31:30 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
It "kotlinc-jvm" {
|
2023-12-14 17:33:34 +01:00
|
|
|
"kotlinc-jvm -version" | Should -ReturnZeroExitCode
|
2021-07-22 11:31:30 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
It "kotlin-dce-js" {
|
2023-12-14 17:33:34 +01:00
|
|
|
"kotlin-dce-js -version" | Should -ReturnZeroExitCode
|
2021-07-22 11:31:30 +03:00
|
|
|
}
|
|
|
|
|
}
|