AirVantage / sbulb

UDP load balancer prototype using bcc (XDP/Bpf)
36 stars 9 forks source link

Add units tests if possible ? #29

Closed sbernard31 closed 3 years ago

sbernard31 commented 4 years ago

It seems this could be possible to create python unit tests for bpf/XDP thanks to bpf: program testing framework

Here some example based on bcc/scapy.

Linux Observability with BPF: Advanced Programming for Performance Analysis and Networking book (by David Calavera, Lorenzo Fontana) contains also some hints.

sbernard31 commented 3 years ago

Done since #34 is integrated in master.