mirror of
https://github.com/actions/runner-images.git
synced 2025-12-20 06:35:47 +00:00
* 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>
32 lines
1.2 KiB
PowerShell
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.*"
|
|
}
|
|
}
|
|
} |