Files
runner-images-sangeeth/images/linux/scripts/tests/Apt.Tests.ps1
Aleksandr Chebotov 40f571a753 [Ubuntu] Add net-tools (#2838)
* add net-tools

* fix output
2021-03-04 18:30:40 +03:00

44 lines
906 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"
}
if ($toolName -eq "net-tools")
{
$toolName = "netstat"
}
(Get-Command -Name $toolName).CommandType | Should -BeExactly "Application"
}
}