Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

testing: support configurations other than SNP/QEMU #575

Merged
merged 2 commits into from
Dec 20, 2024

Conversation

msft-jlange
Copy link
Collaborator

@msft-jlange msft-jlange commented Dec 17, 2024

The test-in-svsm build configuration should support environments other than SNP running on QEMU.

Copy link
Member

@joergroedel joergroedel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The reason clippy fails is that with this PR crate::testing is references for make test builds, while it is only included for make test_in_svsm builds.

@joergroedel joergroedel added the in-review PR is under active review and not yet approved label Dec 17, 2024
Tests that require interaction with a QEMU-based test environment (such
as specific I/O ports) should only be invoked when running in that test
environment.

Signed-off-by: Jon Lange <[email protected]>
Tests specific to the functionality of SNP platforms (such as #VC
handling and guest request messages) should only be performed on SNP
platforms.

Signed-off-by: Jon Lange <[email protected]>
Copy link
Member

@joergroedel joergroedel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes work as proposed. But longer term I think the way the platform checks are done in the test cases will cause some problems. We should think about a better way to make the test-cases hypervisor specific, maybe by introducing per-hypervisor feature names.

@joergroedel joergroedel merged commit 9acdcf4 into coconut-svsm:main Dec 20, 2024
4 checks passed
@msft-jlange msft-jlange deleted the test-in-hv branch December 20, 2024 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in-review PR is under active review and not yet approved
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants