Files
runner-images/images/linux/scripts/tests/Apt.Tests.ps1
T

59 lines
1.1 KiB
PowerShell
Raw Normal View History

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 {
2021-03-23 10:48:35 +03:00
if ($toolName -eq "acl")
{
$toolName = "getfacl"
}
2021-08-18 10:35:29 +00:00
if ($toolName -eq "aria2")
{
$toolName = "aria2c"
}
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"
}
2021-03-04 18:30:40 +03:00
if ($toolName -eq "net-tools")
{
$toolName = "netstat"
}
if ($toolName -eq "mercurial")
{
$toolName = "hg"
}
(Get-Command -Name $toolName).CommandType | Should -BeExactly "Application"
}
}