Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
80ff496bd94b697a3759c179fc7b6a3bf6eaf3e2
[simgrid.git] / tools / tesh2 / include / com.h
1 #ifndef __GLOBAL_H
2 #define __GLOBAL_H
3
4 #include <types.h>
5
6 #include <ctype.h>
7
8 #ifdef __cplusplus
9 extern "C" {
10 #endif
11
12
13 /* 
14  * if 1, keep going when some commands can't be founded 
15  */
16 extern int 
17 want_keep_going;
18
19 /* if 1, ignore failures from commands                                  
20  * the possibles failures are :
21  *
22  *      - exit code     != expected exit code
23  *      - signal        != expected signal
24  *      - output        != expected output
25  *  - read pipe broken
26  *  - write pipe broken
27  *  - timeout
28  *
29  * remark :
30  *
31  *      a command not found is not a failure, it's an error
32  *  to keep going when a command is not found specify the
33  *  option --keep-going
34  */
35 extern int
36 want_keep_going_unit;
37
38 /* 
39  * the semaphore used to synchronize the jobs 
40  */
41 extern xbt_os_sem_t
42 jobs_sem;
43
44 /* 
45  * the semaphore used by the runner to wait the end of all the units 
46  */
47 extern xbt_os_sem_t
48 units_sem;
49
50 /* the dlist of tesh include directories */
51 extern vector_t 
52 includes;
53
54 extern int
55 interrupted;
56
57 extern int
58 exit_code;
59
60 extern int
61 want_silent;
62
63 extern int
64 want_dry_run;
65
66 extern int 
67 want_just_display;
68
69 extern int
70 dont_want_display_directory;
71
72 extern directory_t
73 root_directory;
74
75
76 #ifdef __cplusplus
77 }
78 #endif
79
80 #endif /* !__GLOBAL_H */
81