diff --git a/src/platform/tests/test-address.c b/src/platform/tests/test-address.c index 3ef13b8ec3..5561038de8 100644 --- a/src/platform/tests/test-address.c +++ b/src/platform/tests/test-address.c @@ -246,6 +246,12 @@ test_ip6_address_external (void) free_signal (address_removed); } +void +init_tests (int *argc, char ***argv) +{ + nmtst_init_with_logging (argc, argv, NULL, "ALL"); +} + void setup_tests (void) { diff --git a/src/platform/tests/test-cleanup.c b/src/platform/tests/test-cleanup.c index afbb438cca..0d0f3f63ad 100644 --- a/src/platform/tests/test-cleanup.c +++ b/src/platform/tests/test-cleanup.c @@ -86,6 +86,12 @@ test_cleanup_internal (void) g_array_unref (routes6); } +void +init_tests (int *argc, char ***argv) +{ + nmtst_init_with_logging (argc, argv, NULL, "ALL"); +} + void setup_tests (void) { diff --git a/src/platform/tests/test-common.c b/src/platform/tests/test-common.c index d8e8775f82..5194580dca 100644 --- a/src/platform/tests/test-common.c +++ b/src/platform/tests/test-common.c @@ -255,7 +255,7 @@ main (int argc, char **argv) int result; const char *program = *argv; - nmtst_init_with_logging (&argc, &argv, NULL, "ALL"); + init_tests (&argc, &argv); NM_PRAGMA_WARNING_DISABLE("-Wtautological-compare") if (SETUP == nm_linux_platform_setup && getuid() != 0) { diff --git a/src/platform/tests/test-common.h b/src/platform/tests/test-common.h index 17c4029d8c..367833d111 100644 --- a/src/platform/tests/test-common.h +++ b/src/platform/tests/test-common.h @@ -9,6 +9,8 @@ #include "nm-fake-platform.h" #include "nm-linux-platform.h" +#include "nm-test-utils.h" + #define DEVICE_NAME "nm-test-device" #define debug(...) nm_log_dbg (LOGD_PLATFORM, __VA_ARGS__) @@ -43,5 +45,6 @@ void link_callback (NMPlatform *platform, int ifindex, NMPlatformLink *received, void run_command (const char *format, ...); +void init_tests (int *argc, char ***argv); void setup_tests (void); diff --git a/src/platform/tests/test-link.c b/src/platform/tests/test-link.c index ec4f9ba203..99556e0a25 100644 --- a/src/platform/tests/test-link.c +++ b/src/platform/tests/test-link.c @@ -539,6 +539,12 @@ test_external (void) free_signal (link_removed); } +void +init_tests (int *argc, char ***argv) +{ + nmtst_init_with_logging (argc, argv, NULL, "ALL"); +} + void setup_tests (void) { diff --git a/src/platform/tests/test-route.c b/src/platform/tests/test-route.c index fec1e38d26..d863057b2e 100644 --- a/src/platform/tests/test-route.c +++ b/src/platform/tests/test-route.c @@ -311,6 +311,12 @@ test_ip6_route (void) free_signal (route_removed); } +void +init_tests (int *argc, char ***argv) +{ + nmtst_init_with_logging (argc, argv, NULL, "ALL"); +} + void setup_tests (void) {