Merge branch 'master' of https://github.com/kmcdonell/pcp into kenj-merge
[pcp.git] / qa / 853.out
blob3f83d2b781fc16bd84a471e9283b9d23919141de
1 QA output created by 853
2 === simple cases ===
3 ----------------------
4 # 1 "<stdin>"
5 # 1 "TMP.inc"
8 text from .inc file
9 # 2 "<stdin>"
10 Firstly, there is the mumble and "fumble" ...
12 what about urk ? expect this to be \u\r\k not \e\e\k
14 urk at start of line
15 at end of line urk
16 text from .in file
18 not-defined if-part
25 defined else-part
27 Text at end of file.
28 ----------------------
29 # 1 "<stdin>"
30 # 1 "TMP.inc"
33 text from .inc file
34 # 2 "<stdin>"
35 Firstly, there is the mumble and "fumble" ...
37 what about urk ? expect this to be \u\r\k not \e\e\k
39 urk at start of line
40 at end of line urk
41 text from .in file
45 not-defined else-part
48 defined if-part
52 Text at end of file.
53 ----------------------
55 === expansion with -r ===
56 ----------------------
57 # 1 "<stdin>"
58 # 1 "TMP.inc"
61 text from .inc file
62 # 2 "<stdin>"
63 Firstly, there is the mumble ...
65 what about eek ? expect this to be \u\r\k not \e\e\k
67 eek at start of line
68 at end of line eek
69 text from .in file
71 not-defined if-part
78 defined else-part
80 Text at end of file.
81 ----------------------
82 # 1 "<stdin>"
83 # 1 "TMP.inc"
84 <<macro eek="urk"
86 <<macro mumble="mumble and "fumble""
88 text from .inc file
89 # 2 "<stdin>"
90 Firstly, there is the mumble ...
92 <<name="%eek"
93 <<value="urk"
94 <<increased obuf[] to 256 chars
95 what about urk ? expect this to be \u\r\k not \e\e\k
96 <<name="%{eek}"
97 <<value="urk"
98 and what about urk ? expect this to be \u\r\k not \e\e\k
100 <<name="%eek"
101 <<value="urk"
102 urk <percent>eek at start of line
103 <<name="%eek"
104 <<value="urk"
105 <percent>eek at end of line urk
106 <<name="%{eek}"
107 <<value="urk"
108 urk <percent>{eek} at start of line
109 <<name="%{eek}"
110 <<value="urk"
111 <percent>{eek} at end of line urk
112 text from .in file
113 <<lines: in 14 out 16 (modified 6) substitutions: 6
114 Check lines in and out ...
115 in: 11 + 3
116 out: 16
117 ----------------------
119 === -D on command line cases ===
120 ----------------------
121 # 1 "<stdin>"
122 # 1 "TMP.inc"
125 blah=blah=blah=... from .inc file
126 # 2 "<stdin>"
127 Firstly, there is the mumble and "fumble" ...
129 what about urk ? expect this to be \u\r\k not \e\e\k
131 urk at start of line
132 at end of line urk
133 blah=blah=blah=... from .in file
135 not-defined if-part
142 defined else-part
144 Text at end of file.
145 ----------------------
146 # 1 "<stdin>"
147 # 1 "TMP.inc"
150 blah blah blah ... from .inc file
151 # 2 "<stdin>"
152 Firstly, there is the mumble and "fumble" ...
154 what about urk ? expect this to be \u\r\k not \e\e\k
156 urk at start of line
157 at end of line urk
158 blah blah blah ... from .in file
160 not-defined if-part
167 defined else-part
169 Text at end of file.
170 ----------------------
172 === error cases ===
173 ----------------------
174 # 1 "<stdin>"
178 pmcpp: <stdin>:
179 pmcpp: Error: End of input and no matching %endif for %ifdef or %ifndef at line 2
180 ----------------------
181 # 1 "<stdin>"
182 %macro value with embedded newline - bad
183 pmcpp: <stdin>[2]: %define multi 'one line
184 pmcpp: Error: Unterminated value string in %define
185 ----------------------
186 # 1 "<stdin>"
187 # exposed #else outside #if ... scope
188 test
189 pmcpp: <stdin>[3]: #else
190 pmcpp: Error: No matching #ifdef or #ifndef for #else
191 ----------------------
193 === macro name and corner-case expansion tests ===
194 ----------------------
195 # 1 "<stdin>"
197 What about urk?  [expect urk]
198 ----------------------
199 # 1 "<stdin>"
200 <<macro long_macro_name_and_short_value="!"
202 <<macro x="^a very long macro value to be sure, to be sure$"
204 <<name="%"
205 <<name="%{long_macro_name_and_short_value}"
206 <<value="!"
207 <<increased obuf[] to 256 chars
208 <<name="%{long_macro_name_and_short_value}"
209 <<value="!"
210 <<name="%{long_macro_name_and_short_value}"
211 <<value="!"
212 <<name="%"
213 <<name="%"
214 <<name="%"
215 some text %!!!% [expect %!!!%]
216 <<name="%x"
217 <<value="^a very long macro value to be sure, to be sure$"
218 <<name="%x"
219 <<value="^a very long macro value to be sure, to be sure$"
220 <<name="%x"
221 <<value="^a very long macro value to be sure, to be sure$"
222 [expect ^...$^...$^...$] ^a very long macro value to be sure, to be sure$^a very long macro value to be sure, to be sure$^a very long macro value to be sure, to be sure$
223 <<lines: in 4 out 5 (modified 2) substitutions: 6
224 ----------------------
225 # 1 "<stdin>"
226 <<macro Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch="LLanfair"
228 <<doubled ibuf[] to 512 chars
229 <<doubled ibuf[] to 1024 chars
230 <<name="The"
231 <<name="town"
232 <<name="of"
233 <<name="Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch"
234 <<value="LLanfair"
235 <<increased obuf[] to 1024 chars
236 <<name="is"
237 <<name="a"
238 <<name="village"
239 <<name="in"
240 <<name="Wales"
241 <<name="and"
242 <<name="is"
243 <<name="famous"
244 <<name="for"
245 <<name="being"
246 <<name="apparently"
247 <<name="the"
248 <<name="longest"
249 <<name="place"
250 <<name="name"
251 <<name="in"
252 <<name="the"
253 <<name="world"
254 <<name="There"
255 <<name="are"
256 <<name="lots"
257 <<name="of"
258 <<name="web"
259 <<name="pages"
260 <<name="mentioning"
261 <<name="Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch"
262 <<value="LLanfair"
263 <<name="Locally"
264 <<name="Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch"
265 <<value="LLanfair"
266 <<name="is"
267 <<name="just"
268 <<name="too"
269 <<name="much"
270 <<name="of"
271 <<name="a"
272 <<name="mouthful"
273 <<name="and"
274 <<name="so"
275 <<name="it"
276 <<name="is"
277 <<name="truncated"
278 <<name="from"
279 <<name="Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch"
280 <<value="LLanfair"
281 <<name="to"
282 <<name="Llanfair"
283 <<name="With"
284 <<name="one"
285 <<name="more"
286 <<name="mention"
287 <<name="of"
288 <<name="Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch"
289 <<value="LLanfair"
290 <<name="I"
291 <<name="think"
292 <<name="this"
293 <<name="line"
294 <<name="will"
295 <<name="be"
296 <<name="long"
297 <<name="enough"
298 The town of LLanfair is a village in Wales and is famous for being apparently the longest place name in the world.  There are lots of web pages mentioning LLanfair.  Locally LLanfair is just too much of a mouthful and so it is truncated from "LLanfair" to "Llanfair".  With one more mention of LLanfair, I think this line will be long enough.
299 <<name="Phew"
300 <<name="that"
301 <<name="was"
302 <<name="a"
303 <<name="long"
304 <<name="input"
305 <<name="line"
306 <<name="chars"
307 Phew that was a long input line ... 593 chars!
308 <<lines: in 3 out 4 (modified 1) substitutions: 5
309 ----------------------
311 === conditionals, bells and whistles ===
312 ----------------------
313 # 1 "<stdin>"
314 # 1 "TMP.freq"
317 # 2 "<stdin>"
319 log mandatory on 1minute {
320     disk.dev
330 ----------------------
331 # 1 "<stdin>"
332 # 1 "TMP.freq"
335 # 2 "<stdin>"
337 log mandatory on 1minute {
338     disk.dev
343 log mandatory on 15 sec {
344     kernel.all.cpu.user
345     kernel.all.cpu.sys
348 ----------------------
350 === -I tests ===
351 ----------------------
352 # 1 "a"
353 # 1 "b"
354 Text from b.
355 # 2 "a"
356 Text from a.
357 <<lines: in 3 out 5 (modified 0) substitutions: 0
358 ----------------------
359 # 1 "a"
360 <<include "./b"?
361 <<include "/var/lib/pcp/pmns/b"?
362 pmcpp: a[1]: #include <b>
363 pmcpp: Error: Cannot open file for #include
364 ----------------------
365 # 1 "a"
366 <<include "./b"?
367 <<include "sub/b"?
368 # 1 "sub/b"
369 Text from b.
370 # 2 "a"
371 Text from a.
372 <<lines: in 3 out 5 (modified 0) substitutions: 0
373 ----------------------
374 # 1 "a"
375 <<include "./b"?
376 <<include "sub/b"?
377 # 1 "sub/b"
378 <<include "./c-foobar"?
379 <<include "sub/c-foobar"?
380 <<include "sub/sub-sub/c-foobar"?
381 # 1 "sub/sub-sub/c-foobar"
382 Text from c-foobar.
383 # 2 "sub/b"
384 Text from b.
385 # 2 "a"
386 Text from a.
387 <<lines: in 5 out 8 (modified 0) substitutions: 0
388 ----------------------
389 # 1 "sub/a"
390 <<include "sub/b"?
391 # 1 "sub/b"
392 <<include "sub/c-foobar"?
393 # 1 "sub/c-foobar"
394 Text from c-foobar.
395 # 2 "sub/b"
396 Text from b.
397 # 2 "sub/a"
398 Text from a.
399 <<lines: in 5 out 8 (modified 0) substitutions: 0
400 ----------------------
401 expect no diff lines ...
402 ----------------------