aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-07-15 15:04:45 +0000
committerChristian Grothoff <christian@grothoff.org>2012-07-15 15:04:45 +0000
commit428fb513ef4353f382a5e1b35e838af1fed59058 (patch)
tree8b96409d27bfe90d724b85facd8e15fc7a80074b /src
parentf50072ff43b084ae76ae17fed0610f315db81255 (diff)
downloadgnunet-428fb513ef4353f382a5e1b35e838af1fed59058.tar.gz
gnunet-428fb513ef4353f382a5e1b35e838af1fed59058.zip
-moving block test to resolve cyclic dependency
Diffstat (limited to 'src')
-rw-r--r--src/block/Makefile.am12
-rw-r--r--src/fs/Makefile.am6
-rw-r--r--src/fs/test_plugin_block_fs.c (renamed from src/block/test_block.c)12
3 files changed, 12 insertions, 18 deletions
diff --git a/src/block/Makefile.am b/src/block/Makefile.am
index a949833f9..d0a5ae752 100644
--- a/src/block/Makefile.am
+++ b/src/block/Makefile.am
@@ -49,15 +49,3 @@ libgnunetblock_la_DEPENDENCIES = \
49libgnunetblock_la_LDFLAGS = \ 49libgnunetblock_la_LDFLAGS = \
50 $(GN_LIB_LDFLAGS) \ 50 $(GN_LIB_LDFLAGS) \
51 -version-info 0:0:0 51 -version-info 0:0:0
52
53check_PROGRAMS = \
54 test_block
55
56#TESTS = $(check_PROGRAMS)
57
58test_block_SOURCES = \
59 test_block.c
60test_block_LDADD = \
61 $(top_builddir)/src/block/libgnunetblock.la \
62 $(top_builddir)/src/util/libgnunetutil.la
63
diff --git a/src/fs/Makefile.am b/src/fs/Makefile.am
index 9615b67cd..43d60d6f2 100644
--- a/src/fs/Makefile.am
+++ b/src/fs/Makefile.am
@@ -205,6 +205,7 @@ if HAVE_BENCHMARKS
205endif 205endif
206 206
207check_PROGRAMS = \ 207check_PROGRAMS = \
208 test_plugin_block_fs \
208 test_fs_directory \ 209 test_fs_directory \
209 test_fs_download \ 210 test_fs_download \
210 test_fs_download_indexed \ 211 test_fs_download_indexed \
@@ -228,6 +229,11 @@ check_PROGRAMS = \
228 test_gnunet_service_fs_p2p \ 229 test_gnunet_service_fs_p2p \
229 $(FS_BENCHMARKS) 230 $(FS_BENCHMARKS)
230 231
232test_plugin_block_fs_SOURCES = \
233 test_plugin_block_fs.c
234test_plugin_block_fs_LDADD = \
235 $(top_builddir)/src/block/libgnunetblock.la \
236 $(top_builddir)/src/util/libgnunetutil.la
231 237
232if HAVE_PYTHON 238if HAVE_PYTHON
233check_SCRIPTS = \ 239check_SCRIPTS = \
diff --git a/src/block/test_block.c b/src/fs/test_plugin_block_fs.c
index 5e2b34696..a9f5ce3f0 100644
--- a/src/block/test_block.c
+++ b/src/fs/test_plugin_block_fs.c
@@ -1,6 +1,6 @@
1/* 1/*
2 This file is part of GNUnet 2 This file is part of GNUnet
3 (C) 2010 Christian Grothoff (and other contributing authors) 3 (C) 2010, 2012 Christian Grothoff (and other contributing authors)
4 4
5 GNUnet is free software; you can redistribute it and/or modify 5 GNUnet is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published 6 it under the terms of the GNU General Public License as published
@@ -18,16 +18,13 @@
18 Boston, MA 02111-1307, USA. 18 Boston, MA 02111-1307, USA.
19*/ 19*/
20/** 20/**
21 * @file block/test_block.c 21 * @file fs/test_plugin_block_fs.c
22 * @brief test for block.c 22 * @brief test for plugin_block_fs.c
23 * @author Christian Grothoff 23 * @author Christian Grothoff
24 */ 24 */
25#include "platform.h" 25#include "platform.h"
26#include "gnunet_block_lib.h" 26#include "gnunet_block_lib.h"
27 27
28#define DEBUG GNUNET_EXTRA_LOGGING
29
30#define VERBOSE GNUNET_NO
31 28
32static int 29static int
33test_fs (struct GNUNET_BLOCK_Context *ctx) 30test_fs (struct GNUNET_BLOCK_Context *ctx)
@@ -57,6 +54,7 @@ test_fs (struct GNUNET_BLOCK_Context *ctx)
57 return 0; 54 return 0;
58} 55}
59 56
57
60int 58int
61main (int argc, char *argv[]) 59main (int argc, char *argv[])
62{ 60{
@@ -75,3 +73,5 @@ main (int argc, char *argv[])
75 FPRINTF (stderr, "Tests failed: %d\n", ret); 73 FPRINTF (stderr, "Tests failed: %d\n", ret);
76 return ret; 74 return ret;
77} 75}
76
77/* end of test_plugin_block_fs.c */