mirror of
https://github.com/actions/runner-images.git
synced 2025-12-15 22:26:56 +00:00
* include binutils and coreutils to doc section * fix bin to core * replace split to Take-OutputPart
39 lines
812 B
PowerShell
39 lines
812 B
PowerShell
Import-Module "$PSScriptRoot/../helpers/Common.Helpers.psm1"
|
|
|
|
$cmd = (Get-ToolsetContent).apt.cmd_packages
|
|
|
|
Describe "Apt" {
|
|
|
|
$testCases = $cmd | ForEach-Object {
|
|
@{ toolName = $_ }
|
|
}
|
|
|
|
It "<toolName> is available" -TestCases $testCases {
|
|
if ($toolName -eq "p7zip-full")
|
|
{
|
|
$toolName = "p7zip"
|
|
}
|
|
|
|
if ($toolName -eq "subversion")
|
|
{
|
|
$toolName = "svn"
|
|
}
|
|
|
|
if ($toolName -eq "sphinxsearch")
|
|
{
|
|
$toolName = "searchd"
|
|
}
|
|
|
|
if ($toolName -eq "binutils")
|
|
{
|
|
$toolName = "strings"
|
|
}
|
|
|
|
if ($toolName -eq "coreutils")
|
|
{
|
|
$toolName = "tr"
|
|
}
|
|
|
|
(Get-Command -Name $toolName).CommandType | Should -BeExactly "Application"
|
|
}
|
|
} |