aboutsummaryrefslogtreecommitdiff
path: root/src/ats-tests/gnunet-solver-eval.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ats-tests/gnunet-solver-eval.c')
-rw-r--r--src/ats-tests/gnunet-solver-eval.c47
1 files changed, 31 insertions, 16 deletions
diff --git a/src/ats-tests/gnunet-solver-eval.c b/src/ats-tests/gnunet-solver-eval.c
index 0e49a3a32..1bb7fdee7 100644
--- a/src/ats-tests/gnunet-solver-eval.c
+++ b/src/ats-tests/gnunet-solver-eval.c
@@ -331,12 +331,14 @@ load_episode (struct Experiment *e,
331 o->pref_type = GNUNET_ATS_PREFERENCE_LATENCY; 331 o->pref_type = GNUNET_ATS_PREFERENCE_LATENCY;
332 else 332 else
333 { 333 {
334 fprintf (stderr, "Invalid preference in operation %u `%s' in episode %u\n", 334 fprintf (stderr,
335 op_counter, op, cur->id); 335 "Invalid preference in operation %u `%s' in episode %u\n",
336 op_counter,
337 op,
338 cur->id);
336 GNUNET_free (type); 339 GNUNET_free (type);
337 GNUNET_free (op_name); 340 GNUNET_free (op_name);
338 GNUNET_free (op); 341 GNUNET_free (op);
339 GNUNET_free (pref);
340 GNUNET_free (sec_name); 342 GNUNET_free (sec_name);
341 GNUNET_free_non_null (pref); 343 GNUNET_free_non_null (pref);
342 GNUNET_free (o); 344 GNUNET_free (o);
@@ -929,22 +931,35 @@ main (int argc, char *argv[])
929 opt_log = GNUNET_NO; 931 opt_log = GNUNET_NO;
930 opt_plot = GNUNET_NO; 932 opt_plot = GNUNET_NO;
931 933
932 static struct GNUNET_GETOPT_CommandLineOption options[] = 934 struct GNUNET_GETOPT_CommandLineOption options[] =
933 { 935 {
934 { 's', "solver", NULL, 936 GNUNET_GETOPT_OPTION_STRING ('s',
935 gettext_noop ("solver to use"), 937 "solver",
936 1, &GNUNET_GETOPT_set_string, &opt_solver}, 938 NULL,
937 { 'e', "experiment", NULL, 939 gettext_noop ("solver to use"),
938 gettext_noop ("experiment to use"), 940 &opt_solver),
939 1, &GNUNET_GETOPT_set_string, &opt_exp_file}, 941
940 { 'e', "experiment", NULL, 942 GNUNET_GETOPT_OPTION_STRING ('e',
941 gettext_noop ("experiment to use"), 943 "experiment",
942 1, &GNUNET_GETOPT_set_one, &opt_verbose}, 944 NULL,
945 gettext_noop ("experiment to use"),
946 &opt_exp_file),
947
948 GNUNET_GETOPT_OPTION_SET_ONE ('e',
949 "experiment",
950 gettext_noop ("experiment to use"),
951 &opt_verbose),
943 GNUNET_GETOPT_OPTION_END 952 GNUNET_GETOPT_OPTION_END
944 }; 953 };
945 954
946 GNUNET_PROGRAM_run (argc, argv, argv[0], NULL, options, &run, argv[0]); 955 if (GNUNET_OK !=
956 GNUNET_PROGRAM_run (argc,
957 argv, argv[0],
958 NULL,
959 options,
960 &run, argv[0]))
961 return 1;
947 962
948 return 0; 963 return 0;
949} 964}
950/* end of file ats-testing-experiment.c*/ 965/* end of file gnunet-solver-eval.c*/