Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Disable tests failing when debug logs are disabled with enable_debug=OFF.
[simgrid.git] / teshsuite / xbt / log_usage / log_usage_ndebug.tesh
1 #!/usr/bin/env tesh
2
3 p Check different log thresholds
4 $ ${bindir:=.}/log_usage "--log=root.fmt:[%10.6r]%e[%i:%a@%h]%e%m%n"
5 > [  0.000000] [0:maestro@] Test with the settings ''
6 > [  0.000000] [0:maestro@] val=2
7 > [  0.000000] [0:maestro@] false alarm!
8 > [  0.000000] [0:maestro@] Test with the settings ' '
9 > [  0.000000] [0:maestro@] val=2
10 > [  0.000000] [0:maestro@] false alarm!
11 > [  0.000000] [0:maestro@] Test with the settings ' test.thres:info root.thres:info  '
12 > [  0.000000] [0:maestro@] val=2
13 > [  0.000000] [0:maestro@] false alarm!
14 > [  0.000000] [0:maestro@] Test with the settings ' test.thres:verbose root.thres:error '
15 > [  0.000000] [0:maestro@] val=2
16 > [  0.000000] [0:maestro@] false alarm!
17 > [  0.000000] [0:maestro@] Test with the settings ' test.thres:critical '
18 > [  0.000000] [0:maestro@] false alarm!
19
20 p Check the "file" log appender
21 $ ${bindir:=.}/log_usage "--log=root.fmt:[%10.6r]%e[%i:%a@%h]%e%m%n" --log=root.app:file:${bindir:=.}/log_usage.log
22 $ cat ${bindir:=.}/log_usage.log
23 > [  0.000000] [0:maestro@] Test with the settings ''
24 > [  0.000000] [0:maestro@] val=2
25 > [  0.000000] [0:maestro@] false alarm!
26 > [  0.000000] [0:maestro@] Test with the settings ' '
27 > [  0.000000] [0:maestro@] val=2
28 > [  0.000000] [0:maestro@] false alarm!
29 > [  0.000000] [0:maestro@] Test with the settings ' test.thres:info root.thres:info  '
30 > [  0.000000] [0:maestro@] val=2
31 > [  0.000000] [0:maestro@] false alarm!
32 > [  0.000000] [0:maestro@] Test with the settings ' test.thres:verbose root.thres:error '
33 > [  0.000000] [0:maestro@] val=2
34 > [  0.000000] [0:maestro@] false alarm!
35 > [  0.000000] [0:maestro@] Test with the settings ' test.thres:critical '
36 > [  0.000000] [0:maestro@] false alarm!
37
38 p Check the "rollfile" log appender
39 $ ${bindir:=.}/log_usage "--log=root.fmt:[%10.6r]%e[%i:%a@%h]%e%m%n" --log=root.app:rollfile:500:${bindir:=.}/log_usage.log
40 $ cat ${bindir:=.}/log_usage.log
41 > [  0.000000] [0:maestro@] false alarm!
42 > [  0.000000] [0:maestro@] Test with the settings ' test.thres:critical '
43 > [  0.000000] [0:maestro@] false alarm!
44 >
45 > [End of log]
46 >ttings ' '
47 > [  0.000000] [0:maestro@] val=2
48 > [  0.000000] [0:maestro@] false alarm!
49 > [  0.000000] [0:maestro@] Test with the settings ' test.thres:info root.thres:info  '
50 > [  0.000000] [0:maestro@] val=2
51 > [  0.000000] [0:maestro@] false alarm!
52 > [  0.000000] [0:maestro@] Test with the settings ' test.thres:verbose root.thres:error '
53 > [  0.000000] [0:maestro@] val=2
54 >
55 >                    
56
57 $ rm -f ${bindir:=.}/log_usage.log
58
59 p Check the "splitfile" log appender
60 $ ${bindir:=.}/log_usage "--log=root.fmt:[%10.6r]%e[%i:%a@%h]%e%m%n" --log=root.app:splitfile:500:${bindir:=.}/log_usage_%.log
61 $ cat ${bindir:=.}/log_usage_0.log
62 > [  0.000000] [0:maestro@] Test with the settings ''
63 > [  0.000000] [0:maestro@] val=2
64 > [  0.000000] [0:maestro@] false alarm!
65 > [  0.000000] [0:maestro@] Test with the settings ' '
66 > [  0.000000] [0:maestro@] val=2
67 > [  0.000000] [0:maestro@] false alarm!
68 > [  0.000000] [0:maestro@] Test with the settings ' test.thres:info root.thres:info  '
69 > [  0.000000] [0:maestro@] val=2
70 > [  0.000000] [0:maestro@] false alarm!
71 > [  0.000000] [0:maestro@] Test with the settings ' test.thres:verbose root.thres:error '
72 > [  0.000000] [0:maestro@] val=2
73
74 $ cat ${bindir:=.}/log_usage_1.log
75 > [  0.000000] [0:maestro@] false alarm!
76 > [  0.000000] [0:maestro@] Test with the settings ' test.thres:critical '
77 > [  0.000000] [0:maestro@] false alarm!
78
79 $ rm -f ${bindir:=.}/log_usage_0.log ${bindir:=.}/log_usage_1.log
80
81 p Check the "splitfile" log appender without percent in template
82 $ ${bindir:=.}/log_usage "--log=root.fmt:[%10.6r]%e[%i:%a@%h]%e%m%n" --log=root.app:splitfile:500:${bindir:=.}/log_usage.log.
83 $ cat ${bindir:=.}/log_usage.log.0
84 > [  0.000000] [0:maestro@] Test with the settings ''
85 > [  0.000000] [0:maestro@] val=2
86 > [  0.000000] [0:maestro@] false alarm!
87 > [  0.000000] [0:maestro@] Test with the settings ' '
88 > [  0.000000] [0:maestro@] val=2
89 > [  0.000000] [0:maestro@] false alarm!
90 > [  0.000000] [0:maestro@] Test with the settings ' test.thres:info root.thres:info  '
91 > [  0.000000] [0:maestro@] val=2
92 > [  0.000000] [0:maestro@] false alarm!
93 > [  0.000000] [0:maestro@] Test with the settings ' test.thres:verbose root.thres:error '
94 > [  0.000000] [0:maestro@] val=2
95
96 $ cat ${bindir:=.}/log_usage.log.1
97 > [  0.000000] [0:maestro@] false alarm!
98 > [  0.000000] [0:maestro@] Test with the settings ' test.thres:critical '
99 > [  0.000000] [0:maestro@] false alarm!
100
101 $ rm -f ${bindir:=.}/log_usage.log.0 ${bindir:=.}/log_usage.log.1