diff options
author | Nikki VonHollen <vonhollen@google.com> | 2011-12-20 11:10:17 -0500 |
---|---|---|
committer | David Zeuthen <davidz@redhat.com> | 2011-12-20 11:26:55 -0500 |
commit | 15d2e90a54009efb31300d8b59292d71ce98a5b2 (patch) | |
tree | 5c24ef72ded63d59de2b8986e79f96b44fde66c8 /test/polkit/Makefile.am | |
parent | 2675cc0d82c3cf1541bbf6e2e4120d7a85a970e6 (diff) | |
download | polkit-15d2e90a54009efb31300d8b59292d71ce98a5b2.tar.gz |
Bug 43608 – Add unit tests
https://bugs.freedesktop.org/show_bug.cgi?id=43608
Basic unittest support and a few tests. Adds basic unit tests for:
PolkitIdentity, PolkitUnixUser, PolkitUnixGroup,
PolkitBackendLocalAuthorizationStore, and PolkitBackendLocalAuthority.
Signed-off-by: David Zeuthen <davidz@redhat.com>
Diffstat (limited to 'test/polkit/Makefile.am')
-rw-r--r-- | test/polkit/Makefile.am | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/test/polkit/Makefile.am b/test/polkit/Makefile.am new file mode 100644 index 0000000..70fbf67 --- /dev/null +++ b/test/polkit/Makefile.am @@ -0,0 +1,46 @@ + +NULL = + +INCLUDES = \ + -I$(top_builddir)/src \ + -I$(top_srcdir)/src \ + -DPACKAGE_LIBEXEC_DIR=\""$(libexecdir)"\" \ + -DPACKAGE_SYSCONF_DIR=\""$(sysconfdir)"\" \ + -DPACKAGE_DATA_DIR=\""$(datadir)"\" \ + -DPACKAGE_BIN_DIR=\""$(bindir)"\" \ + -DPACKAGE_LOCALSTATE_DIR=\""$(localstatedir)"\" \ + -DPACKAGE_LOCALE_DIR=\""$(localedir)"\" \ + -DPACKAGE_LIB_DIR=\""$(libdir)"\" \ + -D_POSIX_PTHREAD_SEMANTICS \ + -D_REENTRANT \ + $(NULL) + +AM_CFLAGS = \ + $(GLIB_CFLAGS) \ + $(NULL) + +LDADD = \ + $(GLIB_LIBS) \ + $(top_builddir)/src/polkit/libpolkit-gobject-1.la \ + $(NULL) + +TEST_PROGS = + +# ---------------------------------------------------------------------------------------------------- + +TEST_PROGS += polkitunixusertest +polkitunixusertest_SOURCES = polkitunixusertest.c + +TEST_PROGS += polkitunixgrouptest +polkitunixgrouptest_SOURCES = polkitunixgrouptest.c + +TEST_PROGS += polkitidentitytest +polkitidentitytest_SOURCES = polkitidentitytest.c + +# ---------------------------------------------------------------------------------------------------- + +check_PROGRAMS = $(TEST_PROGS) +TESTS = $(TEST_PROGS) + +clean-local : + rm -f *~ |