2020-09-10 14:34:08 +03:00
|
|
|
Import-Module "$PSScriptRoot/../helpers/Common.Helpers.psm1"
|
2021-01-14 12:17:44 +03:00
|
|
|
Import-Module "$PSScriptRoot/../helpers/Tests.Helpers.psm1" -DisableNameChecking
|
2020-09-10 14:34:08 +03:00
|
|
|
|
|
|
|
|
$os = Get-OSVersion
|
|
|
|
|
|
2020-12-23 22:14:13 +07:00
|
|
|
Describe ".NET" {
|
|
|
|
|
It ".NET" {
|
|
|
|
|
"dotnet --version" | Should -ReturnZeroExitCode
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Describe "GCC" -Skip:($os.IsHighSierra) {
|
|
|
|
|
$testCases = @("8", "9", "10") | ForEach-Object { @{Version = $_} }
|
2020-09-10 14:34:08 +03:00
|
|
|
|
2020-12-23 22:14:13 +07:00
|
|
|
It "GCC <Version>" -TestCases $testCases {
|
2020-09-10 14:34:08 +03:00
|
|
|
param (
|
2020-12-23 22:14:13 +07:00
|
|
|
[string] $Version
|
2020-09-10 14:34:08 +03:00
|
|
|
)
|
2020-09-21 10:53:56 +03:00
|
|
|
|
2020-12-23 22:14:13 +07:00
|
|
|
"gcc-$Version --version" | Should -ReturnZeroExitCode
|
2020-09-10 14:34:08 +03:00
|
|
|
}
|
|
|
|
|
|
2020-12-23 22:14:13 +07:00
|
|
|
It "Gfortran <Version>" -TestCases $testCases {
|
2020-09-10 14:34:08 +03:00
|
|
|
param (
|
2020-12-23 22:14:13 +07:00
|
|
|
[string] $Version
|
2020-09-10 14:34:08 +03:00
|
|
|
)
|
|
|
|
|
|
2020-12-23 22:14:13 +07:00
|
|
|
"gfortran-$Version --version" | Should -ReturnZeroExitCode
|
2020-09-10 14:34:08 +03:00
|
|
|
}
|
2020-12-03 18:40:19 +03:00
|
|
|
|
|
|
|
|
It "Gfortran is not found in the default path" {
|
|
|
|
|
"$(which gfortran)" | Should -BeNullOrEmpty
|
|
|
|
|
}
|
2020-09-10 14:34:08 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Describe "vcpkg" -Skip:($os.IsHighSierra -or $os.IsMojave) {
|
|
|
|
|
It "vcpkg" {
|
|
|
|
|
"vcpkg version" | Should -ReturnZeroExitCode
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2021-01-11 13:30:51 +07:00
|
|
|
Describe "AWS" {
|
|
|
|
|
It "AWS CLI" {
|
|
|
|
|
"aws --version" | Should -ReturnZeroExitCode
|
|
|
|
|
}
|
|
|
|
|
It "AWS SAM CLI" {
|
|
|
|
|
"sam --version" | Should -ReturnZeroExitCode
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
It "AWS Session Manager CLI" {
|
|
|
|
|
"session-manager-plugin --version" | Should -ReturnZeroExitCode
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Describe "AzCopy" {
|
|
|
|
|
It "AzCopy" {
|
|
|
|
|
"azcopy --version" | Should -ReturnZeroExitCode
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Describe "Miniconda" {
|
|
|
|
|
It "Conda" {
|
|
|
|
|
Get-EnvironmentVariable "CONDA" | Should -Not -BeNullOrEmpty
|
|
|
|
|
$condaBinPath = Join-Path $env:CONDA "bin" "conda"
|
|
|
|
|
"$condaBinPath --version" | Should -ReturnZeroExitCode
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Describe "Stack" -Skip:($os.IsHighSierra) {
|
|
|
|
|
It "Stack" {
|
|
|
|
|
"stack --version" | Should -ReturnZeroExitCode
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2021-01-14 00:46:44 +07:00
|
|
|
Describe "CocoaPods" {
|
|
|
|
|
It "CocoaPods" {
|
|
|
|
|
"pod --version" | Should -ReturnZeroExitCode
|
2021-01-11 13:30:51 +07:00
|
|
|
}
|
2021-01-20 14:11:00 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Describe "VSMac" {
|
|
|
|
|
It "VS4Mac is installed" {
|
|
|
|
|
$vsPath = "/Applications/Visual Studio.app"
|
|
|
|
|
$vstoolPath = Join-Path $vsPath "Contents/MacOS/vstool"
|
|
|
|
|
$vsPath | Should -Exist
|
|
|
|
|
$vstoolPath | Should -Exist
|
|
|
|
|
}
|
2020-09-10 14:34:08 +03:00
|
|
|
}
|