2023-05-12 13:30:13 +02:00
|
|
|
Import-Module "$PSScriptRoot/../helpers/Common.Helpers.psm1"
|
2023-12-04 12:13:08 +01:00
|
|
|
|
2021-01-29 16:37:48 +07:00
|
|
|
$os = Get-OSVersion
|
|
|
|
|
|
2024-08-09 11:25:15 +02:00
|
|
|
Describe "Azure CLI" {
|
2021-09-10 16:15:45 +03:00
|
|
|
It "Azure CLI" {
|
|
|
|
|
"az -v" | Should -ReturnZeroExitCode
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2024-08-09 11:25:15 +02:00
|
|
|
Describe "Azure DevOps CLI" {
|
2022-02-11 12:53:36 +03:00
|
|
|
It "az devops" {
|
|
|
|
|
"az devops -h" | Should -ReturnZeroExitCode
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2021-12-02 18:35:56 +03:00
|
|
|
Describe "Carthage" {
|
2021-01-29 16:37:48 +07:00
|
|
|
It "Carthage" {
|
|
|
|
|
"carthage version" | Should -ReturnZeroExitCode
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Describe "cmake" {
|
|
|
|
|
It "cmake" {
|
|
|
|
|
"cmake --version" | Should -ReturnZeroExitCode
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2022-05-06 09:15:33 +02:00
|
|
|
Describe "SwiftFormat" {
|
2021-04-14 10:22:41 +03:00
|
|
|
It "SwiftFormat" {
|
|
|
|
|
"swiftformat --version" | Should -ReturnZeroExitCode
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2021-12-02 18:35:56 +03:00
|
|
|
Describe "GnuPG" {
|
2021-01-29 16:37:48 +07:00
|
|
|
It "GnuPG" {
|
|
|
|
|
"gpg --version" | Should -ReturnZeroExitCode
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Describe "zstd" {
|
|
|
|
|
It "zstd" {
|
|
|
|
|
"zstd --version" | Should -ReturnZeroExitCode
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Describe "Packer" {
|
|
|
|
|
It "Packer" {
|
|
|
|
|
"packer --version" | Should -ReturnZeroExitCode
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Describe "Perl" {
|
|
|
|
|
It "Perl" {
|
|
|
|
|
"perl -e 'print substr($^V,1)'" | Should -ReturnZeroExitCode
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2025-09-11 23:49:57 +02:00
|
|
|
Describe "Tcl/Tk" -Skip:(-not ($os.IsVenturaX64 -or $os.IsSonomaX64)) {
|
2023-10-26 11:28:45 +02:00
|
|
|
It "libtcl" {
|
2024-12-16 02:22:29 -08:00
|
|
|
Test-Path "/usr/local/lib/libtcl8.6.dylib" | Should -BeTrue
|
|
|
|
|
Test-Path "/usr/local/lib/libtk8.6.dylib" | Should -BeTrue
|
2023-10-26 11:28:45 +02:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2021-01-29 16:37:48 +07:00
|
|
|
Describe "bazelisk" {
|
|
|
|
|
It "bazelisk" {
|
|
|
|
|
"bazelisk version" | Should -ReturnZeroExitCode
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Describe "Github CLI" {
|
|
|
|
|
It "GitHub CLI" {
|
|
|
|
|
"gh --version" | Should -ReturnZeroExitCode
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Describe "7-Zip" {
|
|
|
|
|
It "7-Zip" {
|
|
|
|
|
"7z i" | Should -ReturnZeroExitCode
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2025-01-27 14:09:51 +01:00
|
|
|
Describe "Apache Ant" {
|
2021-01-29 16:37:48 +07:00
|
|
|
It "Apache Ant" {
|
|
|
|
|
"ant -version" | Should -ReturnZeroExitCode
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Describe "Aria2" {
|
|
|
|
|
It "Aria2" {
|
|
|
|
|
"aria2c --version" | Should -ReturnZeroExitCode
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Describe "GNU Tar" {
|
|
|
|
|
It "GNU Tar" {
|
|
|
|
|
"gtar --version" | Should -ReturnZeroExitCode
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Describe "bazel" {
|
|
|
|
|
It "bazel" {
|
|
|
|
|
"bazel --version" | Should -ReturnZeroExitCode
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Describe "jq" {
|
|
|
|
|
It "jq" {
|
|
|
|
|
"jq --version" | Should -ReturnZeroExitCode
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Describe "curl" {
|
|
|
|
|
It "curl" {
|
|
|
|
|
"curl --version" | Should -ReturnZeroExitCode
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Describe "wget" {
|
|
|
|
|
It "wget" {
|
|
|
|
|
"wget --version" | Should -ReturnZeroExitCode
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Describe "Homebrew" {
|
|
|
|
|
It "Homebrew" {
|
|
|
|
|
"brew --version" | Should -ReturnZeroExitCode
|
|
|
|
|
}
|
2021-07-29 17:21:09 +03:00
|
|
|
}
|
|
|
|
|
|
2025-01-27 14:09:51 +01:00
|
|
|
Describe "Kotlin" {
|
2024-12-02 15:23:40 +05:30
|
|
|
$kotlinPackages = @("kapt", "kotlin", "kotlinc", "kotlinc-jvm", "kotlinc-js")
|
2021-07-29 17:21:09 +03:00
|
|
|
|
2023-12-04 12:13:08 +01:00
|
|
|
It "<toolName> is available" -TestCases ($kotlinPackages | ForEach-Object { @{ toolName = $_ } }) {
|
2025-07-18 14:52:41 +05:30
|
|
|
"$toolName -help" | Should -ReturnZeroExitCode
|
2021-07-29 17:21:09 +03:00
|
|
|
}
|
2021-09-21 12:49:59 +03:00
|
|
|
}
|
|
|
|
|
|
2022-03-23 11:20:36 +01:00
|
|
|
Describe "yq" {
|
|
|
|
|
It "yq" {
|
|
|
|
|
"yq --version" | Should -ReturnZeroExitCode
|
|
|
|
|
}
|
2022-05-02 11:05:31 +02:00
|
|
|
}
|
|
|
|
|
|
2024-11-22 06:23:29 -08:00
|
|
|
Describe "pkgconf" {
|
|
|
|
|
It "pkgconf" {
|
|
|
|
|
"pkgconf --version" | Should -ReturnZeroExitCode
|
|
|
|
|
}
|
|
|
|
|
}
|
2025-03-04 15:56:00 +01:00
|
|
|
|
|
|
|
|
Describe "Ninja" {
|
|
|
|
|
New-item -Path "/tmp/ninjaproject" -ItemType Directory -Force
|
|
|
|
|
Set-Location '/tmp/ninjaproject'
|
|
|
|
|
@'
|
|
|
|
|
cmake_minimum_required(VERSION 3.10)
|
|
|
|
|
project(NinjaTest NONE)
|
|
|
|
|
'@ | Out-File -FilePath "./CMakeLists.txt"
|
|
|
|
|
|
|
|
|
|
It "Make a simple ninja project" {
|
|
|
|
|
"cmake -GNinja /tmp/ninjaproject" | Should -ReturnZeroExitCode
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
It "build.ninja file should exist" {
|
|
|
|
|
$buildFilePath = Join-Path "/tmp/ninjaproject" "build.ninja"
|
|
|
|
|
$buildFilePath | Should -Exist
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
It "Ninja" {
|
|
|
|
|
"ninja --version" | Should -ReturnZeroExitCode
|
|
|
|
|
}
|
|
|
|
|
}
|