Skip to content

Conversation

@mtjhrc
Copy link
Collaborator

@mtjhrc mtjhrc commented Feb 2, 2026

This PR makes sure our make test simply just works on macOS.

Note that this currently utilizes the same tests as linux which is the libkrunfw/virtio-fs use-case (not the commonly used EFI+disk variant on macOS), these test can hopefully be added later, still though this is quite useful for testing virtio devices.
This also disables vsock and tsi/vsock tests since these currently fail on macOS (the TSI is understandable, but I'm not sure about the vsock failure) - we can investigate or declare this unsupported later.

Since we currently don't have a macOS CI that supports virtualization, these tests still have to be ran locally.

@mtjhrc mtjhrc force-pushed the tests-macos-support branch 6 times, most recently from 3159e54 to edf1b4d Compare February 2, 2026 16:34
@mtjhrc mtjhrc changed the title Run integration tests on macOS Support running integration tests on macOS Feb 2, 2026
@mtjhrc mtjhrc force-pushed the tests-macos-support branch 6 times, most recently from 3bafd76 to abdaf7e Compare February 9, 2026 15:27
@mtjhrc mtjhrc marked this pull request as ready for review February 9, 2026 15:28
@mtjhrc mtjhrc force-pushed the tests-macos-support branch from abdaf7e to 5808778 Compare February 10, 2026 14:20
@mtjhrc mtjhrc marked this pull request as draft February 11, 2026 13:34
@mtjhrc mtjhrc force-pushed the tests-macos-support branch from 5808778 to 51ff1e4 Compare February 11, 2026 15:06
Signed-off-by: Matej Hrica <mhrica@redhat.com>
Use correct platform-specific library directory (lib vs lib64) and
library path env variable (DYLD_LIBRARY_PATH vs LD_LIBRARY_PATH).

Signed-off-by: Matej Hrica <mhrica@redhat.com>
Signed-off-by: Matej Hrica <mhrica@redhat.com>
Signed-off-by: Matej Hrica <mhrica@redhat.com>
@mtjhrc mtjhrc force-pushed the tests-macos-support branch 2 times, most recently from d8f990a to 32dce9b Compare February 11, 2026 17:47
Make TcpTester::run_server also leak the file descriptor for the stream socket.
Closing the fd caused the tests to fail on macOS (they randomly worked on Linux
I suppose).

Signed-off-by: Matej Hrica <mhrica@redhat.com>
@mtjhrc mtjhrc force-pushed the tests-macos-support branch from 32dce9b to e0795f9 Compare February 11, 2026 17:48
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.

1 participant