aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-10-08 12:29:12 -0400
committerTed Gould <ted@canonical.com>2009-10-08 12:29:12 -0400
commitc314d6040b93da70359e19a8b7475c94fc86fb1c (patch)
tree53036d99140ff9b56990002238e03baf8fd73900
parentfa946df247f0e16de3a355dd5696f4671277348a (diff)
downloadlibayatana-indicator-c314d6040b93da70359e19a8b7475c94fc86fb1c.tar.gz
libayatana-indicator-c314d6040b93da70359e19a8b7475c94fc86fb1c.tar.bz2
libayatana-indicator-c314d6040b93da70359e19a8b7475c94fc86fb1c.zip
Adding in a simple little test.
-rw-r--r--.bzrignore3
-rw-r--r--tests/Makefile.am25
-rw-r--r--tests/test-loader.c7
3 files changed, 34 insertions, 1 deletions
diff --git a/.bzrignore b/.bzrignore
index 0faee7c..a947a1a 100644
--- a/.bzrignore
+++ b/.bzrignore
@@ -106,3 +106,6 @@ src-sus/indicator-applet-no-sus
libindicator/libindicator.la
libindicator/libindicator_la-indicator-object.
libindicator/libindicator_la-indicator-object.lo
+tests/loader-check-results.xml
+tests/loader-check-results.html
+tests/test-loader
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 8ac6544..a04855c 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -1 +1,24 @@
-#Something should go here
+
+noinst_PROGRAMS = \
+ test-loader
+
+test_loader_SOURCES = \
+ test-loader.c
+
+test_loader_CFLAGS = \
+ -Wall -Werror \
+ $(UPANEL_CFLAGS) -I$(top_srcdir)
+
+test_loader_LDADD = \
+ $(UPANEL_LIBS) $(top_builddir)/libindicator/.libs/libindicator.a
+
+XML_REPORT = loader-check-results.xml
+HTML_REPORT = loader-check-results.html
+
+loader-tester: test-loader
+ @gtester -o=$(XML_REPORT) ./test-loader
+
+check-local: loader-tester
+
+DISTCLEANFILES = $(XML_REPORT) $(HTML_REPORT)
+
diff --git a/tests/test-loader.c b/tests/test-loader.c
new file mode 100644
index 0000000..63590c7
--- /dev/null
+++ b/tests/test-loader.c
@@ -0,0 +1,7 @@
+
+int
+main (int argc, char ** argv)
+{
+
+ return 0;
+}