From a1ccd1a94e3b2ec2c7ce60c5b6b8824a2bf04076 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Mon, 20 Apr 2009 09:34:10 -0500 Subject: Moving tests to examples --- tests/Makefile.am | 72 ------------------------------------------------------- 1 file changed, 72 deletions(-) delete mode 100644 tests/Makefile.am (limited to 'tests/Makefile.am') diff --git a/tests/Makefile.am b/tests/Makefile.am deleted file mode 100644 index 862046e..0000000 --- a/tests/Makefile.am +++ /dev/null @@ -1,72 +0,0 @@ - -libexec_PROGRAMS = \ - indicate-and-crash \ - indicate-alot \ - listen-and-print \ - im-client \ - show-hide-server - -indicate_and_crash_SOURCES = \ - indicate-and-crash.c - -indicate_and_crash_CFLAGS = \ - -I $(srcdir)/.. \ - $(LIBINDICATE_CFLAGS) - -indicate_and_crash_LDADD = \ - ../libindicate/libindicate.la \ - $(LIBINDICATE_LIBS) - -indicate_alot_SOURCES = \ - indicate-alot.c - -indicate_alot_CFLAGS = \ - -I $(srcdir)/.. \ - $(LIBINDICATE_CFLAGS) - -indicate_alot_LDADD = \ - ../libindicate/libindicate.la \ - $(LIBINDICATE_LIBS) - -listen_and_print_SOURCES = \ - listen-and-print.c - -listen_and_print_CFLAGS = \ - -I $(srcdir)/.. \ - $(LIBINDICATE_CFLAGS) - -listen_and_print_LDADD = \ - ../libindicate/libindicate.la \ - $(LIBINDICATE_LIBS) - -im_client_SOURCES = \ - im-client.c - -im_client_CFLAGS = \ - -I $(srcdir)/.. \ - $(LIBINDICATE_CFLAGS) - -im_client_LDADD = \ - ../libindicate/libindicate.la \ - $(LIBINDICATE_LIBS) - -show_hide_server_SOURCES = \ - show-hide-server.c - -show_hide_server_CFLAGS = \ - -I $(srcdir)/.. \ - $(LIBINDICATE_CFLAGS) - -show_hide_server_LDADD = \ - ../libindicate/libindicate.la \ - $(LIBINDICATE_LIBS) - -examplesdir = $(docdir)/examples/ - -examples_DATA = \ - $(indicate_and_crash_SOURCES) \ - $(indicate_alot_SOURCES) \ - $(listen_and_print_SOURCES) \ - $(im_client_SOURCES) - -EXTRA_DIST = $(examples_DATA) -- cgit v1.2.3 From ecfb1c26cdb0908e552a33ccad288f3224038f97 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Mon, 20 Apr 2009 10:57:57 -0500 Subject: Build infrastructure for first test --- tests/Makefile.am | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 tests/Makefile.am (limited to 'tests/Makefile.am') diff --git a/tests/Makefile.am b/tests/Makefile.am new file mode 100644 index 0000000..8f290f9 --- /dev/null +++ b/tests/Makefile.am @@ -0,0 +1,29 @@ + +DBUS_RUNNER=/home/ted/Development/dbus-fun/dbus-test-runner --dbus-config /home/ted/Development/dbus-fun/session.conf + +TESTS = \ + test_simple + +test_simple: test_simple_c test_simple_s + $(DBUS_RUNNER) --task ./test_simple_c --task-name Client --task ./test_simple_s --task-name Server + +test_simple_c_SOURCES = \ + test-simple-c.c + +test_simple_c_CFLAGS = \ + $(LIBINDICATE_CFLAGS) -I$(srcdir)/.. + +test_simple_c_LDADD = \ + ../libindicate/libindicate.la \ + $(LIBINDICATE_LIBS) + +test_simple_s_SOURCES = \ + test-simple-s.c + +test_simple_s_CFLAGS = \ + $(LIBINDICATE_CFLAGS) -I$(srcdir)/.. + +test_simple_s_LDADD = \ + ../libindicate/libindicate.la \ + $(LIBINDICATE_LIBS) + -- cgit v1.2.3 From 8162f7196b7be52d014160b7559a98264e5f2b8a Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Mon, 20 Apr 2009 11:25:33 -0500 Subject: Adding in a simple test --- tests/Makefile.am | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) (limited to 'tests/Makefile.am') diff --git a/tests/Makefile.am b/tests/Makefile.am index 8f290f9..9f1c6d3 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -1,29 +1,30 @@ -DBUS_RUNNER=/home/ted/Development/dbus-fun/dbus-test-runner --dbus-config /home/ted/Development/dbus-fun/session.conf - TESTS = \ test_simple -test_simple: test_simple_c test_simple_s - $(DBUS_RUNNER) --task ./test_simple_c --task-name Client --task ./test_simple_s --task-name Server +libexec_PROGRAMS = \ + test-simple-client \ + test-simple-server + +test_simple: test-simple-client test-simple-server -test_simple_c_SOURCES = \ - test-simple-c.c +test_simple_client_SOURCES = \ + test-simple-client.c -test_simple_c_CFLAGS = \ +test_simple_client_CFLAGS = \ $(LIBINDICATE_CFLAGS) -I$(srcdir)/.. -test_simple_c_LDADD = \ +test_simple_client_LDADD = \ ../libindicate/libindicate.la \ $(LIBINDICATE_LIBS) -test_simple_s_SOURCES = \ - test-simple-s.c +test_simple_server_SOURCES = \ + test-simple-server.c -test_simple_s_CFLAGS = \ +test_simple_server_CFLAGS = \ $(LIBINDICATE_CFLAGS) -I$(srcdir)/.. -test_simple_s_LDADD = \ +test_simple_server_LDADD = \ ../libindicate/libindicate.la \ $(LIBINDICATE_LIBS) -- cgit v1.2.3 From 443c83ab353b818227270aa63f655fb2cbdbeba7 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Mon, 20 Apr 2009 12:16:33 -0500 Subject: Woot, now we do distcheck too --- tests/Makefile.am | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests/Makefile.am') diff --git a/tests/Makefile.am b/tests/Makefile.am index 9f1c6d3..36818b8 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -6,6 +6,9 @@ libexec_PROGRAMS = \ test-simple-client \ test-simple-server +EXTRA_DIST = \ + $(TESTS) + test_simple: test-simple-client test-simple-server test_simple_client_SOURCES = \ -- cgit v1.2.3 From 38c6ce2a36d6416016f64e5963deee29bc02f8b3 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Mon, 20 Apr 2009 12:36:07 -0500 Subject: Adding an interests test --- tests/Makefile.am | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) (limited to 'tests/Makefile.am') diff --git a/tests/Makefile.am b/tests/Makefile.am index 36818b8..256a699 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -1,8 +1,11 @@ TESTS = \ - test_simple + test_simple \ + test_interests libexec_PROGRAMS = \ + test-interests-client \ + test-interests-server \ test-simple-client \ test-simple-server @@ -31,3 +34,25 @@ test_simple_server_LDADD = \ ../libindicate/libindicate.la \ $(LIBINDICATE_LIBS) +test_interests: test-interests-client test-interests-server + +test_interests_client_SOURCES = \ + test-interests-client.c + +test_interests_client_CFLAGS = \ + $(LIBINDICATE_CFLAGS) -I$(srcdir)/.. + +test_interests_client_LDADD = \ + ../libindicate/libindicate.la \ + $(LIBINDICATE_LIBS) + +test_interests_server_SOURCES = \ + test-interests-server.c + +test_interests_server_CFLAGS = \ + $(LIBINDICATE_CFLAGS) -I$(srcdir)/.. + +test_interests_server_LDADD = \ + ../libindicate/libindicate.la \ + $(LIBINDICATE_LIBS) + -- cgit v1.2.3 From ecad1e36dce18875461e76d2a47d8a0e11570ff6 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Mon, 20 Apr 2009 14:44:25 -0500 Subject: Adding in multiple servers connecting in to declare interest test --- tests/Makefile.am | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 59 insertions(+), 1 deletion(-) (limited to 'tests/Makefile.am') diff --git a/tests/Makefile.am b/tests/Makefile.am index 256a699..6117bee 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -1,11 +1,17 @@ TESTS = \ test_simple \ - test_interests + test_interests \ + test_interests_multi libexec_PROGRAMS = \ test-interests-client \ test-interests-server \ + test-interests-server1 \ + test-interests-server2 \ + test-interests-server3 \ + test-interests-server4 \ + test-interests-server5 \ test-simple-client \ test-simple-server @@ -56,3 +62,55 @@ test_interests_server_LDADD = \ ../libindicate/libindicate.la \ $(LIBINDICATE_LIBS) +test_interests_multi: test-interests-client test-interests-server1 test-interests-server2 test-interests-server3 test-interests-server4 test-interests-server5 + +test_interests_server1_SOURCES = \ + test-interests-server1.c + +test_interests_server1_CFLAGS = \ + $(LIBINDICATE_CFLAGS) -I$(srcdir)/.. + +test_interests_server1_LDADD = \ + ../libindicate/libindicate.la \ + $(LIBINDICATE_LIBS) + +test_interests_server2_SOURCES = \ + test-interests-server2.c + +test_interests_server2_CFLAGS = \ + $(LIBINDICATE_CFLAGS) -I$(srcdir)/.. + +test_interests_server2_LDADD = \ + ../libindicate/libindicate.la \ + $(LIBINDICATE_LIBS) + +test_interests_server3_SOURCES = \ + test-interests-server3.c + +test_interests_server3_CFLAGS = \ + $(LIBINDICATE_CFLAGS) -I$(srcdir)/.. + +test_interests_server3_LDADD = \ + ../libindicate/libindicate.la \ + $(LIBINDICATE_LIBS) + +test_interests_server4_SOURCES = \ + test-interests-server4.c + +test_interests_server4_CFLAGS = \ + $(LIBINDICATE_CFLAGS) -I$(srcdir)/.. + +test_interests_server4_LDADD = \ + ../libindicate/libindicate.la \ + $(LIBINDICATE_LIBS) + +test_interests_server5_SOURCES = \ + test-interests-server5.c + +test_interests_server5_CFLAGS = \ + $(LIBINDICATE_CFLAGS) -I$(srcdir)/.. + +test_interests_server5_LDADD = \ + ../libindicate/libindicate.la \ + $(LIBINDICATE_LIBS) + -- cgit v1.2.3 From 6f87e9c09f9894db7fd6f42f65c8eb147c42a6e8 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Mon, 20 Apr 2009 15:39:42 -0500 Subject: Adding a test to build a bunch of indicators --- tests/Makefile.am | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) (limited to 'tests/Makefile.am') diff --git a/tests/Makefile.am b/tests/Makefile.am index 6117bee..7d72047 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -2,7 +2,8 @@ TESTS = \ test_simple \ test_interests \ - test_interests_multi + test_interests_multi \ + test_thousand_indicators libexec_PROGRAMS = \ test-interests-client \ @@ -12,6 +13,8 @@ libexec_PROGRAMS = \ test-interests-server3 \ test-interests-server4 \ test-interests-server5 \ + test-thousand-indicators-client \ + test-thousand-indicators-server test-simple-client \ test-simple-server @@ -114,3 +117,25 @@ test_interests_server5_LDADD = \ ../libindicate/libindicate.la \ $(LIBINDICATE_LIBS) +test_thousand_indicators: test-thousand-indicators-client test-thousand-indicators-server + +test_thousand_indicators_client_SOURCES = \ + test-thousand-indicators-client.c + +test_thousand_indicators_client_CFLAGS = \ + $(LIBINDICATE_CFLAGS) -I$(srcdir)/.. + +test_thousand_indicators_client_LDADD = \ + ../libindicate/libindicate.la \ + $(LIBINDICATE_LIBS) + +test_thousand_indicators_server_SOURCES = \ + test-thousand-indicators-server.c + +test_thousand_indicators_server_CFLAGS = \ + $(LIBINDICATE_CFLAGS) -I$(srcdir)/.. + +test_thousand_indicators_server_LDADD = \ + ../libindicate/libindicate.la \ + $(LIBINDICATE_LIBS) + -- cgit v1.2.3 From 0f174a8a4904e33f912fae70a6345a861306b474 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Mon, 27 Apr 2009 10:48:38 -0500 Subject: How important a simple backslash is :) --- tests/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/Makefile.am') diff --git a/tests/Makefile.am b/tests/Makefile.am index 7d72047..03bd980 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -14,7 +14,7 @@ libexec_PROGRAMS = \ test-interests-server4 \ test-interests-server5 \ test-thousand-indicators-client \ - test-thousand-indicators-server + test-thousand-indicators-server \ test-simple-client \ test-simple-server -- cgit v1.2.3