Logo AND Algorithmique Numérique Distribuée

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