2 This file is part of GNUnet.
3 (C) 2009 Christian Grothoff (and other contributing authors)
5 GNUnet is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published
7 by the Free Software Foundation; either version 3, or (at your
8 option) any later version.
10 GNUnet is distributed in the hope that it will be useful, but
11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with GNUnet; see the file COPYING. If not, write to the
17 Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 Boston, MA 02111-1307, USA.
21 * @file testing/test_transport_ats.c
22 * @brief testcase for ats functionality without starting peers
25 #include "transport_ats.h"
26 #include "gnunet_configuration_lib.h"
28 #define VERBOSE GNUNET_YES
30 struct GNUNET_CONFIGURATION_Handle *cfg;
32 static struct ATS_Handle * ats;
39 //ats = ats_init(cfg);
40 //GNUNET_assert (ats != NULL);
42 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
43 "Initializing ATS: %s \n", (ret==0)? "SUCCESFULL": "FAILED");
48 int shutdown_ats (void)
52 //ats_delete_problem (ats);
54 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
55 "Shutdown ATS: %s \n", (ret==0)? "SUCCESFULL": "FAILED");
59 /* To make compiler happy */
62 struct ATS_quality_metric * q = qm;
64 struct ATS_ressource * r = ressources;
69 main (int argc, char *argv[])
73 GNUNET_log_setup ("test-transport-ats",
81 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
82 "HAVE_LIBGLPK not set, exiting testcase\n");
90 cfg = GNUNET_CONFIGURATION_create();
91 GNUNET_CONFIGURATION_load(cfg, "test_transport_ats_1addr.conf");
96 ret += shutdown_ats ();
99 GNUNET_CONFIGURATION_destroy(cfg);
104 /* end of test_transport_ats.c*/