#include "platform.h"
#include "gnunet_util_lib.h"
-#if HAVE_LIBGLPK && HAVE_GLPK
-
#include "gnunet_testing_lib.h"
#include "gnunet_transport_service.h"
#include "gauger.h"
-#include "transport_ats.h"
+#include "gnunet-service-transport_ats.h"
#define VERBOSE GNUNET_NO
{
struct ATS_quality_metric * q = qm;
q = NULL;
+ q++;
struct ATS_ressource * r = ressources;
r = NULL;
+ r++;
}
static size_t
GNUNET_GETOPT_OPTION_END
};
GNUNET_PROGRAM_run ((sizeof (argv) / sizeof (char *)) - 1,
- argv, "test-transport-ats", "nohelp",
+ argv, "test_transport_ats_multiple_peers", "nohelp",
options, &run, &ok);
return ok;
}
-#endif
-
int
main (int argc, char *argv[])
{
- int ret;
+ int ret = 0;
GNUNET_log_setup ("test-transport-ats-multiple-peers",
#if VERBOSE
#endif
NULL);
-#if !HAVE_LIBGLPK && !HAVE_GLPK
- GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
- "GLPK not installed, exiting testcase\n");
- return 0;
-#else
-
GNUNET_DISK_directory_remove ("/tmp/test-gnunet-testing");
machine_parsable = GNUNET_NO;
peers = NUM_PEERS;
}
}
-
-
ret = check ();
/**
* Still need to remove the base testing directory here,
*/
GNUNET_DISK_directory_remove ("/tmp/test-gnunet-testing");
return ret;
-#endif
}
/* end of test_transport_ats_multiple_peers.c*/