aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.bzrignore2
-rw-r--r--tests/Makefile.am23
2 files changed, 25 insertions, 0 deletions
diff --git a/.bzrignore b/.bzrignore
index d7b28a6..66f815e 100644
--- a/.bzrignore
+++ b/.bzrignore
@@ -54,3 +54,5 @@ libdbusmenu-[0-9].[0-9].[0-9].tar.gz.asc
tests/test-mago
tests/*.bustle
libdbusmenu-gtk/libdbusmenu_gtk_la-genericmenuitem.lo
+tests/test-glib-objects
+tests/test-glib-objects-test
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 1d58700..0c2ab57 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -2,6 +2,7 @@
DBUS_RUNNER=dbus-test-runner
TESTS = \
+ test-glib-objects-test \
test-glib-layout \
test-glib-properties \
test-glib-simple-items \
@@ -10,6 +11,7 @@ TESTS = \
check_PROGRAMS = \
glib-server-nomenu \
+ test-glib-objects \
test-glib-layout-client \
test-glib-layout-server \
test-glib-properties-client \
@@ -71,6 +73,26 @@ test_glib_layout_client_LDADD = \
######################
+# Test Glib Object
+######################
+
+test-glib-objects-test: test-glib-objects Makefile.am
+ @echo "#!/bin/bash" > $@
+ @echo $(DBUS_RUNNER) -b $@.bustle --task gtester --parameter ./test-glib-objects >> $@
+ @chmod +x $@
+
+test_glib_objects_SOURCES = \
+ test-glib-objects.c
+
+test_glib_objects_CFLAGS = \
+ -I $(srcdir)/.. \
+ $(DBUSMENUGLIB_CFLAGS) -Wall -Werror
+
+test_glib_objects_LDADD = \
+ ../libdbusmenu-glib/libdbusmenu-glib.la \
+ $(DBUSMENUGLIB_LIBS)
+
+######################
# Test Glib Properties
######################
@@ -239,6 +261,7 @@ distclean-local:
DISTCLEANFILES = \
$(TESTS) \
+ test-glib-objects-test.bustle \
test-glib-layout.bustle \
test-glib-properties.bustle \
test-glib-simple-items.bustle \