Files
runner-images/images/win/scripts/Tests/Git.Tests.ps1
Aleksandr Chebotov 05781ccad0 [Windows] Add GVFS (Git Virtual File System) (#3766)
* Add GVFS (Git Virtual File System)
* invoke all tests from git file
2021-07-22 10:32:13 +03:00

32 lines
895 B
PowerShell

Describe "Git" {
$gitTools = 'bash', 'awk', 'git', 'git-lfs'
$gitTestCases = $gitTools | ForEach-Object {
@{
toolName = $_
source = [regex]::Escape("$env:ProgramFiles\Git")
}
}
It "<toolName> is installed" -TestCases $gitTestCases {
"$toolName --version" | Should -ReturnZeroExitCode
}
It "<toolName> is located in '<source>'" -TestCases $gitTestCases {
(Get-Command -Name $toolName).Source | Should -Match $source
}
It "Git core.symlinks=true option is enabled" {
git config core.symlinks | Should -BeExactly true
}
It "GCM_INTERACTIVE environment variable should be equal Never" {
$env:GCM_INTERACTIVE | Should -BeExactly Never
}
}
Describe "GVFS" {
It "GVFS is installed" {
"gvfs --version" | Should -ReturnZeroExitCode
}
}