Files
runner-images/images/linux/scripts/tests/Apt.Tests.ps1
Mikhail Timofeev 31c97aac43 [Ubuntu] Get rid of simple apt-get provisioners (#2376)
* move 7z installation to basic.sh

* remove build essential

* move imagemagick to apt

* move subversion to apt

* move subversion to apt

* move sphinxsearch to apt

* move swig to apt

* move pollinate to apt

* move haveged to apt

* add p7zip to ubuntu 16
2021-01-11 10:42:58 +03:00

29 lines
630 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"
}
(Get-Command -Name $toolName).CommandType | Should -BeExactly "Application"
}
}