NetworkManager/src/platform/tests
Thomas Haller 06aafabf14 platform/test: add test adding IPv4 addresses that only differ by their peer-address
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.
2015-10-14 16:16:21 +02:00
..
.gitignore platform: add nmp-object.h file 2015-06-17 11:23:51 +02:00
dump.c all: remove #if GLIB_CHECK_VERSION conditionals around g_type_init() 2015-07-12 13:56:52 +02:00
Makefile.am build: extract version macros from "nm-version.h" to new header file "nm-version-macros.h" 2015-09-30 23:10:29 +02:00
monitor.c all: make use of new header file "nm-default.h" 2015-08-05 15:32:40 +02:00
platform.c platform: properly handle peer-address for IPv4 addresses 2015-10-14 12:52:07 +02:00
test-address.c platform/test: add test adding IPv4 addresses that only differ by their peer-address 2015-10-14 16:16:21 +02:00
test-cleanup.c platform: refactor order of peer-address argument in ip_address_add() function 2015-10-14 12:52:07 +02:00
test-common.c platform/test: add test adding IPv4 addresses that only differ by their peer-address 2015-10-14 16:16:21 +02:00
test-common.h platform/test: add test adding IPv4 addresses that only differ by their peer-address 2015-10-14 16:16:21 +02:00
test-general.c all: make use of new header file "nm-default.h" 2015-08-05 15:32:40 +02:00
test-link.c platform/test: add test adding IPv4 addresses that only differ by their peer-address 2015-10-14 16:16:21 +02:00
test-nmp-object.c all: make use of new header file "nm-default.h" 2015-08-05 15:32:40 +02:00
test-route.c platform/test: introduce _LOGD() macros to fake platform and platform tests 2015-09-04 11:06:26 +02:00