Commit b68d89a4 authored by David Zeuthen's avatar David Zeuthen

add test harness for polkit-utils

parent cd4b5f92
......@@ -55,6 +55,7 @@ static KitTest *tests[] = {
&_test_authorization_db,
&_test_config,
&_test_sysdeps,
&_test_utils,
&_test_context,
};
......
......@@ -50,6 +50,7 @@ extern KitTest _test_authorization;
extern KitTest _test_authorization_db;
extern KitTest _test_config;
extern KitTest _test_sysdeps;
extern KitTest _test_utils;
extern KitTest _test_context;
POLKIT_END_DECLS
......
......@@ -37,6 +37,7 @@
#include "polkit-utils.h"
#include "polkit-debug.h"
#include "polkit-private.h"
#include "polkit-test.h"
/**
* SECTION:polkit-utils
......@@ -151,3 +152,20 @@ error:
_pk_debug ("name '%s' did not validate", unique_bus_name);
return ret;
}
#ifdef POLKIT_BUILD_TESTS
static polkit_bool_t
_run_test (void)
{
return TRUE;
}
KitTest _test_utils = {
"polkit_utils",
NULL,
NULL,
_run_test
};
#endif /* POLKIT_BUILD_TESTS */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment