mirror of
https://github.com/containers/podman.git
synced 2025-10-14 01:35:29 +08:00
Update windows installer tests
The windows installer tests are command line / non interactive. To test as much as possible the GUI / interactive scenario (that is what user do), update tests need to use the installer with the default options. That's because when using the GUI for an update, changing options is not possible. Signed-off-by: Mario Loriedo <mario.loriedo@gmail.com>
This commit is contained in:
10
winmake.ps1
10
winmake.ps1
@ -184,8 +184,8 @@ function Lint{
|
||||
Exit 1
|
||||
}
|
||||
|
||||
Run-Command "golangci-lint run --timeout=10m --build-tags=`"$remotetags`" $PSScriptRoot\cmd\podman"
|
||||
Run-Command "pre-commit run --all-files"
|
||||
Run-Command "golangci-lint run --timeout=10m --build-tags=`"$remotetags`" $PSScriptRoot\cmd\podman"
|
||||
}
|
||||
|
||||
# Helpers
|
||||
@ -246,11 +246,7 @@ function Build-Distribution-Zip-File{
|
||||
function Get-Podman-Version{
|
||||
$versionSrc = "$PSScriptRoot\test\version\"
|
||||
$versionBin = "$PSScriptRoot\test\version\version.exe"
|
||||
|
||||
# If version.exe doesn't exist, build it
|
||||
if (-Not (Test-Path -Path "$versionBin" -PathType Leaf)) {
|
||||
Run-Command "go build --o `"$versionBin`" `"$versionSrc`""
|
||||
}
|
||||
Run-Command "go build --o `"$versionBin`" `"$versionSrc`""
|
||||
$version = Invoke-Expression "$versionBin"
|
||||
# Remove the '-dev' suffix from the version
|
||||
$version = $version -replace "-.*", ""
|
||||
@ -323,7 +319,7 @@ switch ($target) {
|
||||
Write-Host " .\winmake installer"
|
||||
Write-Host
|
||||
Write-Host "Example: Run windows installer tests"
|
||||
Write-Host " .\winmake installertest"
|
||||
Write-Host " .\winmake installertest hyperv"
|
||||
Write-Host
|
||||
Write-Host "Example: Generate the documetation artifacts"
|
||||
Write-Host " .\winmake docs"
|
||||
|
Reference in New Issue
Block a user