Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
85197227a6f764bf8189f68d55199a2b426c70a0
[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 include_dirs;
53
54 extern int
55 interrupted;
56
57 /*extern int
58 exit_code;
59 */
60
61 extern int
62 want_silent;
63
64 extern int
65 want_dry_run;
66
67 extern int 
68 want_just_display;
69
70 extern int
71 dont_want_display_directory;
72
73 extern directory_t
74 root_directory;
75
76 extern int
77 want_detail_summary;
78
79 extern int
80 exit_code;
81
82 extern pid_t
83 pid;
84
85
86
87 #ifdef __cplusplus
88 }
89 #endif
90
91 #endif /* !__GLOBAL_H */
92