aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.bzrignore2
-rw-r--r--tests/Makefile.am31
-rw-r--r--tests/dummy-indicator-null.c23
3 files changed, 55 insertions, 1 deletions
diff --git a/.bzrignore b/.bzrignore
index a947a1a..24efd20 100644
--- a/.bzrignore
+++ b/.bzrignore
@@ -109,3 +109,5 @@ libindicator/libindicator_la-indicator-object.lo
tests/loader-check-results.xml
tests/loader-check-results.html
tests/test-loader
+tests/libdummy-indicator-null.la
+tests/libdummy_indicator_null_la-dummy-indicator-null.lo
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 2779ad7..ad5e5c6 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -2,6 +2,13 @@
check_PROGRAMS = \
test-loader
+check_LTLIBRARIES = \
+ libdummy-indicator-null.la
+
+#############################
+# Test Loader
+#############################
+
test_loader_SOURCES = \
test-loader.c
@@ -12,10 +19,32 @@ test_loader_CFLAGS = \
test_loader_LDADD = \
$(LIBINDICATOR_LIBS) $(top_builddir)/libindicator/.libs/libindicator.a
+#############################
+# Dummy Indicator
+#############################
+
+libdummy_indicator_null_la_SOURCES = \
+ dummy-indicator-null.c
+
+libdummy_indicator_null_la_CFLAGS = \
+ -Wall -Werror \
+ $(LIBINDICATOR_CFLAGS) -I$(top_srcdir)
+
+libdummy_indicator_null_la_LIBADD = \
+ $(LIBINDICATOR_LIBS)
+
+libdummy_indicator_null_la_LDFLAGS = \
+ -module \
+ -avoid-version
+
+#############################
+# Test stuff
+#############################
+
XML_REPORT = loader-check-results.xml
HTML_REPORT = loader-check-results.html
-loader-tester: test-loader
+loader-tester: test-loader libdummy-indicator-null.la
@gtester -o=$(XML_REPORT) ./test-loader
check-local: loader-tester
diff --git a/tests/dummy-indicator-null.c b/tests/dummy-indicator-null.c
new file mode 100644
index 0000000..ff99d71
--- /dev/null
+++ b/tests/dummy-indicator-null.c
@@ -0,0 +1,23 @@
+
+#include "libindicator/indicator.h"
+
+INDICATOR_SET_VERSION
+INDICATOR_SET_NAME("dummy-indicator-null")
+
+GtkLabel *
+get_label (void)
+{
+ return NULL;
+}
+
+GtkImage *
+get_icon (void)
+{
+ return NULL;
+}
+
+GtkMenu *
+get_menu (void)
+{
+ return NULL;
+}