mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-20 06:29:50 +00:00
[Windows] Implement new directories hierarchy (#8616)
This commit is contained in:
committed by
GitHub
parent
84a7deae24
commit
d1f2c9a3be
25
images/windows/scripts/tests/Git.Tests.ps1
Normal file
25
images/windows/scripts/tests/Git.Tests.ps1
Normal file
@@ -0,0 +1,25 @@
|
||||
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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user