aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2009-12-21 14:41:50 -0600
committerTed Gould <ted@gould.cx>2009-12-21 14:41:50 -0600
commit7f05a7e84a3bf4bf936bc9e81465e7feac1f7487 (patch)
tree454a8f907a7e58c2839220a50ea1398bc9c6f353
parentd7f273f9fced68bea1d711503b9a0fd2defa72c6 (diff)
downloadlibdbusmenu-7f05a7e84a3bf4bf936bc9e81465e7feac1f7487.tar.gz
libdbusmenu-7f05a7e84a3bf4bf936bc9e81465e7feac1f7487.tar.bz2
libdbusmenu-7f05a7e84a3bf4bf936bc9e81465e7feac1f7487.zip
Adding the object tests into the build.
-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 \