libnm/tests: move common testing code to nm-test-libnm-utils
authorThomas Haller <thaller@redhat.com>
Sun, 20 Dec 2015 20:59:13 +0000 (21:59 +0100)
committerThomas Haller <thaller@redhat.com>
Thu, 24 Dec 2015 10:42:37 +0000 (11:42 +0100)
commitfa3093e16721b1617b6e5fcb2cd36c5eff13e2eb
treea18266f7a41b34cab97331598ed3c34b1ca16c16
parent70713ee19770b3a0eac663bbc545be44d348ee0c
libnm/tests: move common testing code to nm-test-libnm-utils

The unit tests for libnm and libnm-glib use a NetworkManager stub
service written in Python (test-networkmanager-service.py). As they
share the same server, it makes sense to also share the same utility
code to drive the stub.

Move the common code to include/.

Note that contrary to "nm-test-utils.h", "nm-test-libnm-utils.h" is not
a header-only file. Instead its implementation is in "nm-test-utils-impl.c".
The reason for that this split is, if we later have yet another non-header-only
test-utility, then all the implementations are in "nm-test-utils-impl.c", requiring
the tests to link only one object file.
include/nm-test-libnm-utils.h [moved from libnm-glib/tests/common.h with 98% similarity]
include/nm-test-utils-impl.c [moved from libnm-glib/tests/common.c with 99% similarity]
libnm-glib/tests/Makefile.am
libnm-glib/tests/test-nm-client.c
libnm-glib/tests/test-remote-settings-client.c
libnm/tests/Makefile.am
libnm/tests/common.c [deleted file]
libnm/tests/common.h [deleted file]
libnm/tests/test-nm-client.c
libnm/tests/test-remote-settings-client.c
libnm/tests/test-secret-agent.c