Files
runner-images/images/windows/scripts/tests/Git.Tests.ps1
Mikhail Koliada 52bcf848e5 [All OSes] Revert gitlfs changes (#9984)
* Revert "[Ubuntu] Add new git environment variable (#9899)"

This reverts commit ee7edb4f80.

* Revert "[Windows] Add new git environment variable (#9898)"

This reverts commit 5113d251a8.

* Revert "[macOS] Add new git environment variable (#9900)"

This reverts commit 5c60b0c2af.
2024-06-04 13:32:40 +02:00

26 lines
754 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
}
}