Skip to content

Enable testing support on Windows#3542

Merged
igaw merged 5 commits into
linux-nvme:masterfrom
Micron-TPG-OSS:bgoing/upstream-windows-testing-support
Jul 3, 2026
Merged

Enable testing support on Windows#3542
igaw merged 5 commits into
linux-nvme:masterfrom
Micron-TPG-OSS:bgoing/upstream-windows-testing-support

Conversation

@brgoing

@brgoing brgoing commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Enables testing support on Windows and updates tests to run on Windows.

  • Adds support for enabling tests and nvme-tests options
  • Excludes linux-specific unit tests when building on Windows
  • Adds support in nvme tests for detecting Windows and skipping tests for commands that are not supported on Windows
  • Updates some tests to work on Windows

@brgoing brgoing force-pushed the bgoing/upstream-windows-testing-support branch from 13eaba1 to 7bdc01b Compare July 2, 2026 19:49
brgoing added 5 commits July 2, 2026 12:51
Adds an is_windows check to nvme tests, and skips tests on Windows for
commands that aren't supported by the Windows driver.

Signed-off-by: Broc Going <bgoing@micron.com>
Updates the meson configuration for tests to add the project build root
and other required directories to the path in a project-agnostic way.
Also ensures that the environment variable needed for running tests
within the Windows msys2 environment get copied into the test
environment.

Signed-off-by: Broc Going <bgoing@micron.com>
On Windows, reading some of the features used in the get features test
is not supported.  Updates the get features test to work on Windows.

Signed-off-by: Broc Going <bgoing@micron.com>
The \u202f code does not work for matching the separator used on
Windows.  Previously the test was ignoring the actual thousands_sep
value for the locale and assuming it would match \u202f.  Update the
test to use the thousands_sep value from the locale to build the
comparison string.

Signed-off-by: Broc Going <bgoing@micron.com>
Updates build configuration to allow testing to be enabled on Windows
and to exclude Linux-specific test on Windows.

Signed-off-by: Broc Going <bgoing@micron.com>
@igaw igaw merged commit ceacf56 into linux-nvme:master Jul 3, 2026
31 of 32 checks passed
@igaw

igaw commented Jul 3, 2026

Copy link
Copy Markdown
Collaborator

Nice! Thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants