aboutsummaryrefslogtreecommitdiff
path: root/tests/Makefile.am
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-10-01 10:21:18 -0500
committerTed Gould <ted@canonical.com>2009-10-01 10:21:18 -0500
commit7ffd9f39deaa7897fb3690aa142812640c7be0c8 (patch)
tree5fc6c484410c6409c88115320ad39c7a57a74074 /tests/Makefile.am
parenta49f4f63040677937007c411eddbf6533f9d1428 (diff)
parent2ea44010b225b32705ca21fe2a7cf491fc0c1f4f (diff)
downloadlibdbusmenu-7ffd9f39deaa7897fb3690aa142812640c7be0c8.tar.gz
libdbusmenu-7ffd9f39deaa7897fb3690aa142812640c7be0c8.tar.bz2
libdbusmenu-7ffd9f39deaa7897fb3690aa142812640c7be0c8.zip
Adding stuff, mostly debugging info
Diffstat (limited to 'tests/Makefile.am')
-rw-r--r--tests/Makefile.am66
1 files changed, 57 insertions, 9 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 8c47a93..ace4bf4 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -1,12 +1,15 @@
SUBDIRS = dbusmenu-gtk
-check: tests
-
DBUS_RUNNER=dbus-test-runner --dbus-config /usr/share/dbus-test-runner/session.conf
-tests: test-glib-layout test-glib-properties test-gtk-label test-glib-simple-items
+TESTS = \
+ test-glib-layout \
+ test-glib-properties \
+ test-gtk-label \
+ test-glib-simple-items \
+ test-gtk-reorder
-libexec_PROGRAMS = \
+check_PROGRAMS = \
glib-server-nomenu \
test-glib-layout-client \
test-glib-layout-server \
@@ -14,7 +17,8 @@ libexec_PROGRAMS = \
test-glib-properties-server \
test-gtk-label-client \
test-gtk-label-server \
- test-glib-simple-items
+ test-glib-simple-items \
+ test-gtk-reorder-server
glib_server_nomenu_SOURCES = \
glib-server-nomenu.c
@@ -27,10 +31,14 @@ glib_server_nomenu_LDADD = \
../libdbusmenu-glib/libdbusmenu-glib.la \
$(DBUSMENUGLIB_LIBS)
-
+######################
+# Test Glib Layout
+######################
test-glib-layout: test-glib-layout-client test-glib-layout-server
- $(DBUS_RUNNER) --task ./test-glib-layout-client --task-name Client --task ./test-glib-layout-server --task-name Server --ignore-return
+ @echo "#!/bin/sh" > test-glib-layout
+ @echo $(DBUS_RUNNER) --task ./test-glib-layout-client --task-name Client --task ./test-glib-layout-server --task-name Server --ignore-return >> test-glib-layout
+ @chmod +x test-glib-layout
test_glib_layout_server_SOURCES = \
test-glib-layout.h \
@@ -57,9 +65,14 @@ test_glib_layout_client_LDADD = \
$(DBUSMENUGLIB_LIBS)
+######################
+# Test Glib Properties
+######################
test-glib-properties: test-glib-properties-client test-glib-properties-server
- $(DBUS_RUNNER) --task ./test-glib-properties-client --task-name Client --task ./test-glib-properties-server --task-name Server --ignore-return
+ @echo "#!/bin/sh" > test-glib-properties
+ @echo $(DBUS_RUNNER) --task ./test-glib-properties-client --task-name Client --task ./test-glib-properties-server --task-name Server --ignore-return >> test-glib-properties
+ @chmod +x test-glib-properties
test_glib_properties_server_SOURCES = \
test-glib-properties.h \
@@ -85,6 +98,9 @@ test_glib_properties_client_LDADD = \
../libdbusmenu-glib/libdbusmenu-glib.la \
$(DBUSMENUGLIB_LIBS)
+#########################
+# Test Glib Simple Items
+#########################
test_glib_simple_items_SOURCES = \
test-glib-simple-items.c
@@ -97,9 +113,14 @@ test_glib_simple_items_LDADD = \
../libdbusmenu-glib/libdbusmenu-glib.la \
$(DBUSMENUGLIB_LIBS)
+#########################
+# Test GTK Label
+#########################
test-gtk-label: test-gtk-label-client test-gtk-label-server test-gtk-label.json
- $(DBUS_RUNNER) --task ./test-gtk-label-client --task-name Client --task ./test-gtk-label-server --parameter $(srcdir)/test-gtk-label.json --task-name Server --ignore-return
+ @echo "#!/bin/sh" > test-gtk-label
+ @echo $(DBUS_RUNNER) --task ./test-gtk-label-client --task-name Client --task ./test-gtk-label-server --parameter $(srcdir)/test-gtk-label.json --task-name Server --ignore-return >> test-gtk-label
+ @chmod +x test-gtk-label
test_gtk_label_server_SOURCES = \
test-gtk-label-server.c
@@ -131,7 +152,34 @@ test_gtk_label_client_LDADD = \
$(DBUSMENUGTK_LIBS) \
$(DBUSMENUTESTS_LIBS)
+#########################
+# Test GTK Reorder
+#########################
+
+test-gtk-reorder: test-gtk-label-client test-gtk-reorder-server
+ @echo "#!/bin/sh" > test-gtk-reorder
+ @echo $(DBUS_RUNNER) --task ./test-gtk-label-client --task-name Client --task ./test-gtk-reorder-server --parameter $(srcdir)/test-gtk-label.json --task-name Server --ignore-return >> test-gtk-reorder
+ @chmod +x test-gtk-reorder
+
+test_gtk_reorder_server_SOURCES = \
+ test-gtk-reorder-server.c
+
+test_gtk_reorder_server_CFLAGS = \
+ -I $(srcdir)/.. \
+ $(DBUSMENUGTK_CFLAGS) \
+ $(DBUSMENUTESTS_CFLAGS) \
+ $(DBUSMENUGLIB_CFLAGS) -Wall -Werror
+
+test_gtk_reorder_server_LDADD = \
+ ../libdbusmenu-glib/libdbusmenu-glib.la \
+ ../libdbusmenu-gtk/libdbusmenu-gtk.la \
+ $(DBUSMENUGTK_LIBS) \
+ $(DBUSMENUTESTS_LIBS)
+
+#########################
+# Other
+#########################
examplesdir = $(docdir)/examples/