1 /*
2 * Copyright (C) 2007 - 2011 Vivien Malerba <malerba@gnome-db.org>
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version 2
7 * of the License, or (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 */
18 #include <stdlib.h>
19 #include <string.h>
20
21 #define PROVIDER "Firebird"
22 #include "prov-test-common.h"
23
24 extern GdaProviderInfo *pinfo;
25 extern GdaConnection *cnc;
26 extern gboolean params_provided;
27
28 int
main(int argc,char ** argv)29 main (int argc, char **argv)
30 {
31 int number_failed = 0;
32
33 gda_init ();
34
35 pinfo = gda_config_get_provider_info (PROVIDER);
36 if (!pinfo) {
37 g_warning ("Could not find provider information for %s", PROVIDER);
38 return EXIT_SUCCESS;
39 }
40 g_print ("Provider now tested: %s\n", pinfo->id);
41
42 number_failed = prov_test_common_setup ();
43
44 if (cnc) {
45 number_failed += prov_test_common_clean ();
46 }
47
48 if (! params_provided)
49 return EXIT_SUCCESS;
50 else
51 return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
52 }
53
54