socket_vmnet icon indicating copy to clipboard operation
socket_vmnet copied to clipboard

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

Open nirs opened this issue 1 year ago • 0 comments

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 avatar Nov 23 '24 02:11 nirs