[gnome-settings-daemon] color: Add test application
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] color: Add test application
- Date: Tue, 4 Oct 2016 09:50:15 +0000 (UTC)
commit e29a17f5316b0176d3d2ee1fcfeda0dd8ec12d01
Author: Bastien Nocera <hadess hadess net>
Date: Mon Sep 26 12:08:54 2016 +0200
color: Add test application
https://bugzilla.gnome.org/show_bug.cgi?id=741688
plugins/color/Makefile.am | 20 ++++++++++++++++++++
plugins/color/test-color.c | 7 +++++++
2 files changed, 27 insertions(+), 0 deletions(-)
---
diff --git a/plugins/color/Makefile.am b/plugins/color/Makefile.am
index 0f7497a..e38c288 100644
--- a/plugins/color/Makefile.am
+++ b/plugins/color/Makefile.am
@@ -19,6 +19,7 @@ libcolor_la_SOURCES = \
libcolor_la_CPPFLAGS = \
-I$(top_srcdir)/gnome-settings-daemon \
-I$(top_builddir)/gnome-settings-daemon \
+ -I$(top_srcdir)/plugins/common \
-DGNOME_SETTINGS_LOCALEDIR=\""$(datadir)/locale"\" \
-DBINDIR=\"$(bindir)\" \
$(AM_CPPFLAGS)
@@ -64,6 +65,25 @@ gcm_self_test_LDADD = \
TESTS = gcm-self-test
+libexec_PROGRAMS = gsd-test-color
+gsd_test_color_SOURCES = \
+ test-color.c \
+ gcm-edid.c \
+ gcm-edid.h \
+ gsd-color-calibrate.c \
+ gsd-color-calibrate.h \
+ gsd-color-manager.c \
+ gsd-color-manager.h \
+ gsd-color-profiles.c \
+ gsd-color-profiles.h \
+ gsd-color-state.c \
+ gsd-color-state.h \
+ $(NULL)
+
+gsd_test_color_CFLAGS = $(libcolor_la_CFLAGS)
+gsd_test_color_CPPFLAGS = $(libcolor_la_CPPFLAGS)
+gsd_test_color_LDADD = $(libcolor_la_LIBADD) $(top_builddir)/gnome-settings-daemon/libgsd.la
+
plugin_in_files = \
color.gnome-settings-plugin.in
diff --git a/plugins/color/test-color.c b/plugins/color/test-color.c
new file mode 100644
index 0000000..12b0056
--- /dev/null
+++ b/plugins/color/test-color.c
@@ -0,0 +1,7 @@
+#define NEW gsd_color_manager_new
+#define START gsd_color_manager_start
+#define STOP gsd_color_manager_stop
+#define MANAGER GsdColorManager
+#include "gsd-color-manager.h"
+
+#include "test-plugin.h"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]