Permalink
Browse files

Add unit tests

  • Loading branch information...
joaquimrocha committed Apr 20, 2012
1 parent 227f4e2 commit 7e028f29557a514a033be39464d5070b942328ec
View
@@ -1,6 +1,10 @@
SUBDIRS = \
skeltrack
+if ENABLE_TESTS
+SUBDIRS += tests
+endif
+
if BUILD_GTK_DOC
SUBDIRS += doc
endif
View
@@ -141,6 +141,7 @@ AC_OUTPUT([
doc/Makefile
doc/reference/Makefile
examples/Makefile
+ tests/Makefile
])
echo ""
View
@@ -0,0 +1,23 @@
+MAINTAINERCLEANFILES = \
+ Makefile.in
+
+tests_dir = `pwd`/
+
+AM_CFLAGS = \
+ $(GLIB_CFLAGS) \
+ -I$(top_srcdir)/@PRJ_NAME@
+
+if ENABLE_DEBUG
+AM_CFLAGS += -Werror -g3 -O0 -ggdb
+endif
+
+LDADD = \
+ $(top_builddir)/@PRJ_NAME@/lib@PRJ_API_NAME@.la
+
+noinst_PROGRAMS = \
+ test-skeleton
+
+TESTS = \
+ test-skeleton
+
+test_skeleton_SOURCES = test-skeleton.c
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.

0 comments on commit 7e028f2

Please sign in to comment.