Skip to content

Commit

Permalink
Add Flexible I/O tester tool installation function
Browse files Browse the repository at this point in the history
This patch makes sure to install FIO tool, required when running Ceph
integration tests on Windows.
  • Loading branch information
Dany9966 committed Apr 1, 2022
1 parent af903ca commit 7821271
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions ceph-windows-image-build/build/setup.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ $VS_2019_BUILD_TOOLS_URL = "https://aka.ms/vs/16/release/vs_buildtools.exe"
$WDK_URL = "https://download.microsoft.com/download/7/d/6/7d602355-8ae9-414c-ae36-109ece2aade6/wdk/wdksetup.exe" # Windows 11 WDK (22000.1). It can be used to develop drivers for previous OS releases.
$PYTHON3_URL = "https://www.python.org/ftp/python/3.10.1/python-3.10.1-amd64.exe"
$CLOUDBASE_INIT_URL = "https://cloudbase.it/downloads/CloudbaseInitSetup_Stable_x64.msi"
$FIO_URL = "https://bsdio.com/fio/releases/fio-3.27-x64.msi"

$WNBD_GIT_REPO = "https://github.com/ceph/wnbd.git"
$WNBD_GIT_BRANCH = "master"
Expand Down Expand Up @@ -331,6 +332,13 @@ function Install-CloudbaseInit {
Write-Output "Successfully installed Cloudbase-Init"
}

function Install-FIO {
Write-Output "Installing FIO"
Install-Tool -URL $FIO_URL -Params @("/qn", "/l*v", "$env:TEMP\fio-install.log", "/norestart")
Add-ToPathEnvVar -Path @("${env:ProgramFiles}\fio")
Write-Output "Successfully installed FIO"
}

Get-WindowsBuildInfo
Install-Requirements
Install-VisualStudio2019BuildTools
Expand All @@ -340,5 +348,6 @@ Install-WnbdDriver
Install-Python3
Install-Wix3Toolset
Install-CloudbaseInit
Install-FIO

Write-Output "Successfully installed the CI environment. Please reboot the system before sysprep."

0 comments on commit 7821271

Please sign in to comment.