00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #include "dbus-gidl.h"
00025 #include <locale.h>
00026
00027 #ifdef DBUS_BUILD_TESTS
00028 static void run_all_tests (const char *test_data_dir);
00029 #endif
00030
00031 int
00032 main (int argc, char **argv)
00033 {
00034 setlocale(LC_ALL, "");
00035
00036 return 0;
00037 }
00038
00039 #ifdef DBUS_BUILD_TESTS
00040 static void
00041 test_die (const char *failure)
00042 {
00043 fprintf (stderr, "Unit test failed: %s\n", failure);
00044 exit (1);
00045 }
00046
00047 static void
00048 run_all_tests (const char *test_data_dir)
00049 {
00050 if (test_data_dir == NULL)
00051 test_data_dir = _dbus_getenv ("DBUS_TEST_DATA");
00052
00053 if (test_data_dir != NULL)
00054 printf ("Test data in %s\n", test_data_dir);
00055 else
00056 printf ("No test data!\n");
00057
00058 printf ("%s: running gtool tests\n", "dbus-glib-tool");
00059 if (!_dbus_gtool_test (test_data_dir))
00060 test_die ("gtool");
00061
00062 printf ("%s: completed successfully\n", "dbus-glib-test");
00063 }
00064
00070 dbus_bool_t
00071 _dbus_gtool_test (const char *test_data_dir)
00072 {
00073
00074 return TRUE;
00075 }
00076
00077 #endif