Skip to content

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

@nirs

Description

@nirs

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions