Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Setup test infrastructure using Check

  • Loading branch information...
commit 3d5845ca41933f694f648590c1158ee177487026 1 parent 9afa1f2
@caio authored
View
1  .gitignore
@@ -18,3 +18,4 @@ config.status
stamp-h1
src/fuzzyclock
src/libfuzzyclock.a
+tests/check_fuzzyclock
View
2  Makefile.am
@@ -1 +1 @@
-SUBDIRS = src
+SUBDIRS = src . tests
View
5 configure.ac
@@ -7,8 +7,11 @@ AM_INIT_AUTOMAKE([foreign -Wall -Werror])
AC_PROG_CC
AC_PROG_RANLIB
+AM_PROG_CC_C_O
+PKG_CHECK_MODULES([CHECK], [check >= 0.9.4])
+
AC_CONFIG_HEADERS([config.h])
-AC_CONFIG_FILES([Makefile src/Makefile])
+AC_CONFIG_FILES([Makefile src/Makefile tests/Makefile])
AC_OUTPUT
View
6 tests/Makefile.am
@@ -0,0 +1,6 @@
+TESTS = check_fuzzyclock
+check_PROGRAMS = check_fuzzyclock
+check_fuzzyclock_SOURCES = check_fuzzyclock.c $(top_builddir)/src/fuzzyclock.h
+check_fuzzyclock_CFLAGS = @CHECK_CFLAGS@
+check_fuzzyclock_LDADD = $(top_builddir)/src/libfuzzyclock.a @CHECK_LIBS@
+
View
8 tests/check_fuzzyclock.c
@@ -0,0 +1,8 @@
+#include <check.h>
+
+int main(int argc, char const* argv[])
+{
+ return 0;
+}
+
+
Please sign in to comment.
Something went wrong with that request. Please try again.