aboutsummaryrefslogtreecommitdiff
path: root/src/fs/test_fs_file_information.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-06-15 08:10:52 +0000
committerChristian Grothoff <christian@grothoff.org>2012-06-15 08:10:52 +0000
commite825548ea9a45d1f4b25898f87b5c74f8bc4cc25 (patch)
tree0a0236af09b77d8e32693c1e9fb7db4affd9ce8a /src/fs/test_fs_file_information.c
parent9f4e1f6e097b3c97abe0971b68b2ab686a61f036 (diff)
downloadgnunet-e825548ea9a45d1f4b25898f87b5c74f8bc4cc25.tar.gz
gnunet-e825548ea9a45d1f4b25898f87b5c74f8bc4cc25.zip
-simplifying tests with new testing lib
Diffstat (limited to 'src/fs/test_fs_file_information.c')
-rw-r--r--src/fs/test_fs_file_information.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/fs/test_fs_file_information.c b/src/fs/test_fs_file_information.c
index fb7de7d9a..cc79c8020 100644
--- a/src/fs/test_fs_file_information.c
+++ b/src/fs/test_fs_file_information.c
@@ -31,12 +31,10 @@
31 * - other API functions may not yet be tested (such as 31 * - other API functions may not yet be tested (such as
32 * filedata-from-callback) 32 * filedata-from-callback)
33 */ 33 */
34
35#include "platform.h" 34#include "platform.h"
36#include "gnunet_util_lib.h" 35#include "gnunet_util_lib.h"
37#include "gnunet_fs_service.h" 36#include "gnunet_fs_service.h"
38 37
39#define VERBOSE GNUNET_NO
40 38
41/** 39/**
42 * File-size we use for testing. 40 * File-size we use for testing.
@@ -137,9 +135,6 @@ run (void *cls, char *const *args, const char *cfgfile,
137} 135}
138 136
139 137
140
141
142
143int 138int
144main (int argc, char *argv[]) 139main (int argc, char *argv[])
145{ 140{
@@ -147,9 +142,6 @@ main (int argc, char *argv[])
147 "test-fs-file_information", 142 "test-fs-file_information",
148 "-c", 143 "-c",
149 "test_fs_file_information_data.conf", 144 "test_fs_file_information_data.conf",
150#if VERBOSE
151 "-L", "DEBUG",
152#endif
153 NULL 145 NULL
154 }; 146 };
155 struct GNUNET_GETOPT_CommandLineOption options[] = { 147 struct GNUNET_GETOPT_CommandLineOption options[] = {
@@ -157,11 +149,7 @@ main (int argc, char *argv[])
157 }; 149 };
158 150
159 GNUNET_log_setup ("test_fs_file_information", 151 GNUNET_log_setup ("test_fs_file_information",
160#if VERBOSE
161 "DEBUG",
162#else
163 "WARNING", 152 "WARNING",
164#endif
165 NULL); 153 NULL);
166 GNUNET_PROGRAM_run ((sizeof (argvx) / sizeof (char *)) - 1, argvx, 154 GNUNET_PROGRAM_run ((sizeof (argvx) / sizeof (char *)) - 1, argvx,
167 "test-fs-file_information", "nohelp", options, &run, 155 "test-fs-file_information", "nohelp", options, &run,