#include "gnunet_nat_lib.h"
-#define VERBOSE GNUNET_NO
+#define VERBOSE GNUNET_EXTRA_LOGGING
/**
- * Time to wait before stopping NAT test, in seconds
+ * Time to wait before stopping NAT test, in seconds
*/
#define TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 15)
};
struct GNUNET_OS_Process *gns;
+ int nat_res;
+
char *const argv_prog[] = {
"test-nat-test",
"-c",
"WARNING",
#endif
NULL);
+
+ nat_res = GNUNET_OS_check_helper_binary ("gnunet-nat-server");
+ if (GNUNET_SYSERR == nat_res)
+ {
+ GNUNET_log (GNUNET_ERROR_TYPE_WARNING, "Cannot run NAT test: `%s' file not found\n",
+ "gnunet-nat-server");
+ return 0;
+ }
+
gns =
GNUNET_OS_start_process (NULL, NULL, "gnunet-nat-server",
"gnunet-nat-server",