Files
runner-images/images/linux/scripts/tests/Apt.Tests.ps1
Aleksandr Chebotov be109fcbc2 [Ubuntu] Provide version info for binutils and coreutils packages (#2627)
* include binutils and coreutils to doc section

* fix bin to core

* replace split to Take-OutputPart
2021-02-05 19:38:39 +03:00

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"
}
}