1.1 --- a/gmyth/src/gmyth_util.c Tue Nov 28 03:15:55 2006 +0000
1.2 +++ b/gmyth/src/gmyth_util.c Tue Nov 28 03:17:22 2006 +0000
1.3 @@ -163,7 +163,6 @@
1.4 gmyth_string_list_append_char_array (slist, "QUERY_CHECKFILE");
1.5
1.6 gmyth_program_info_to_string_list (program, slist);
1.7 - g_debug ("XXXXXXXX List size: %d\n", gmyth_string_list_length (slist));
1.8
1.9 gmyth_socket_sendreceive_stringlist (socket, slist);
1.10
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2.2 +++ b/gmyth/tests/compile_file_exists Tue Nov 28 03:17:22 2006 +0000
2.3 @@ -0,0 +1,1 @@
2.4 +gcc -o test_file_exists test_file_exists.c -DBIG_JOINS=1 -I/usr/include/mysql -I/usr/local/include/gmyth -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -L/usr/local/lib -lmysqlclient -lz -lcrypt -lnsl -lm -lgmyth -lgobject-2.0 -lglib-2.0
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
3.2 +++ b/gmyth/tests/test_file_exists.c Tue Nov 28 03:17:22 2006 +0000
3.3 @@ -0,0 +1,29 @@
3.4 +
3.5 +#include <glib-object.h>
3.6 +
3.7 +#include "gmyth_util.h"
3.8 +#include "gmyth_backendinfo.h"
3.9 +
3.10 +int
3.11 +main (int args, const char **argv)
3.12 +{
3.13 + const char *filename = argv[1];
3.14 +
3.15 + gboolean res;
3.16 + GMythBackendInfo *backend_info;
3.17 +
3.18 + g_type_init ();
3.19 +
3.20 + backend_info = gmyth_backend_info_new ();
3.21 +
3.22 + gmyth_backend_info_set_hostname (backend_info, "127.0.0.1");
3.23 + gmyth_backend_info_set_port (backend_info, 6543);
3.24 +
3.25 + g_print ("XXXXXXXX Testing if file %s exists in backend 127.0.0.1\n", filename);
3.26 +
3.27 + res = gmyth_util_file_exists (backend_info, filename);
3.28 +
3.29 + g_print ("XXXXXXXX Result is: %d\n", res);
3.30 +
3.31 + return 0;
3.32 +}