[gnome-settings-daemon] smartcard: Add test application
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] smartcard: Add test application
- Date: Mon, 2 Jul 2012 14:28:12 +0000 (UTC)
commit d2717aa9961581f8f7517310b48ba6f90baf7bc0
Author: Bastien Nocera <hadess hadess net>
Date: Mon Jul 2 14:46:07 2012 +0100
smartcard: Add test application
plugins/smartcard/Makefile.am | 24 ++++++++++++++++++++++++
plugins/smartcard/test-smartcard.c | 7 +++++++
2 files changed, 31 insertions(+), 0 deletions(-)
---
diff --git a/plugins/smartcard/Makefile.am b/plugins/smartcard/Makefile.am
index 32908c7..e3fd460 100644
--- a/plugins/smartcard/Makefile.am
+++ b/plugins/smartcard/Makefile.am
@@ -1,5 +1,29 @@
plugin_name = smartcard
+noinst_PROGRAMS = test-smartcard
+
+test_smartcard_SOURCES = \
+ gsd-smartcard-manager.h \
+ gsd-smartcard-manager.c \
+ gsd-smartcard.h \
+ gsd-smartcard.c \
+ test-smartcard.c
+
+test_smartcard_CFLAGS = \
+ -I$(top_srcdir)/gnome-settings-daemon \
+ -I$(top_srcdir)/plugins/common \
+ -DGNOME_SETTINGS_LOCALEDIR=\""$(datadir)/locale"\" \
+ $(NSS_CFLAGS) \
+ $(PLUGIN_CFLAGS) \
+ $(SETTINGS_PLUGIN_CFLAGS) \
+ $(AM_CFLAGS)
+
+test_smartcard_LDADD = \
+ $(top_builddir)/gnome-settings-daemon/libgsd.la \
+ $(top_builddir)/plugins/common/libcommon.la \
+ $(NSS_LIBS) \
+ $(SETTINGS_PLUGIN_LIBS)
+
plugin_LTLIBRARIES = \
libsmartcard.la
diff --git a/plugins/smartcard/test-smartcard.c b/plugins/smartcard/test-smartcard.c
new file mode 100644
index 0000000..b5ee3d5
--- /dev/null
+++ b/plugins/smartcard/test-smartcard.c
@@ -0,0 +1,7 @@
+#define NEW gsd_smartcard_manager_new
+#define START gsd_smartcard_manager_start
+#define STOP gsd_smartcard_manager_stop
+#define MANAGER GsdSmartcardManager
+#include "gsd-smartcard-manager.h"
+
+#include "test-plugin.h"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]