mirror of
https://github.com/actions/runner-images.git
synced 2026-01-10 20:52:45 +08:00
[macOS] Introduce macOS-26 base code (#13007)
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
Import-Module "$PSScriptRoot/../helpers/Common.Helpers.psm1"
|
||||
|
||||
$os = Get-OSVersion
|
||||
|
||||
Describe "OpenSSL" {
|
||||
Context "OpenSSL Version" {
|
||||
It "OpenSSL is available" {
|
||||
@@ -7,17 +9,31 @@ Describe "OpenSSL" {
|
||||
}
|
||||
}
|
||||
|
||||
Context "OpenSSL 1.1 Path Check" {
|
||||
Context "OpenSSL 1.1 Path Check" -Skip:($os.IsTahoe) {
|
||||
It "OpenSSL 1.1 path exists" {
|
||||
$openSSLpath = brew --prefix openssl@1.1
|
||||
$openSSLpath | Should -Exist
|
||||
}
|
||||
}
|
||||
|
||||
Context "OpenSSL 1.1 is default" {
|
||||
Context "OpenSSL 1.1 is default" -Skip:($os.IsTahoe) {
|
||||
It "Default OpenSSL version is 1.1" {
|
||||
$commandResult = Get-CommandResult "openssl version"
|
||||
$commandResult.Output | Should -Match "OpenSSL 1.1"
|
||||
}
|
||||
}
|
||||
|
||||
Context "OpenSSL 3 Path Check" -Skip:(-not $os.IsTahoe) {
|
||||
It "OpenSSL 3 path exists" {
|
||||
$openSSLpath = brew --prefix openssl@3
|
||||
$openSSLpath | Should -Exist
|
||||
}
|
||||
}
|
||||
|
||||
Context "OpenSSL 3 is default" -Skip:(-not $os.IsTahoe) {
|
||||
It "Default OpenSSL version is 3" {
|
||||
$commandResult = Get-CommandResult "openssl version"
|
||||
$commandResult.Output | Should -Match "OpenSSL 3"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user