X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/201c29ab62c93305b5cdc3e973ccee3c59f65c07..d1ee594ab17ae16a853c5bdd11eea066a8ed0414:/tools/tesh/tesh.h diff --git a/tools/tesh/tesh.h b/tools/tesh/tesh.h index 2659fb7a92..8e7b17e503 100644 --- a/tools/tesh/tesh.h +++ b/tools/tesh/tesh.h @@ -2,7 +2,7 @@ /* TESH (Test Shell) -- mini shell specialized in running test units */ -/* Copyright (c) 2007 Martin Quinson. */ +/* Copyright (c) 2007-2008, Da SimGrid team. */ /* All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -11,9 +11,9 @@ #ifndef TESH_H #define TESH_H -/*** Buffers ***/ -/***************/ -#include "buff.h" +#include "portable.h" +#include "xbt/xbt_os_thread.h" +#include "xbt/strbuff.h" /*** What we need to know about signals ***/ /******************************************/ @@ -21,6 +21,25 @@ segfault leads to any of them depending on the system */ const char* signal_name(unsigned int got, char *expected); +#include "run_context.h" +/*** Options ***/ +int timeout_value; /* child timeout value */ + +rctx_t rctx; +char *testsuite_name; + + +/* Environment related definitions */ +# ifdef __APPLE__ +/* under darwin, the environment gets added to the process at startup time. So, it's not defined at library link time, forcing us to extra tricks */ +# include +# define environ (*_NSGetEnviron()) +# else +/* the environment, as specified by the opengroup, used to initialize the process properties */ +extern char **environ; +# endif + +xbt_dict_t env; /* the environment, stored as a dict (for variable substitution) */ #endif /* TESH_H */