Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
cut the backtrace displayed from sthread to the sthread_create to hide useless cruft
[simgrid.git] / teshsuite / xbt / log_usage / log_usage.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:debug '
15 > [  0.000000] [0:maestro@] val=1
16 > [  0.000000] [0:maestro@] val=2
17 > [  0.000000] [0:maestro@] false alarm!
18 > [  0.000000] [0:maestro@] Test with the settings ' test.thres:verbose root.thres:error '
19 > [  0.000000] [0:maestro@] val=2
20 > [  0.000000] [0:maestro@] false alarm!
21 > [  0.000000] [0:maestro@] Test with the settings ' test.thres:critical '
22 > [  0.000000] [0:maestro@] false alarm!
23
24 p Check the "file" log appender
25 $ ${bindir:=.}/log_usage "--log=root.fmt:[%10.6r]%e[%i:%a@%h]%e%m%n" --log=root.app:file:${bindir:=.}/log_usage.log
26 $ cat ${bindir:=.}/log_usage.log
27 > [  0.000000] [0:maestro@] Test with the settings ''
28 > [  0.000000] [0:maestro@] val=2
29 > [  0.000000] [0:maestro@] false alarm!
30 > [  0.000000] [0:maestro@] Test with the settings ' '
31 > [  0.000000] [0:maestro@] val=2
32 > [  0.000000] [0:maestro@] false alarm!
33 > [  0.000000] [0:maestro@] Test with the settings ' test.thres:info root.thres:info  '
34 > [  0.000000] [0:maestro@] val=2
35 > [  0.000000] [0:maestro@] false alarm!
36 > [  0.000000] [0:maestro@] Test with the settings ' test.thres:debug '
37 > [  0.000000] [0:maestro@] val=1
38 > [  0.000000] [0:maestro@] val=2
39 > [  0.000000] [0:maestro@] false alarm!
40 > [  0.000000] [0:maestro@] Test with the settings ' test.thres:verbose root.thres:error '
41 > [  0.000000] [0:maestro@] val=2
42 > [  0.000000] [0:maestro@] false alarm!
43 > [  0.000000] [0:maestro@] Test with the settings ' test.thres:critical '
44 > [  0.000000] [0:maestro@] false alarm!
45
46 p Check the "rollfile" log appender
47 $ ${bindir:=.}/log_usage "--log=root.fmt:[%10.6r]%e[%i:%a@%h]%e%m%n" --log=root.app:rollfile:500:${bindir:=.}/log_usage.log
48 $ cat ${bindir:=.}/log_usage.log
49 > [  0.000000] [0:maestro@] val=2
50 > [  0.000000] [0:maestro@] false alarm!
51 > [  0.000000] [0:maestro@] Test with the settings ' test.thres:verbose root.thres:error '
52 > [  0.000000] [0:maestro@] val=2
53 > [  0.000000] [0:maestro@] false alarm!
54 > [  0.000000] [0:maestro@] Test with the settings ' test.thres:critical '
55 > [  0.000000] [0:maestro@] false alarm!
56 >
57 > [End of log]
58 > ] val=2
59 > [  0.000000] [0:maestro@] false alarm!
60 > [  0.000000] [0:maestro@] Test with the settings ' test.thres:debug '
61 > [  0.000000] [0:maestro@] val=1
62 >
63 >                    
64
65 $ rm -f ${bindir:=.}/log_usage.log
66
67 p Check the "splitfile" log appender
68 $ ${bindir:=.}/log_usage "--log=root.fmt:[%10.6r]%e[%i:%a@%h]%e%m%n" --log=root.app:splitfile:500:${bindir:=.}/log_usage_%.log
69 $ cat ${bindir:=.}/log_usage_0.log
70 > [  0.000000] [0:maestro@] Test with the settings ''
71 > [  0.000000] [0:maestro@] val=2
72 > [  0.000000] [0:maestro@] false alarm!
73 > [  0.000000] [0:maestro@] Test with the settings ' '
74 > [  0.000000] [0:maestro@] val=2
75 > [  0.000000] [0:maestro@] false alarm!
76 > [  0.000000] [0:maestro@] Test with the settings ' test.thres:info root.thres:info  '
77 > [  0.000000] [0:maestro@] val=2
78 > [  0.000000] [0:maestro@] false alarm!
79 > [  0.000000] [0:maestro@] Test with the settings ' test.thres:debug '
80 > [  0.000000] [0:maestro@] val=1
81
82 $ cat ${bindir:=.}/log_usage_1.log
83 > [  0.000000] [0:maestro@] val=2
84 > [  0.000000] [0:maestro@] false alarm!
85 > [  0.000000] [0:maestro@] Test with the settings ' test.thres:verbose root.thres:error '
86 > [  0.000000] [0:maestro@] val=2
87 > [  0.000000] [0:maestro@] false alarm!
88 > [  0.000000] [0:maestro@] Test with the settings ' test.thres:critical '
89 > [  0.000000] [0:maestro@] false alarm!
90
91 $ rm -f ${bindir:=.}/log_usage_0.log ${bindir:=.}/log_usage_1.log
92
93 p Check the "splitfile" log appender without percent in template
94 $ ${bindir:=.}/log_usage "--log=root.fmt:[%10.6r]%e[%i:%a@%h]%e%m%n" --log=root.app:splitfile:500:${bindir:=.}/log_usage.log.
95 $ cat ${bindir:=.}/log_usage.log.0
96 > [  0.000000] [0:maestro@] Test with the settings ''
97 > [  0.000000] [0:maestro@] val=2
98 > [  0.000000] [0:maestro@] false alarm!
99 > [  0.000000] [0:maestro@] Test with the settings ' '
100 > [  0.000000] [0:maestro@] val=2
101 > [  0.000000] [0:maestro@] false alarm!
102 > [  0.000000] [0:maestro@] Test with the settings ' test.thres:info root.thres:info  '
103 > [  0.000000] [0:maestro@] val=2
104 > [  0.000000] [0:maestro@] false alarm!
105 > [  0.000000] [0:maestro@] Test with the settings ' test.thres:debug '
106 > [  0.000000] [0:maestro@] val=1
107
108 $ cat ${bindir:=.}/log_usage.log.1
109 > [  0.000000] [0:maestro@] val=2
110 > [  0.000000] [0:maestro@] false alarm!
111 > [  0.000000] [0:maestro@] Test with the settings ' test.thres:verbose root.thres:error '
112 > [  0.000000] [0:maestro@] val=2
113 > [  0.000000] [0:maestro@] false alarm!
114 > [  0.000000] [0:maestro@] Test with the settings ' test.thres:critical '
115 > [  0.000000] [0:maestro@] false alarm!
116
117 $ rm -f ${bindir:=.}/log_usage.log.0 ${bindir:=.}/log_usage.log.1