aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-10-08 13:00:00 -0400
committerTed Gould <ted@canonical.com>2009-10-08 13:00:00 -0400
commit1386478a87fd0f228dd31a00d8f3d969d6a6a98c (patch)
tree77a6361712a0a8d129e254e4a6835e3f8ebc9f33
parentc314d6040b93da70359e19a8b7475c94fc86fb1c (diff)
downloadlibayatana-indicator-1386478a87fd0f228dd31a00d8f3d969d6a6a98c.tar.gz
libayatana-indicator-1386478a87fd0f228dd31a00d8f3d969d6a6a98c.tar.bz2
libayatana-indicator-1386478a87fd0f228dd31a00d8f3d969d6a6a98c.zip
Fleshing out the test a little bit.
-rw-r--r--tests/Makefile.am6
-rw-r--r--tests/test-loader.c24
2 files changed, 26 insertions, 4 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am
index a04855c..2779ad7 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -1,5 +1,5 @@
-noinst_PROGRAMS = \
+check_PROGRAMS = \
test-loader
test_loader_SOURCES = \
@@ -7,10 +7,10 @@ test_loader_SOURCES = \
test_loader_CFLAGS = \
-Wall -Werror \
- $(UPANEL_CFLAGS) -I$(top_srcdir)
+ $(LIBINDICATOR_CFLAGS) -I$(top_srcdir)
test_loader_LDADD = \
- $(UPANEL_LIBS) $(top_builddir)/libindicator/.libs/libindicator.a
+ $(LIBINDICATOR_LIBS) $(top_builddir)/libindicator/.libs/libindicator.a
XML_REPORT = loader-check-results.xml
HTML_REPORT = loader-check-results.html
diff --git a/tests/test-loader.c b/tests/test-loader.c
index 63590c7..7e77195 100644
--- a/tests/test-loader.c
+++ b/tests/test-loader.c
@@ -1,7 +1,29 @@
+#include <glib.h>
+#include "libindicator/indicator-object.h"
+
+void
+test_loader_refunref (void)
+{
+
+ return;
+}
+
+void
+test_loader_creation_deletion_suite (void)
+{
+ g_test_add_func ("/libindicator/loader/ref_and_unref", test_loader_refunref);
+
+ return;
+}
+
int
main (int argc, char ** argv)
{
+ g_type_init ();
+ g_test_init (&argc, &argv, NULL);
+
+ test_loader_creation_deletion_suite();
- return 0;
+ return g_test_run();
}