Drop unused condition check
[pcp.git] / qa / 299.out
blobd31916f9ccc2643876655ab330bc13ad26abfc61
1 QA output created by 299
2 === No instance and no error cases ===
4 pmParseMetricSpec("sample", 1, "default_arch", ...)
5 isarch:   1
6 source:   "default_arch"
7 metric:   "sample"
9 pmParseMetricSpec("sample", 0, "default_host", ...)
10 isarch:   0
11 source:   "default_host"
12 metric:   "sample"
14 pmParseMetricSpec("my_arch/sample", 1, "default_arch", ...)
15 isarch:   1
16 source:   "my_arch"
17 metric:   "sample"
19 pmParseMetricSpec("my_host:sample", 0, "default_host", ...)
20 isarch:   0
21 source:   "my_host"
22 metric:   "sample"
24 pmParseMetricSpec("other_host:sample", 1, "default_arch", ...)
25 isarch:   0
26 source:   "other_host"
27 metric:   "sample"
29 pmParseMetricSpec("/other/arch/sample", 0, "default_host", ...)
30 isarch:   1
31 source:   "/other/arch"
32 metric:   "sample"
34 pmParseMetricSpec("@:sample", 0, "default_host", ...)
35 isarch:   2
36 source:   "@"
37 metric:   "sample"
39 === One instance and no error cases ===
41 pmParseMetricSpec("sample[singular]", 1, "default_arch", ...)
42 isarch:   1
43 source:   "default_arch"
44 metric:   "sample"
45 inst[0]:  "singular"
47 pmParseMetricSpec("sample[singular]", 0, "default_host", ...)
48 isarch:   0
49 source:   "default_host"
50 metric:   "sample"
51 inst[0]:  "singular"
53 pmParseMetricSpec("my_arch/sample[singular]", 1, "default_arch", ...)
54 isarch:   1
55 source:   "my_arch"
56 metric:   "sample"
57 inst[0]:  "singular"
59 pmParseMetricSpec("my_host:sample[singular]", 0, "default_host", ...)
60 isarch:   0
61 source:   "my_host"
62 metric:   "sample"
63 inst[0]:  "singular"
65 pmParseMetricSpec("other_host:sample[singular]", 1, "default_arch", ...)
66 isarch:   0
67 source:   "other_host"
68 metric:   "sample"
69 inst[0]:  "singular"
71 pmParseMetricSpec("/other/arch/sample[singular]", 0, "default_host", ...)
72 isarch:   1
73 source:   "/other/arch"
74 metric:   "sample"
75 inst[0]:  "singular"
77 pmParseMetricSpec("@:sample[singular]", 0, "default_host", ...)
78 isarch:   2
79 source:   "@"
80 metric:   "sample"
81 inst[0]:  "singular"
83 === Multiple instances and no error cases ===
85 pmParseMetricSpec("sample[one,two,three]", 1, "default_arch", ...)
86 isarch:   1
87 source:   "default_arch"
88 metric:   "sample"
89 inst[0]:  "one"
90 inst[1]:  "two"
91 inst[2]:  "three"
93 pmParseMetricSpec("sample[one,two,three]", 0, "default_host", ...)
94 isarch:   0
95 source:   "default_host"
96 metric:   "sample"
97 inst[0]:  "one"
98 inst[1]:  "two"
99 inst[2]:  "three"
101 pmParseMetricSpec("my_arch/sample[one,two,three]", 1, "default_arch", ...)
102 isarch:   1
103 source:   "my_arch"
104 metric:   "sample"
105 inst[0]:  "one"
106 inst[1]:  "two"
107 inst[2]:  "three"
109 pmParseMetricSpec("my_host:sample[one,two,three]", 0, "default_host", ...)
110 isarch:   0
111 source:   "my_host"
112 metric:   "sample"
113 inst[0]:  "one"
114 inst[1]:  "two"
115 inst[2]:  "three"
117 pmParseMetricSpec("other_host:sample[one,two,three]", 1, "default_arch", ...)
118 isarch:   0
119 source:   "other_host"
120 metric:   "sample"
121 inst[0]:  "one"
122 inst[1]:  "two"
123 inst[2]:  "three"
125 pmParseMetricSpec("/other/arch/sample[one,two,three]", 0, "default_host", ...)
126 isarch:   1
127 source:   "/other/arch"
128 metric:   "sample"
129 inst[0]:  "one"
130 inst[1]:  "two"
131 inst[2]:  "three"
133 pmParseMetricSpec("@:sample[one,two,three]", 0, "default_host", ...)
134 isarch:   2
135 source:   "@"
136 metric:   "sample"
137 inst[0]:  "one"
138 inst[1]:  "two"
139 inst[2]:  "three"
141 === Some whitespace cases ===
143 pmParseMetricSpec(" my_host : sample [ one , two , three ] ", 0, "default_host", ...)
144 isarch:   0
145 source:   "my_host"
146 metric:   "sample"
147 inst[0]:  "one"
148 inst[1]:  "two"
149 inst[2]:  "three"
151 pmParseMetricSpec("my_arch   /   sample  [singular]", 1, "default_arch", ...)
152 isarch:   1
153 source:   "my_arch"
154 metric:   "sample"
155 inst[0]:  "singular"
157 === Miscellaneous cases ===
159 pmParseMetricSpec("../../relative/pathname/myarch/metric", 0, "default_host", ...)
160 isarch:   1
161 source:   "../../relative/pathname/myarch"
162 metric:   "metric"
164 pmParseMetricSpec("metric.a.b.c.d[]", 0, "default_host", ...)
165 isarch:   0
166 source:   "default_host"
167 metric:   "metric.a.b.c.d"
169 pmParseMetricSpec("/full/pathname/myarch/metric[fumble mumble]", 0, "default_host", ...)
170 isarch:   1
171 source:   "/full/pathname/myarch"
172 metric:   "metric"
173 inst[0]:  "fumble"
174 inst[1]:  "mumble"
176 pmParseMetricSpec("./myarch/metric[fumble,,mumble]", 0, "default_host", ...)
177 isarch:   1
178 source:   "./myarch"
179 metric:   "metric"
180 inst[0]:  "fumble"
181 inst[1]:  "mumble"
183 pmParseMetricSpec("foo["instance with strange chars :/,[]\""]", 0, "default_host", ...)
184 isarch:   0
185 source:   "default_host"
186 metric:   "foo"
187 inst[0]:  "instance with strange chars :/,[]""
189 pmParseMetricSpec("20080424:12:05/disk.dev.total["sda1"]", 0, "default_host", ...)
190 isarch:   1
191 source:   "20080424:12:05"
192 metric:   "disk.dev.total"
193 inst[0]:  "sda1"
195 pmParseMetricSpec("20080424:12:05/disk.all.total", 0, "default_host", ...)
196 isarch:   1
197 source:   "20080424:12:05"
198 metric:   "disk.all.total"
200 === Some odd cases (incorrectly used to be classified as errors) ===
202 pmParseMetricSpec("one/two:three", 0, "default_host", ...)
203 isarch:   0
204 source:   "one/two"
205 metric:   "three"
207 pmParseMetricSpec("foo:bar/fumble[mumble]", 0, "default_host", ...)
208 isarch:   1
209 source:   "foo:bar"
210 metric:   "fumble"
211 inst[0]:  "mumble"
213 === Some error cases ===
215 pmParseMetricSpec("foo/bar[fumble]mumble", 0, "default_host", ...)
216 pmParseMetricSpec Error:
217 foo/bar[fumble]mumble
218                ^ -- unexpected extra characters
221 pmParseMetricSpec("foo:", 0, "default_host", ...)
222 pmParseMetricSpec Error:
223 foo:
224     ^ -- performance metric name expected
227 pmParseMetricSpec(":badhost", 0, "default_host", ...)
228 pmParseMetricSpec Error:
229 :badhost
230 ^ -- host name expected
233 pmParseMetricSpec("bad/arch/", 0, "default_host", ...)
234 pmParseMetricSpec Error:
235 bad/arch/
236          ^ -- performance metric name expected
239 pmParseMetricSpec("/bad/arch/[", 0, "default_host", ...)
240 pmParseMetricSpec Error:
241 /bad/arch/[
242           ^ -- performance metric name expected
245 pmParseMetricSpec("norsqb[", 0, "default_host", ...)
246 pmParseMetricSpec Error:
247 norsqb[
248        ^ -- closing ] expected
251 pmParseMetricSpec("nolsqb-instance]", 0, "default_host", ...)
252 pmParseMetricSpec Error:
253 nolsqb-instance]
254                ^ -- unexpected character in metric name
257 pmParseMetricSpec("metric["noclosingquote", 0, "default_host", ...)
258 pmParseMetricSpec Error:
259 metric["noclosingquote
260                       ^ -- closing " and ] expected
263 pmParseMetricSpec("metric["noclosingquote]", 0, "default_host", ...)
264 pmParseMetricSpec Error:
265 metric["noclosingquote]
266                        ^ -- closing " and ] expected
269 pmParseMetricSpec("metric["noclosing]"", 0, "default_host", ...)
270 pmParseMetricSpec Error:
271 metric["noclosing]"
272                    ^ -- closing ] expected
275 pmParseMetricSpec("metric["ends in backslash\", 0, "default_host", ...)
276 pmParseMetricSpec Error:
277 metric["ends in backslash\
278                           ^ -- closing " and ] expected