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

26 lines
1.2 KiB
PowerShell
Raw Normal View History

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 = $_ } }
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 }
2025-10-10 16:13:43 +01:00
"libnss3-tools" { $toolName = "certutil"; break }
2024-12-09 19:47:06 +01:00
"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
}
(Get-Command -Name $toolName).CommandType | Should -BeExactly "Application"
}
2023-11-16 15:00:56 +01:00
}