checkpoint save
[oweals/gnunet.git] / src / lockmanager / Makefile.am
index d6e3a5e4eb417bd419de9ecd70a0a32860c7a132..b1743e3081e1c59ffe934d0d0df5b50448f7759d 100644 (file)
@@ -32,7 +32,49 @@ libgnunetlockmanager_la_SOURCES = \
   lockmanager_api.c lockmanager.h
 libgnunetlockmanager_la_LIBADD = \
   $(top_builddir)/src/util/libgnunetutil.la \
-  $(XLIB)
+  $(XLIB) \
+  $(LTLIBINTL)
 libgnunetlockmanager_la_LDFLAGS = \
   $(GN_LIB_LDFLAGS) $(WINFLAGS) \
-  -version-info 0:0:0
\ No newline at end of file
+  -version-info 0:0:0
+
+check_PROGRAMS = \
+  test_lockmanager_api \
+  test_lockmanager_api_lockrelease \
+  test_lockmanager_api_servercrash \
+  test_lockmanager_api_acquireretry
+
+EXTRA_DIST = \
+  test_lockmanager_api.conf
+
+if ENABLE_TEST_RUN
+ TESTS = $(check_PROGRAMS)
+endif
+
+test_lockmanager_api_SOURCES = \
+  test_lockmanager_api.c
+test_lockmanager_api_LDADD = \
+  $(top_builddir)/src/util/libgnunetutil.la \
+  $(top_builddir)/src/testing/libgnunettesting.la \
+  libgnunetlockmanager.la
+
+test_lockmanager_api_lockrelease_SOURCES = \
+  test_lockmanager_api_lockrelease.c
+test_lockmanager_api_lockrelease_LDADD = \
+  $(top_builddir)/src/util/libgnunetutil.la \
+  $(top_builddir)/src/testing/libgnunettesting.la \
+  libgnunetlockmanager.la
+
+test_lockmanager_api_servercrash_SOURCES = \
+  test_lockmanager_api_servercrash.c
+test_lockmanager_api_servercrash_LDADD = \
+  $(top_builddir)/src/util/libgnunetutil.la \
+  $(top_builddir)/src/testing/libgnunettesting.la \
+  libgnunetlockmanager.la
+
+test_lockmanager_api_acquireretry_SOURCES = \
+  test_lockmanager_api_acquireretry.c
+test_lockmanager_api_acquireretry_LDADD = \
+  $(top_builddir)/src/util/libgnunetutil.la \
+  $(top_builddir)/src/testing/libgnunettesting.la \
+  libgnunetlockmanager.la
\ No newline at end of file