aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.bzrignore4
-rw-r--r--tests/Makefile.am50
2 files changed, 54 insertions, 0 deletions
diff --git a/.bzrignore b/.bzrignore
index 05b542e..c9483e7 100644
--- a/.bzrignore
+++ b/.bzrignore
@@ -60,3 +60,7 @@ tests/test-glib-objects.xml
tools/testapp/dbusmenu-testapp
libdbusmenu-glib/libdbusmenu_glib_la-client-menuitem.lo
libdbusmenu-glib/libdbusmenu_glib_la-menuitem-proxy.lo
+tests/test-glib-proxy-client
+tests/test-glib-proxy-server
+tests/test-glib-proxy-proxy
+tests/test-glib-proxy
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 746ac23..465f829 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -5,6 +5,7 @@ TESTS = \
test-glib-objects-test \
test-glib-layout \
test-glib-properties \
+ test-glib-proxy \
test-glib-simple-items \
test-gtk-label \
test-gtk-reorder
@@ -16,6 +17,9 @@ check_PROGRAMS = \
test-glib-layout-server \
test-glib-properties-client \
test-glib-properties-server \
+ test-glib-proxy-client \
+ test-glib-proxy-server \
+ test-glib-proxy-proxy \
test-gtk-label-client \
test-gtk-label-server \
test-glib-simple-items \
@@ -127,6 +131,52 @@ test_glib_properties_client_LDADD = \
../libdbusmenu-glib/libdbusmenu-glib.la \
$(DBUSMENUGLIB_LIBS)
+######################
+# Test Glib Proxy
+######################
+
+test-glib-proxy: test-glib-proxy-client test-glib-proxy-server test-glib-proxy-proxy Makefile.am
+ @echo "#!/bin/bash" > $@
+ @echo $(DBUS_RUNNER) --task ./test-glib-proxy-client --task-name Client --task ./test-glib-proxy-server --task-name Server --ignore-return \\ >> $@
+ @echo --task ./test-glib-proxy-proxy --parameter test.proxy.proxy_first --parameter test.proxy.server --task-name Proxy01
+ @chmod +x $@
+
+test_glib_proxy_server_SOURCES = \
+ test-glib-proxy.h \
+ test-glib-proxy-server.c
+
+test_glib_proxy_server_CFLAGS = \
+ -I $(srcdir)/.. \
+ $(DBUSMENUGLIB_CFLAGS) -Wall -Werror
+
+test_glib_proxy_server_LDADD = \
+ ../libdbusmenu-glib/libdbusmenu-glib.la \
+ $(DBUSMENUGLIB_LIBS)
+
+test_glib_proxy_client_SOURCES = \
+ test-glib-proxy.h \
+ test-glib-proxy-client.c
+
+test_glib_proxy_client_CFLAGS = \
+ -I $(srcdir)/.. \
+ $(DBUSMENUGLIB_CFLAGS) -Wall -Werror
+
+test_glib_proxy_client_LDADD = \
+ ../libdbusmenu-glib/libdbusmenu-glib.la \
+ $(DBUSMENUGLIB_LIBS)
+
+test_glib_proxy_proxy_SOURCES = \
+ test-glib-proxy.h \
+ test-glib-proxy-proxy.c
+
+test_glib_proxy_proxy_CFLAGS = \
+ -I $(srcdir)/.. \
+ $(DBUSMENUGLIB_CFLAGS) -Wall -Werror
+
+test_glib_proxy_proxy_LDADD = \
+ ../libdbusmenu-glib/libdbusmenu-glib.la \
+ $(DBUSMENUGLIB_LIBS)
+
#########################
# Test Glib Simple Items
#########################