Hi all, I implemented a new debug option for make test called ‘attach’. This has been requested a couple of times over the last few months and while it has some drawbacks, it also has advantages.
It’s not merged yet. https://gerrit.fd.io/r/c/vpp/+/31663 As always make test-help is full of clues on how to use it. TLDR: window 1: make test-start-vpp-debug-in-gdb (set breakpoints, … whatever and then run vpp from within gdb) window 2: make test TEST=test_nat44_ed.TestNAT44ED.test_outside_address_distribution NOTE: a lot of tests rely on having a fresh VPP, so repeat test runs without restarting vpp are questionable at best. Running more than one test class will most probably work only by accident. NOTE #2: it doesn’t matter if it’s make test or make test-debug in window 2 as the binary is selected in window 1. Use test-start-vpp-in-gdb to debug release binary. Feedback is much appreciated. Regards, Klement
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#18945): https://lists.fd.io/g/vpp-dev/message/18945 Mute This Topic: https://lists.fd.io/mt/81380736/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-