Skip to content

Conversation

nicholasbishop
Copy link
Member

In addition to fixing the tests under Windows, this PR enables adds running the VM tests under Windows to prevent future accidental breakage.

Checklist

  • Sensible git history (for example, squash "typo" or "fix" commits). See the Rewriting History guide for help.
  • Update the changelog (if necessary)

This is a partial revert of 12a7b44. We
still only have one serial device, but on the host it is connected to a
pipe rather than stdio. For some reason on Windows, messages sent to
QEMU via stdin don't work, but it works fine via pipe.

Fixes rust-osdev#647
Rather than a CI flag that did several things, add flags that enable
specific tests. Specifically, `multi_processor`, `tpm_v1`, and
`tpm_v2`. These three features control whether the corresponding test is
enabled, and nothing else.

This fixes an issue on Windows where the TPM tests were failing. We had
those tests expect to always find a TPM if the CI feature was enabled,
but we were also always enabling the CI feature on Windows in order to
disable the multi-processing tests, due to KVM not being available.

This all becomes a lot simpler by just having explicit flags for each
test.
@nicholasbishop nicholasbishop force-pushed the bishop-fix-windows-tests branch from 913393a to df4eef9 Compare February 6, 2023 16:22
@phip1611 phip1611 merged commit 6d01ed3 into rust-osdev:main Feb 6, 2023
@nicholasbishop nicholasbishop deleted the bishop-fix-windows-tests branch February 11, 2023 18:44
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