From: mquinson Date: Fri, 10 Dec 2004 11:43:16 +0000 (+0000) Subject: test local version of gras, not the installed one; use gras_init now that it exists... X-Git-Tag: v3.3~4745 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/11029a74f96a8817eaf2990426159953ca4369d0 test local version of gras, not the installed one; use gras_init now that it exists (again); fix some (c) dates git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@605 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/testsuite/gras/mk_datadesc_structs.pl b/testsuite/gras/mk_datadesc_structs.pl index 7ebf03c82a..41a65715da 100755 --- a/testsuite/gras/mk_datadesc_structs.pl +++ b/testsuite/gras/mk_datadesc_structs.pl @@ -19,8 +19,7 @@ die 'scalar @types != scalar @abrev' unless (scalar @types == scalar @abrev); print "/* This file is perl-generated, of course */\n\n"; -print "#include \n"; -print "#include \n\n"; +print "#include \"gras.h\"\n\n"; print "XBT_LOG_NEW_DEFAULT_SUBCATEGORY(structs,test,\"Logs about the gigantic struct test\");\n\n"; diff --git a/testsuite/gras/trp_file_client.c b/testsuite/gras/trp_file_client.c index 6d4b89504e..8985f922fc 100644 --- a/testsuite/gras/trp_file_client.c +++ b/testsuite/gras/trp_file_client.c @@ -2,13 +2,13 @@ /* trp_tcp_client: Client of a test case for the tcp transport. */ -/* Copyright (c) 2004 Martin Quinson. All rights reserved. */ +/* Copyright (c) 2003, 2004 Martin Quinson. All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ #include -#include +#include "gras.h" #include "gras/Transport/transport_interface.h" /* XBT_LOG_NEW_DEFAULT_CATEGORY(test); */ @@ -19,7 +19,7 @@ int main(int argc,char *argv[]) { char data_send[256]; memset(data_send,0,sizeof(data_send)); - xbt_init_defaultlog(&argc,argv,"trp.thresh=debug"); + gras_init(&argc,argv,"trp.thresh=debug"); fprintf(stderr,"===[CLIENT]=== Contact the server\n"); TRYFAIL(gras_socket_client_from_file("-",&sock)); diff --git a/testsuite/gras/trp_file_server.c b/testsuite/gras/trp_file_server.c index c38b6e671f..cbe4e5527a 100644 --- a/testsuite/gras/trp_file_server.c +++ b/testsuite/gras/trp_file_server.c @@ -2,13 +2,13 @@ /* trp_tcp_server: Server of a test case for the tcp transport. */ -/* Copyright (c) 2004 Martin Quinson. All rights reserved. */ +/* Copyright (c) 2003, 2004 Martin Quinson. All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ #include -#include +#include "gras.h" #include "gras/Transport/transport_interface.h" /*XBT_LOG_NEW_DEFAULT_CATEGORY(test);*/ @@ -18,7 +18,7 @@ int main(int argc,char *argv[]) { xbt_error_t errcode; char data_recv[256]; - xbt_init_defaultlog(&argc,argv,"trp.thresh=debug"); + gras_init(&argc,argv,"trp.thresh=debug"); fprintf(stderr,"===[SERVER]=== Create the socket\n"); TRYFAIL(gras_socket_server_from_file("-",&sock)); diff --git a/testsuite/gras/trp_tcp_client.c b/testsuite/gras/trp_tcp_client.c index c21c1b6fbc..f12fe76680 100644 --- a/testsuite/gras/trp_tcp_client.c +++ b/testsuite/gras/trp_tcp_client.c @@ -2,13 +2,13 @@ /* trp_tcp_client: Client of a test case for the tcp transport. */ -/* Copyright (c) 2004 Martin Quinson. All rights reserved. */ +/* Copyright (c) 2003, 2004 Martin Quinson. All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ #include -#include +#include "gras.h" #include "gras/Transport/transport_interface.h" /*XBT_LOG_NEW_DEFAULT_CATEGORY(test);*/ @@ -22,7 +22,7 @@ int main(int argc,char *argv[]) { memset(data_send, 0, sizeof(data_send)); memset(data_recv, 0, sizeof(data_recv)); - xbt_init_defaultlog(&argc,argv,"trp.thresh=debug"); + gras_init(&argc,argv,"trp.thresh=debug"); fprintf(stderr,"===[CLIENT]=== Contact the server\n"); TRYFAIL(gras_socket_client(NULL,55555,&sock)); diff --git a/testsuite/gras/trp_tcp_server.c b/testsuite/gras/trp_tcp_server.c index 1623608a5b..46e76c5cd3 100644 --- a/testsuite/gras/trp_tcp_server.c +++ b/testsuite/gras/trp_tcp_server.c @@ -2,13 +2,13 @@ /* trp_tcp_server: Server of a test case for the tcp transport. */ -/* Copyright (c) 2004 Martin Quinson. All rights reserved. */ +/* Copyright (c) 2003, 2004 Martin Quinson. All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ #include -#include +#include "gras.h" #include "gras/Transport/transport_interface.h" /*XBT_LOG_NEW_DEFAULT_CATEGORY(test);*/ @@ -18,7 +18,7 @@ int main(int argc,char *argv[]) { xbt_error_t errcode; char data_recv[256]; - xbt_init_defaultlog(&argc,argv,"trp.thresh=debug"); + gras_init(&argc,argv,"trp.thresh=debug"); fprintf(stderr,"===[SERVER]=== Create the socket\n"); TRYFAIL(gras_socket_server(55555,&sock));