azure-sdk-for-cpp/eng/scripts/Install-WSL.ps1
Larry Osterman 40cf5608af
Moved winhttp tests to WS2022 for WSL support (#3898)
* Moved winhttp tests to WS2022 for WSL support

* Windows 2022 images has VS 2022 not 2019

* Fixed get-binarysizes script to account for WS 2022 image; formatted platform matrix files

* Install squid proxies

* Fixed typo in Install-WSL script

* Added WS2022 to live tests

* Cleaned up platform matrix platforms; removed code coverage exception to proxy tests

* Fixed two compiler warnings reported by the cognitive services team
2022-08-24 14:19:31 -07:00

15 lines
360 B
PowerShell

write-host "WSL install of ubuntu."
wsl --install -d Ubuntu-20.04
write-host "Launch WSL."
[console]::OutputEncoding = New-Object System.Text.UnicodeEncoding
$wsl = wsl -l -v | out-string
write-host $wsl
while ($wsl -notmatch 'Ubuntu-20.04.*running') {
start-sleep -seconds 1
$wsl = wsl -l -v | out-string
write-host $wsl
}
write-host "Ubuntu installed."