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

Consider adding fast tests without real vmnet or real vm (qemu, lima) #86

Open
nirs opened this issue Nov 23, 2024 · 0 comments
Open

Consider adding fast tests without real vmnet or real vm (qemu, lima) #86

nirs opened this issue Nov 23, 2024 · 0 comments
Labels
help wanted Extra attention is needed kind/test

Comments

@nirs
Copy link
Member

nirs commented Nov 23, 2024

If we mock the few vmnet functions we use, we can run socket_vment or unit tests sending fake packet from "vmnet" or from the "vm".

fake vm <-socket-> socket_vment -> fake_vmnet

The fake vm can open the socket and echo packets received from the socket back to the socket.
The fake vmnet can forward packets from socket_vmnet to the test code, and allow the test code to send packets.

We can simulate one or more vms connected to socket_vmnet.

@nirs nirs added help wanted Extra attention is needed kind/test labels Nov 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed kind/test
Projects
None yet
Development

No branches or pull requests

1 participant