diff options
Diffstat (limited to 'libindicate/tests')
-rw-r--r-- | libindicate/tests/Makefile.am | 38 | ||||
-rw-r--r-- | libindicate/tests/indicate-alot.c | 24 | ||||
-rw-r--r-- | libindicate/tests/indicate-and-crash.c | 20 | ||||
-rw-r--r-- | libindicate/tests/listen-and-print.c | 51 | ||||
-rwxr-xr-x | libindicate/tests/test.js | 6 |
5 files changed, 0 insertions, 139 deletions
diff --git a/libindicate/tests/Makefile.am b/libindicate/tests/Makefile.am deleted file mode 100644 index 208da5b..0000000 --- a/libindicate/tests/Makefile.am +++ /dev/null @@ -1,38 +0,0 @@ - -noinst_PROGRAMS = \ - indicate-and-crash \ - indicate-alot \ - listen-and-print - -indicate_and_crash_SOURCES = \ - indicate-and-crash.c - -indicate_and_crash_CFLAGS = \ - -I $(srcdir)/../.. \ - $(LIBINDICATE_CFLAGS) - -indicate_and_crash_LDADD = \ - ../libindicate.la \ - $(LIBINDICATE_LIBS) - -indicate_alot_SOURCES = \ - indicate-alot.c - -indicate_alot_CFLAGS = \ - -I $(srcdir)/../.. \ - $(LIBINDICATE_CFLAGS) - -indicate_alot_LDADD = \ - ../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.la \ - $(LIBINDICATE_LIBS) diff --git a/libindicate/tests/indicate-alot.c b/libindicate/tests/indicate-alot.c deleted file mode 100644 index bebf726..0000000 --- a/libindicate/tests/indicate-alot.c +++ /dev/null @@ -1,24 +0,0 @@ - -#include <glib.h> -#include "libindicate/indicator.h" - -#define ALOT 30 - - -int -main (int argc, char ** argv) -{ - g_type_init(); - - IndicateIndicator * indicators[ALOT]; - int i; - - for (i = 0; i < ALOT; i++) { - indicators[i] = indicate_indicator_new(); - indicate_indicator_show(indicators[i]); - } - - g_main_loop_run(g_main_loop_new(NULL, FALSE)); - - return 0; -} diff --git a/libindicate/tests/indicate-and-crash.c b/libindicate/tests/indicate-and-crash.c deleted file mode 100644 index 5a50e30..0000000 --- a/libindicate/tests/indicate-and-crash.c +++ /dev/null @@ -1,20 +0,0 @@ - -#include <glib.h> -#include "libindicate/indicator.h" - -gboolean crashfunc (gpointer data) { *(int *)data = 5; return FALSE;} - -int -main (int argc, char ** argv) -{ - g_type_init(); - - IndicateIndicator * indicator = indicate_indicator_new(); - indicate_indicator_show(indicator); - - g_timeout_add_seconds(15, crashfunc, NULL); - - g_main_loop_run(g_main_loop_new(NULL, FALSE)); - - return 0; -} diff --git a/libindicate/tests/listen-and-print.c b/libindicate/tests/listen-and-print.c deleted file mode 100644 index 9ad2cc8..0000000 --- a/libindicate/tests/listen-and-print.c +++ /dev/null @@ -1,51 +0,0 @@ - -#include <glib.h> -#include "libindicate/listener.h" - -static void -indicator_added (IndicateListener * listener, IndicateListenerServer * server, IndicateListenerIndicator * indicator, gchar * type, gpointer data) -{ - g_debug("Indicator Added: %s %d %s", (gchar *)server, (guint)indicator, type); -} - -static void -indicator_removed (IndicateListener * listener, IndicateListenerServer * server, IndicateListenerIndicator * indicator, gchar * type, gpointer data) -{ - g_debug("Indicator Removed: %s %d %s", (gchar *)server, (guint)indicator, type); -} - -static void -indicator_modified (IndicateListener * listener, IndicateListenerServer * server, IndicateListenerIndicator * indicator, gchar * type, gchar * property, gpointer data) -{ - g_debug("Indicator Modified: %s %d %s %s", (gchar *)server, (guint)indicator, type, property); -} - -static void -server_added (IndicateListener * listener, IndicateListenerServer * server, gpointer data) -{ - g_debug("Indicator Server Added: %s", (gchar *)server); -} - -static void -server_removed (IndicateListener * listener, IndicateListenerServer * server, gpointer data) -{ - g_debug("Indicator Server Removed: %s", (gchar *)server); -} - -int -main (int argc, char ** argv) -{ - g_type_init(); - - IndicateListener * listener = indicate_listener_new(); - - g_signal_connect(listener, "indicator-added", G_CALLBACK(indicator_added), NULL); - g_signal_connect(listener, "indicator-removed", G_CALLBACK(indicator_removed), NULL); - g_signal_connect(listener, "indicator-modified", G_CALLBACK(indicator_modified), NULL); - g_signal_connect(listener, "server-added", G_CALLBACK(server_added), NULL); - g_signal_connect(listener, "server-removed", G_CALLBACK(server_removed), NULL); - - g_main_loop_run(g_main_loop_new(NULL, FALSE)); - - return 0; -} diff --git a/libindicate/tests/test.js b/libindicate/tests/test.js deleted file mode 100755 index 45b0d05..0000000 --- a/libindicate/tests/test.js +++ /dev/null @@ -1,6 +0,0 @@ -#!/usr/local/bin/seed -Seed.import_namespace("Indicate"); - -var indicator = new Indicate.Indicator(); - -indicator.show(); |