Add Windows ARM64 CI (#19040)

* Add CI for win-arm64

* Add common function to test for windows arm64

* Update because string where items need investigation

---------

Co-authored-by: Aditya Patwardhan <adityap@microsoft.com>
This commit is contained in:
Travis Plunk
2023-01-31 12:06:29 -08:00
committed by GitHub
co-authored by Aditya Patwardhan
parent 9ae7d68947
commit b2c4888ebb
31 changed files with 331 additions and 25 deletions
@@ -145,6 +145,10 @@ Describe "Native Command Processor" -tags "Feature" {
}
It "Should not block running Windows executables" -Skip:(!$IsWindows -or !(Get-Command notepad.exe)) {
if (Test-IsWindowsArm64) {
Set-ItResult -Pending -Because "Needs investigation"
}
function FindNewNotepad
{
Get-Process -Name notepad -ErrorAction Ignore | Where-Object { $_.Id -NotIn $dontKill }
@@ -53,7 +53,11 @@ Describe "Native streams behavior with PowerShell" -Tags 'CI' {
($out | Out-String).Replace("`r", '') | Should -BeExactly "foo`n`nbar`n`nbazmiddlefoo`n`nbar`n`nbaz`n"
}
It 'does not get truncated or split when redirected' {
It 'Does not get truncated or split when redirected' {
if (Test-IsWindowsArm64) {
Set-ItResult -Pending -Because "IOException: The handle is invalid."
}
$longtext = "0123456789"
while ($longtext.Length -lt [console]::WindowWidth) {
$longtext += $longtext