#include "gnunet_util_lib.h"
#include "gnunet_datacache_lib.h"
-#define VERBOSE GNUNET_NO
-
#define ASSERT(x) do { if (! (x)) { printf("Error at %s:%d\n", __FILE__, __LINE__); goto FAILURE;} } while (0)
static int ok;
{
if (size != sizeof (GNUNET_HashCode))
{
- printf ("ERROR: Invalid size\n");
+ GNUNET_break (0);
ok = 2;
}
if (0 != memcmp (data, cls, size))
{
- printf ("ERROR: Invalid data\n");
+ GNUNET_break (0);
ok = 3;
}
return GNUNET_OK;
"test-datacache",
"-c",
cfg_name,
-#if VERBOSE
- "-L", "DEBUG",
-#endif
NULL
};
struct GNUNET_GETOPT_CommandLineOption options[] = {
};
GNUNET_log_setup ("test-datacache",
-#if VERBOSE
- "DEBUG",
-#else
"WARNING",
-#endif
NULL);
/* determine name of plugin to use */
plugin_name = argv[0];