From 0dbc747ba30dabaea6e1cf75dcb53f0826580b12 Mon Sep 17 00:00:00 2001 From: Abhishek Rajput Date: Wed, 5 Aug 2026 06:21:41 -0400 Subject: [PATCH] Add winfsp-tests package for VirtIO-FS WinFsp coverage. Installs winfsp-tests-x64.exe into WinFsp\bin so functest winfsp_test can run the upstream WinFsp suite against the virtiofs mount. Signed-off-by: Abhishek Rajput --- winfsp-tests/.gitignore | 4 ++++ winfsp-tests/config.json | 11 +++++++++++ winfsp-tests/install.ps1 | 17 +++++++++++++++++ 3 files changed, 32 insertions(+) create mode 100644 winfsp-tests/.gitignore create mode 100644 winfsp-tests/config.json create mode 100644 winfsp-tests/install.ps1 diff --git a/winfsp-tests/.gitignore b/winfsp-tests/.gitignore new file mode 100644 index 0000000..353f58e --- /dev/null +++ b/winfsp-tests/.gitignore @@ -0,0 +1,4 @@ +* +!.gitignore +!config.json +!install.ps1 diff --git a/winfsp-tests/config.json b/winfsp-tests/config.json new file mode 100644 index 0000000..4f5714c --- /dev/null +++ b/winfsp-tests/config.json @@ -0,0 +1,11 @@ +{ + "download_url": "https://github.com/billziss-gh/winfsp/releases/download/v1.6/winfsp-tests-1.6.20027.zip", + "file_name": "winfsp-tests-1.6.20027.zip", + "install_cmd": "powershell", + "install_args": "-ExecutionPolicy Bypass -File @sw_path@\\install.ps1 -zipPath @sw_path@\\@file_name@", + "install_dest": "client", + "install_time": { + "kit": "after", + "driver": "before" + } +} diff --git a/winfsp-tests/install.ps1 b/winfsp-tests/install.ps1 new file mode 100644 index 0000000..f66ab66 --- /dev/null +++ b/winfsp-tests/install.ps1 @@ -0,0 +1,17 @@ +# Install winfsp-tests into the WinFsp bin directory. +param( + [Parameter(Mandatory = $true)] + [String]$zipPath +) + +$ErrorActionPreference = 'Stop' + +$extractFolder = Join-Path $env:TEMP 'winfsp-tests' +$binDir = 'C:\Program Files (x86)\WinFsp\bin' +$exeName = 'winfsp-tests-x64.exe' + +Expand-Archive -Force -Path $zipPath -DestinationPath $extractFolder +New-Item -ItemType Directory -Force -Path $binDir | Out-Null +Copy-Item -Force (Join-Path $extractFolder $exeName) (Join-Path $binDir $exeName) + +Write-Output "Installed $exeName to $binDir"