Commit bcff1bde authored by David Zeuthen's avatar David Zeuthen

add (empty, for now) tests for remaining files

parent c372969e
......@@ -47,6 +47,7 @@
#include "polkit-debug.h"
#include "polkit-error.h"
#include "polkit-private.h"
#include "polkit-test.h"
/**
* SECTION:polkit-config
......@@ -771,3 +772,19 @@ polkit_config_determine_admin_auth_type (PolKitConfig *pk_config,
}
}
#ifdef POLKIT_BUILD_TESTS
static polkit_bool_t
_run_test (void)
{
return TRUE;
}
PolKitTest _test_config = {
"polkit_config",
NULL,
NULL,
_run_test
};
#endif /* POLKIT_BUILD_TESTS */
......@@ -44,6 +44,7 @@
#include "polkit-context.h"
#include "polkit-policy-cache.h"
#include "polkit-private.h"
#include "polkit-test.h"
/**
* SECTION:polkit
......@@ -801,3 +802,20 @@ polkit_context_get_authorization_db (PolKitContext *pk_context)
{
return pk_context->authdb;
}
#ifdef POLKIT_BUILD_TESTS
static polkit_bool_t
_run_test (void)
{
return TRUE;
}
PolKitTest _test_context = {
"polkit_context",
NULL,
NULL,
_run_test
};
#endif /* POLKIT_BUILD_TESTS */
......@@ -40,7 +40,7 @@
#include "polkit-sysdeps.h"
#include "polkit-private.h"
#include "polkit-test.h"
/**
* SECTION:polkit-sysdeps
......@@ -159,3 +159,20 @@ polkit_sysdeps_get_exe_for_pid (pid_t pid, char *out_buf, size_t buf_size)
out:
return ret;
}
#ifdef POLKIT_BUILD_TESTS
static polkit_bool_t
_run_test (void)
{
return TRUE;
}
PolKitTest _test_sysdeps = {
"polkit_sysdeps",
NULL,
NULL,
_run_test
};
#endif /* POLKIT_BUILD_TESTS */
......@@ -52,6 +52,9 @@ static PolKitTest *tests[] = {
&_test_authorization_constraint,
&_test_authorization,
&_test_authorization_db,
&_test_config,
&_test_sysdeps,
&_test_context,
};
int
......
......@@ -63,6 +63,9 @@ extern PolKitTest _test_policy_cache;
extern PolKitTest _test_authorization_constraint;
extern PolKitTest _test_authorization;
extern PolKitTest _test_authorization_db;
extern PolKitTest _test_config;
extern PolKitTest _test_sysdeps;
extern PolKitTest _test_context;
POLKIT_END_DECLS
......
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