Files
runner-images/images/macos/tests/XamarinNDK.Tests.ps1
Leonid Lapshin 2e06b1a227 Removed PyPy version workaround for macOS 10.13 (#2414)
* removed pypy version workaround for macOS 10.13

* fix toolcache test on macos

* fixed an error

* disable strict name checking for imported powershell modules

* Ruby 3.0 doesn't exists on 10.13

Co-authored-by: Leonid Lapshin <originalnoe-nazvanie@yandex.ru>
2021-01-14 12:17:44 +03:00

32 lines
1.2 KiB
PowerShell

Import-Module "$PSScriptRoot/../helpers/Common.Helpers.psm1"
Import-Module "$PSScriptRoot/../helpers/Tests.Helpers.psm1" -DisableNameChecking
Import-Module "$PSScriptRoot/../software-report/SoftwareReport.Android.psm1" -DisableNameChecking
$os = Get-OSVersion
Describe "Xamarin NDK" {
BeforeAll {
$androidNdkToolchains = @("mips64el-linux-android-4.9", "mipsel-linux-android-4.9")
$ANDROID_SDK_DIR = Join-Path $env:HOME "Library" "Android" "sdk"
}
Context "Xamarin NDK toolchains" -Skip:($os.IsBigSur) {
$testCases = $androidNdkToolchains | ForEach-Object { @{AndroidNdkToolchain = $_} }
It "<AndroidNdkToolchain>" -TestCases $testCases {
param ([string] $AndroidNdkToolchain)
$toolchainPath = Join-Path $ANDROID_SDK_DIR "ndk-bundle" "toolchains" $AndroidNdkToolchain
$toolchainPath | Should -Exist
}
}
Context "Xamarin Legacy NDK versions" -Skip:($os.IsBigSur) {
It "Android NDK version r18b is installed" {
$ndk18BundlePath = Join-Path $ANDROID_SDK_DIR "ndk" "18.1.5063045" "source.properties"
$rawContent = Get-Content $ndk18BundlePath -Raw
$rawContent | Should -BeLikeExactly "*Revision = 18.*"
}
}
}