2020-12-30 13:50:21 +03:00
|
|
|
Import-Module "$PSScriptRoot/../helpers/Common.Helpers.psm1"
|
|
|
|
|
|
|
|
|
|
Describe "Apt" {
|
2023-12-14 17:33:34 +01:00
|
|
|
$packages = (Get-ToolsetContent).apt.cmd_packages + (Get-ToolsetContent).apt.vital_packages
|
|
|
|
|
$testCases = $packages | ForEach-Object { @{ toolName = $_ } }
|
2020-12-30 13:50:21 +03:00
|
|
|
|
|
|
|
|
It "<toolName> is available" -TestCases $testCases {
|
2023-12-14 17:33:34 +01:00
|
|
|
switch ($toolName) {
|
2024-12-09 19:47:06 +01:00
|
|
|
"acl" { $toolName = "getfacl"; break }
|
|
|
|
|
"aria2" { $toolName = "aria2c"; break }
|
|
|
|
|
"p7zip-full" { $toolName = "p7zip"; break }
|
|
|
|
|
"subversion" { $toolName = "svn"; break }
|
|
|
|
|
"sphinxsearch" { $toolName = "searchd"; break }
|
|
|
|
|
"binutils" { $toolName = "strings"; break }
|
|
|
|
|
"coreutils" { $toolName = "tr"; break }
|
|
|
|
|
"net-tools" { $toolName = "netstat"; break }
|
|
|
|
|
"mercurial" { $toolName = "hg"; break }
|
|
|
|
|
"findutils" { $toolName = "find"; break }
|
|
|
|
|
"systemd-coredump" { $toolName = "coredumpctl"; break }
|
2021-03-23 10:48:35 +03:00
|
|
|
}
|
|
|
|
|
|
2020-12-30 13:50:21 +03:00
|
|
|
(Get-Command -Name $toolName).CommandType | Should -BeExactly "Application"
|
|
|
|
|
}
|
2023-11-16 15:00:56 +01:00
|
|
|
}
|