mirror of
https://github.com/iputils/iputils.git
synced 2026-02-07 22:50:40 +08:00
Partly rewritten python test code to perl based Test::Command framework. That allows to compare tools output, not just exit code and describes better the output. Also it can be run standalone (without meson). Covered mostly ping (but still needs to be improved). TODO: covert all python tests. Optional parameter allows to pass binary to be tested (path to binary would be better, but it'd have to be two directories: builddir/:builddir/ping/). ping-01-basics.t mocks getaddrinfo() code in ping. But IDN is not supported (also due AI_IDN not supported in musl). Implements: https://github.com/iputils/iputils/issues/243 Closes: https://github.com/iputils/iputils/pull/607 Reviewed-by: Cyril Hrubis <chrubis@suse.cz> Signed-off-by: Petr Vorel <pvorel@suse.cz>