mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-06-20 11:48:29 +02:00
Also do a major cleanup of the tests: - Have utility functions in "test-common.h" with a new prefix "nmtstp_". The prefix indicates that these are test functions for platform. - Add functions to add/remove IP addresses that either use external iproute2 command or platform function itself. These commands also assert whether the command had the expected result. - Randomize, whether we use the external command for adding ip-addresses. Both approaches should yield the same result for linux-platform. I did this now for address-tests, but effectively this doubled all our previous tests to use both internal and external ways to configure the address. - Enable all address tests for fake-platform. They now automatically don't call external iproute2 but fallback to fake-platform implementation. This adds more coverage to the fake-platform, which we want to behave identical to linux-platform. - Setup a clean test device before every address-test. |
||
|---|---|---|
| .. | ||
| .gitignore | ||
| dump.c | ||
| Makefile.am | ||
| monitor.c | ||
| platform.c | ||
| test-address.c | ||
| test-cleanup.c | ||
| test-common.c | ||
| test-common.h | ||
| test-general.c | ||
| test-link.c | ||
| test-nmp-object.c | ||
| test-route.c | ||