test_fs_getopt \
test_fs_uri
-TESTS = test_fs_directory test_fs_uri
+TESTS = test_fs_directory test_fs_download test_fs_uri
# $(check_PROGRAMS)
#include "fs.h"
#include "fs_tree.h"
-#define DEBUG_DOWNLOAD GNUNET_YES
+#define DEBUG_DOWNLOAD GNUNET_NO
/**
* We're storing the IBLOCKS after the
&query);
if (NULL == sm)
{
- GNUNET_break (0); /* FIXME: this assertion actually fails for one
- of my tests, the ascii-strings of the
- query match what was printed when the
- request was originally made; this does
- NOT happen if in line ~825 a HT size
- of 1 is used! => bug in HT? */
+ GNUNET_break (0);
return;
}
if (size != calculate_block_size (GNUNET_ntohll (dc->uri->data.chk.file_length),
}
GNUNET_CLIENT_disconnect (dc->client);
dc->client = NULL;
+ GNUNET_free (sm);
return;
}
}
}
// FIXME: make persistent
if (sm->depth == dc->treedepth)
- return;
+ {
+ GNUNET_free (sm);
+ return;
+ }
#if DEBUG_DOWNLOAD
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"Triggering downloads of children (this block was at level %u and offset %llu)\n",
off,
sm->depth + 1);
}
+ GNUNET_free (sm);
}
&fi->client_info);
}
GNUNET_free_non_null (fi->emsg);
+ GNUNET_free_non_null (fi->chk_uri);
/* clean up serialization */
if ( (NULL != fi->serialization) &&
(0 != UNLINK (fi->serialization)) )
#include "fs.h"
#include "fs_tree.h"
-#define DEBUG_PUBLISH GNUNET_YES
+#define DEBUG_PUBLISH GNUNET_NO
/**
* Maximum allowed size for a KBlock.
#include "platform.h"
#include "fs_tree.h"
-#define DEBUG_TREE GNUNET_YES
+#define DEBUG_TREE GNUNET_NO
/**
* Context for an ECRS-based file encoder that computes
#include "gnunet_util_lib.h"
#include "fs.h"
-#define DEBUG_FS GNUNET_YES
+#define DEBUG_FS GNUNET_NO
/**
"FS");
return;
}
+ if (GNUNET_NO == GNUNET_DISK_file_test (fn))
+ {
+ /* no index info yet */
+ GNUNET_free (fn);
+ return;
+ }
rh = GNUNET_BIO_read_open (fn);
if (NULL == rh)
{
(unsigned long long) dlen,
s);
GNUNET_free (s);
- if (i < 1000)
+ if (i < 100)
{
cls.pos = 0;
cls.uri = uris;
"WARNING",
#endif
NULL);
- for (i = 17; i < 4000; i *= 2)
+ for (i = 17; i < 1000; i *= 2)
failureCount += testDirectory (i);
- fprintf (stderr, "\n");
-
if (failureCount != 0)
return 1;
return 0;
#include "gnunet_arm_service.h"
#include "gnunet_fs_service.h"
-#define VERBOSE GNUNET_YES
+#define VERBOSE GNUNET_NO
#define START_ARM GNUNET_YES
DEFAULTSERVICES = resolver datastore transport core fs
[datastore]
-DEBUG = YES
+#DEBUG = YES
[statistics]
PORT = 42467
[fs]
PORT = 42471
HOSTNAME = localhost
-DEBUG = YES
+#DEBUG = YES
[testing]
WEAKRANDOM = YES