mirror of
https://github.com/actions/runner-images.git
synced 2025-12-15 22:26:56 +00:00
[Ubuntu] Implement first Pester tests (#2270)
* implement first pester tests * add comment for azcopy test * remove extra importing and old function * resolve comments * fix typo
This commit is contained in:
committed by
GitHub
parent
be672cb22c
commit
2b93b03377
17
images/linux/scripts/tests/Tools.Tests.ps1
Normal file
17
images/linux/scripts/tests/Tools.Tests.ps1
Normal file
@@ -0,0 +1,17 @@
|
||||
Describe "7-Zip" {
|
||||
It "7z" {
|
||||
"7z" | Should -ReturnZeroExitCode
|
||||
}
|
||||
}
|
||||
|
||||
Describe "azcopy" {
|
||||
It "azcopy" {
|
||||
#(azcopy --version) command returns exit code 1 (see details: https://github.com/Azure/azure-storage-azcopy/releases)
|
||||
$azcopyVersion = (Get-CommandResult "azcopy --version").Output
|
||||
$azcopyVersion | Should -BeLike "*azcopy*"
|
||||
}
|
||||
|
||||
It "azcopy10" {
|
||||
"azcopy10 --version" | Should -ReturnZeroExitCode
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user