Commit | Line | Data |
---|---|---|
970ed795 | 1 | .****************************************************************************** |
3abe9331 | 2 | .* Copyright (c) 2000-2015 Ericsson Telecom AB |
970ed795 EL |
3 | .* All rights reserved. This program and the accompanying materials |
4 | .* are made available under the terms of the Eclipse Public License v1.0 | |
5 | .* which accompanies this distribution, and is available at | |
6 | .* http://www.eclipse.org/legal/epl-v10.html | |
7 | .******************************************************************************/ | |
8 | :text. | |
9 | :lang eng. | |
10 | ||
11 | .* EDML webpage: http://cpi.ericsson.se/dwaxe/ | |
12 | .* EDML2PDF converter: http://dwaxe.ericsson.se/x2pdf | |
13 | .* EDML user guide: http://www.lmc.ericsson.se/~lmcmarg/isit/edml_ug.html | |
14 | ||
15 | .* Document header information | |
16 | :docname.Test Description | |
a38c6d4c | 17 | :docno.xx/152 91-CRL 113 200/5 Uen |
18 | :rev.C | |
19 | :date.2015-04-27 | |
970ed795 EL |
20 | |
21 | :prep.ETH/RZX Jeno Balasko (ethbaat) | |
22 | :appr.ETH/RZX (Gyula Koos) | |
23 | :checked.EKRISZA | |
24 | ||
25 | :title.Test description of the TTCN-3 Preprocessing Configuration File Macros | |
26 | :contents level=2. | |
27 | .*---------------------------------------------------------------------* | |
28 | :h1.Introduction | |
29 | .*---------------------------------------------------------------------* | |
30 | .*---------------------------------------------------------------------* | |
31 | :h2.Revision history | |
32 | .*---------------------------------------------------------------------* | |
33 | :xmp tab=2. | |
34 | REV DATE PREPARED CHANGE | |
35 | __________________________________________________ | |
36 | PA1 2012-11-16 ETHBAAT Preprocessor macro test | |
37 | PA2 2013-01-16 ETHBAAT Structured macro test | |
38 | :exmp. | |
39 | .*---------------------------------------------------------------------* | |
40 | :h2.Purpose | |
41 | .*---------------------------------------------------------------------* | |
42 | The purpose of this Test Description is to define and describe the function | |
43 | test activity for the listed functionality of the TTCN-3 executor including | |
44 | the relevant configuration options and the configuration file parser as follows: | |
45 | :li D='5.'Preprocessing Configuration file especially macro definition handling in the section DEFINE | |
46 | ||
47 | :nl.SA-1/x: Unknown object. | |
48 | :p.The specification of the test cases can be found in this document. | |
49 | .*---------------------------------------------------------------------* | |
50 | :h1.Test environment | |
51 | .*---------------------------------------------------------------------* | |
52 | .*---------------------------------------------------------------------* | |
53 | :h2.Hardware | |
54 | .*---------------------------------------------------------------------* | |
55 | No specific hardware requirement. | |
56 | .*---------------------------------------------------------------------* | |
57 | :h2.Software | |
58 | .*---------------------------------------------------------------------* | |
59 | Tests shall be carried out on the following platforms: | |
60 | :list. | |
61 | :li D='1.'.Solaris 8 (Sun OS 5.8) (gcc 3.0.4) | |
62 | :li D='2.'.SUSE Linux Enterprise server 8 (2.4.19-4GB) (gcc 3.2) | |
63 | :li D='3.'.CYGWIN_NT-5.0 (Cygwin DLL: 1.5.12) on Windows 2000 (gcc 3.3.3) | |
64 | :elist. | |
65 | .*---------------------------------------------------------------------* | |
66 | :h2.Configuration | |
67 | .*---------------------------------------------------------------------* | |
68 | The test environment had been setup in CVS. The tester program is stored in: | |
69 | :nl.TTCNv3/function_test/Tools/SAtester.pl | |
70 | :nl.Test cases are stored with extension .script in the directory: | |
71 | :nl.TTCNv3/function_test/Semantic_Analyser/ | |
72 | .*---------------------------------------------------------------------* | |
73 | :h2.Installation | |
74 | .*---------------------------------------------------------------------* | |
75 | Install proper TITAN binaries on the used platforms and make sure that | |
76 | your environment settings are correct: | |
77 | :list. | |
78 | :li D='1.'.TTCN3_DIR is set | |
79 | :li D='2.'.$TTCN3_DIR/bin is added to the PATH variable | |
80 | :li D='3.'.$TTCN3_DIR/lib is added to the LD_LIBRARY_PATH variable | |
81 | :li D='4.'.Perl 5.6.0 or higher is available on the platform | |
82 | :li D='5.'.Create a symlink to your Perl binary into the directory where the | |
83 | test cases are stored: | |
84 | :nl.ln -s <your Perl> perl | |
85 | :elist. | |
86 | .*---------------------------------------------------------------------* | |
87 | :h2.Test Tools | |
88 | .*---------------------------------------------------------------------* | |
89 | A tester program had been written in Perl especially for the Semantic Analyser | |
90 | tests. For the list of command line parameters, type 'SAtester.pl -help', for the | |
91 | complete documentation, type 'SAtester.pl -doc'. | |
92 | :p.Test cases are specified in the Test Description documents in EDML format. | |
93 | The tester program parses these files and generates the TTCN-3/ASN.1 modules, then | |
94 | calls the compiler to compile them. The result printout is then matched against | |
95 | different patterns to be able to set the verdict. Test cases contain not only | |
96 | the source modules, but the patterns as well. | |
97 | :p.The tester program allows one-by-one execution of test cases and batched | |
98 | execution as well. | |
99 | :p.NOTE: the tester program requires Perl 5.6.0 or higher. | |
100 | .*---------------------------------------------------------------------* | |
101 | :h2.Test scope | |
102 | .*---------------------------------------------------------------------* | |
103 | Ref [1]: SA-1/x: Unknown object | |
104 | :nl.Explanation: all unknown objects shall be detected by SA. | |
105 | .*---------------------------------------------------------------------* | |
106 | :h2.Test strategy | |
107 | .*---------------------------------------------------------------------* | |
108 | Test cases are based on TTCN-3 BNF according to the followings: | |
109 | :list. | |
110 | :li D='1.'.For each 'basic' definition a complete coverage is done (e.g. for | |
111 | expressions, assignments, etc.). 'Basic' means that the definition is | |
112 | used in several places. | |
113 | :li D='2.'.For each definition a complete coverage is done, except for basic | |
114 | definitions, in which case only 1-2 examples are covered, not the | |
115 | whole basic definition. This is to avoid testing all possible subcases | |
116 | for all possible places it may appear. | |
117 | :nl.NOTE: a complete coverage means that all occurances are tested where | |
118 | the specific definition may occur. This is however not complete. Only | |
119 | one occurance is tested for each construct. | |
120 | :li D='3.'.Test case names are contsructed following the path in the BNF in TTCN-3 | |
121 | and following the possible notations/subtyping in ASN.1. | |
122 | :elist. | |
123 | .*---------------------------------------------------------------------* | |
124 | :h2.Status | |
125 | .*---------------------------------------------------------------------* | |
126 | The following structures are not covered: | |
127 | :list. | |
128 | :li D='-'.sub-structures that causes parse error due to limited support of that | |
129 | part of the language (e.g. interleave construct) | |
130 | :elist. | |
131 | .*---------------------------------------------------------------------* | |
132 | :h1.Test cases | |
133 | .*---------------------------------------------------------------------* | |
134 | .*---------------------------------------------------------------------* | |
135 | :h2. Negative Test for Macro Definition in Cfg Files - Single mode | |
136 | .*---------------------------------------------------------------------* | |
137 | .*---------------------------------------------------------------------* | |
138 | :h3. No macro or environmental variable defined with name 1 -single mode | |
139 | .*---------------------------------------------------------------------* | |
140 | :xmp tab=0. | |
141 | <TC - No macro or environmental variable defined with name 1 -single mode > | |
142 | <EXECUTE> | |
143 | <MODULE TTCN Temp Temp.ttcn> | |
144 | module Temp { | |
145 | //dummy | |
146 | } | |
147 | <END_MODULE> | |
148 | ||
149 | <MODULE CFG Temp Temp.cfg> | |
150 | [DEFINE] | |
151 | NEG_VALID:="valid" | |
152 | NEG_1:=$not_existing | |
153 | NEG_2:=${not_existing} | |
154 | [EXECUTE] | |
155 | Temp.control | |
156 | <END_MODULE> | |
157 | <RESULT COUNT 2> | |
158 | (?im)Parse error while pre-processing configuration file (.)*No macro or environmental variable defined with name `not_existing' | |
159 | <END_RESULT> | |
160 | <END_TC> | |
161 | :exmp. | |
162 | .*---------------------------------------------------------------------* | |
163 | :h3. Invalid character in DEFINE section - single mode - 1 | |
164 | .*---------------------------------------------------------------------* | |
165 | :xmp tab=0. | |
166 | <TC - Invalid character in DEFINE section - single mode - 1 > | |
167 | <EXECUTE> | |
168 | <MODULE TTCN Temp Temp.ttcn> | |
169 | module Temp { | |
170 | //dummy | |
171 | } | |
172 | <END_MODULE> | |
173 | ||
174 | <MODULE CFG Temp Temp.cfg> | |
175 | [DEFINE] | |
176 | NEG_3:=$${not_existing} | |
177 | NEG_4:=$4{not_existing} | |
178 | [EXECUTE] | |
179 | Temp.control | |
180 | <END_MODULE> | |
181 | <RESULT COUNT 2> | |
182 | (?im)Parse error while pre-processing configuration file (.)*Invalid character in \[DEFINE\] section. | |
183 | <END_RESULT> | |
184 | <RESULT COUNT 1> | |
185 | (?im)Parse error while pre-processing configuration file (.)*No macro or environmental variable defined with name `not_existing' | |
186 | <END_RESULT> | |
187 | <RESULT COUNT 1> | |
188 | syntax error, unexpected \{, expecting \$end | |
189 | <END_RESULT> | |
190 | <END_TC> | |
191 | :exmp. | |
192 | .*---------------------------------------------------------------------* | |
193 | :h3. Invalid character in DEFINE section - single mode - 2 | |
194 | .*---------------------------------------------------------------------* | |
195 | :xmp tab=0. | |
196 | <TC - Invalid character in DEFINE section - single mode - 2 > | |
197 | <EXECUTE> | |
198 | <MODULE TTCN Temp Temp.ttcn> | |
199 | module Temp { | |
200 | //dummy | |
201 | } | |
202 | <END_MODULE> | |
203 | ||
204 | <MODULE CFG Temp Temp.cfg> | |
205 | [DEFINE] | |
206 | NEG_5:=$$${not_existing} | |
207 | [EXECUTE] | |
208 | Temp.control | |
209 | <END_MODULE> | |
210 | <RESULT COUNT 2> | |
211 | (?im)Parse error while pre-processing configuration file (.)*Invalid character in \[DEFINE\] section. | |
212 | <END_RESULT> | |
213 | <RESULT COUNT 1> | |
214 | (?im)Parse error while pre-processing configuration file (.)*No macro or environmental variable defined with name `not_existing' | |
215 | <END_RESULT> | |
216 | <END_TC> | |
217 | :exmp. | |
218 | .*---------------------------------------------------------------------* | |
219 | :h3. Invalid character in DEFINE section - single mode - 3 | |
220 | .*---------------------------------------------------------------------* | |
221 | :xmp tab=0. | |
222 | <TC - Invalid character in DEFINE section - single mode - 3 > | |
223 | <EXECUTE> | |
224 | <MODULE TTCN Temp Temp.ttcn> | |
225 | module Temp { | |
226 | //dummy | |
227 | } | |
228 | <END_MODULE> | |
229 | ||
230 | <MODULE CFG Temp Temp.cfg> | |
231 | [DEFINE] | |
232 | NEG_6:=${not_existing}$ | |
233 | NEG_7:=$1wrong_macro_name | |
234 | NEG_8:=$2wrong_macro_name | |
235 | NEG_9:=$0wrong_macro_name | |
236 | NEG_10:=$0wrong_macro_name | |
237 | NEG_11:=$_wrong_macro_name | |
238 | [EXECUTE] | |
239 | Temp.control | |
240 | <END_MODULE> | |
241 | <RESULT COUNT 6> | |
242 | (?im)Parse error while pre-processing configuration file (.)*Invalid character in \[DEFINE\] section. | |
243 | <END_RESULT> | |
244 | <RESULT COUNT 1> | |
245 | (?im)Parse error while pre-processing configuration file (.)*No macro or environmental variable defined with name `not_existing' | |
246 | <END_RESULT> | |
247 | <END_TC> | |
248 | :exmp. | |
249 | .*---------------------------------------------------------------------* | |
250 | :h3. Invalid character in DEFINE section - single mode - 4 | |
251 | .*---------------------------------------------------------------------* | |
252 | :xmp tab=0. | |
253 | <TC - Invalid character in DEFINE section - single mode - 4 > | |
254 | <EXECUTE> | |
255 | <MODULE TTCN Temp Temp.ttcn> | |
256 | module Temp { | |
257 | //dummy | |
258 | } | |
259 | <END_MODULE> | |
260 | ||
261 | <MODULE CFG Temp Temp.cfg> | |
262 | [DEFINE] | |
263 | NEG_11:=$_wrong_macro_name | |
264 | [EXECUTE] | |
265 | Temp.control | |
266 | <END_MODULE> | |
267 | <RESULT COUNT 1> | |
268 | (?im)Parse error while pre-processing configuration file (.)*Invalid character in \[DEFINE\] section. | |
269 | <END_RESULT> | |
270 | <END_TC> | |
271 | :exmp. | |
272 | .*---------------------------------------------------------------------* | |
273 | :h3. Invalid character in DEFINE section - single mode - 5 | |
274 | .*---------------------------------------------------------------------* | |
275 | :xmp tab=0. | |
276 | <TC - Invalid character in DEFINE section - single mode - 5 > | |
277 | <EXECUTE> | |
278 | <MODULE TTCN Temp Temp.ttcn> | |
279 | module Temp { | |
280 | //dummy | |
281 | } | |
282 | <END_MODULE> | |
283 | ||
284 | <MODULE CFG Temp Temp.cfg> | |
285 | [DEFINE] | |
286 | NEG_11_1:=${_NEG_VALID} | |
287 | [EXECUTE] | |
288 | Temp.control | |
289 | <END_MODULE> | |
290 | <RESULT COUNT 1> | |
291 | (?im)Parse error while pre-processing configuration file (.)*Invalid character in \[DEFINE\] section. | |
292 | <END_RESULT> | |
293 | <END_TC> | |
294 | :exmp. | |
295 | ||
296 | .*---------------------------------------------------------------------* | |
297 | :h3. Duplicate macro definition - single mode | |
298 | .*---------------------------------------------------------------------* | |
299 | :xmp tab=0. | |
300 | <TC - Duplicate macro definition - single mode> | |
301 | <EXECUTE> | |
302 | <MODULE TTCN Temp Temp.ttcn> | |
303 | module Temp { | |
304 | control { | |
305 | //dummy | |
306 | } | |
307 | } | |
308 | <END_MODULE> | |
309 | ||
310 | <MODULE CFG Temp Temp.cfg> | |
311 | [DEFINE] | |
312 | NEG_VALID=1 | |
313 | NEG_11_2:=$NEG_VALID | |
314 | NEG_11_2:=${NEG_VALID} | |
315 | [EXECUTE] | |
316 | Temp.control | |
317 | <END_MODULE> | |
318 | <RESULT COUNT 1> | |
319 | (?im)Overall verdict: none | |
320 | <END_RESULT> | |
321 | <END_TC> | |
322 | :exmp. | |
323 | ||
324 | .*---------------------------------------------------------------------* | |
325 | :h3. Invalid character in DEFINE section - single mode - 4 | |
326 | .*---------------------------------------------------------------------* | |
327 | :xmp tab=0. | |
328 | <TC - Invalid character in DEFINE section - single mode - 4 > | |
329 | <EXECUTE> | |
330 | <MODULE TTCN Temp Temp.ttcn> | |
331 | module Temp { | |
332 | //dummy | |
333 | } | |
334 | <END_MODULE> | |
335 | ||
336 | <MODULE CFG Temp Temp.cfg> | |
337 | [DEFINE] | |
338 | NEG_12:=${1wrong_macro_name} | |
339 | NEG_13:=${2wrong_macro_name} | |
340 | NEG_14:=${0wrong_macro_name} | |
341 | NEG_15:=${_wrong_macro_name} | |
342 | [EXECUTE] | |
343 | Temp.control | |
344 | <END_MODULE> | |
345 | <RESULT COUNT 4> | |
346 | (?im)Parse error while pre-processing configuration file (.)*Invalid character in \[DEFINE\] section. | |
347 | <END_RESULT> | |
348 | <END_TC> | |
349 | :exmp. | |
350 | ||
351 | .*---------------------------------------------------------------------* | |
352 | :h3. Syntax error: string without quotation mark but containing space - single mode | |
353 | .*---------------------------------------------------------------------* | |
354 | :xmp tab=0. | |
355 | <TC - Syntax error: string without quotation mark but containing space - single mode> | |
356 | <EXECUTE> | |
357 | <MODULE TTCN Temp Temp.ttcn> | |
358 | module Temp { | |
359 | //dummy | |
360 | control{ log("test executed");} | |
361 | } | |
362 | <END_MODULE> | |
363 | ||
364 | <MODULE CFG Temp Temp.cfg> | |
365 | [DEFINE] | |
366 | NEG_17:=a b | |
367 | [EXECUTE] | |
368 | Temp.control | |
369 | <END_MODULE> | |
370 | <RESULT COUNT 1> | |
371 | (?im)Parse error while pre-processing configuration file (.)*syntax error | |
372 | <END_RESULT> | |
373 | <END_TC> | |
374 | :exmp. | |
375 | ||
376 | .*---------------------------------------------------------------------* | |
377 | :h3. Syntax error: Two subsequent string as right value, comment after | |
378 | .*---------------------------------------------------------------------* | |
379 | :xmp tab=0. | |
380 | <TC - Syntax error: Two subsequent string as right value 1> | |
381 | <EXECUTE> | |
382 | <MODULE TTCN Temp Temp.ttcn> | |
383 | module Temp { | |
384 | control{log("test executed");} | |
385 | } | |
386 | <END_MODULE> | |
387 | ||
388 | <MODULE CFG Temp Temp.cfg> | |
389 | [DEFINE] | |
390 | NEG_18:="a"b | |
391 | //perhaps the error msg is not correct, check it! | |
392 | [EXECUTE] | |
393 | Temp.control | |
394 | <END_MODULE> | |
395 | <RESULT COUNT 1> | |
396 | (?im)Parse error while pre-processing configuration file (.)*in line [0-9]*: Literal `b' cannot follow another literal | |
397 | <END_RESULT> | |
398 | <END_TC> | |
399 | :exmp. | |
400 | .*---------------------------------------------------------------------* | |
401 | :h3. Syntax error: Two subsequent string as right value, comment before | |
402 | .*---------------------------------------------------------------------* | |
403 | :xmp tab=0. | |
404 | <TC - Syntax error: Two subsequent string as right value, comment before> | |
405 | <EXECUTE> | |
406 | <MODULE TTCN Temp Temp.ttcn> | |
407 | module Temp { | |
408 | //dummy | |
409 | control{log("test executed");} | |
410 | } | |
411 | <END_MODULE> | |
412 | ||
413 | <MODULE CFG Temp Temp.cfg> | |
414 | [DEFINE] | |
415 | //comment before it | |
416 | NEG_18:="a"b | |
417 | [EXECUTE] | |
418 | Temp.control | |
419 | <END_MODULE> | |
420 | <RESULT COUNT 1> | |
421 | (?im)Parse error while pre-processing configuration file (.)*in line [0-9]*: Literal `b' cannot follow another literal | |
422 | <END_RESULT> | |
423 | <END_TC> | |
424 | :exmp. | |
425 | .*---------------------------------------------------------------------* | |
426 | :h3. Syntax error: Two subsequent string with space as right value | |
427 | .*---------------------------------------------------------------------* | |
428 | :xmp tab=0. | |
429 | <TC - Syntax error: Two subsequent string with space as right value> | |
430 | <EXECUTE> | |
431 | <MODULE TTCN Temp Temp.ttcn> | |
432 | module Temp { | |
433 | //dummy | |
434 | control{log("test executed");} | |
435 | } | |
436 | <END_MODULE> | |
437 | ||
438 | <MODULE CFG Temp Temp.cfg> | |
439 | [DEFINE] | |
440 | NEG_18:="a" "b" | |
441 | [EXECUTE] | |
442 | Temp.control | |
443 | <END_MODULE> | |
444 | <RESULT COUNT 1> | |
445 | (?im)Parse error while pre-processing configuration file (.)*in line [0-9]*: syntax error, unexpected charstring value, expecting \$end | |
446 | <END_RESULT> | |
447 | <END_TC> | |
448 | :exmp. | |
449 | .*---------------------------------------------------------------------* | |
450 | :h3. Syntax error: Two subsequent string with space as right value, comment before | |
451 | .*---------------------------------------------------------------------* | |
452 | :xmp tab=0. | |
453 | <TC - Syntax error: Two subsequent string with space as right value, comment before> | |
454 | <EXECUTE> | |
455 | <MODULE TTCN Temp Temp.ttcn> | |
456 | module Temp { | |
457 | //dummy | |
458 | control{log("test executed");} | |
459 | } | |
460 | <END_MODULE> | |
461 | ||
462 | <MODULE CFG Temp Temp.cfg> | |
463 | [DEFINE] | |
464 | //comment before it | |
465 | NEG_18:="a" "b" | |
466 | [EXECUTE] | |
467 | Temp.control | |
468 | <END_MODULE> | |
469 | <RESULT COUNT 1> | |
470 | (?im)Parse error while pre-processing configuration file (.)*in line [0-9]*: syntax error, unexpected charstring value, expecting \$end | |
471 | <END_RESULT> | |
472 | <END_TC> | |
473 | :exmp. | |
474 | .*---------------------------------------------------------------------* | |
475 | :h3. Syntax error: Two subsequent string with space as right value, comment after | |
476 | .*---------------------------------------------------------------------* | |
477 | :xmp tab=0. | |
478 | <TC - Syntax error: Two subsequent string with space as right value, comment after > | |
479 | <EXECUTE> | |
480 | <MODULE TTCN Temp Temp.ttcn> | |
481 | module Temp { | |
482 | //dummy | |
483 | control{log("test executed");} | |
484 | } | |
485 | <END_MODULE> | |
486 | ||
487 | <MODULE CFG Temp Temp.cfg> | |
488 | [DEFINE] | |
489 | NEG_18:="a" "b" | |
490 | //comment after it | |
491 | [EXECUTE] | |
492 | Temp.control | |
493 | <END_MODULE> | |
494 | <RESULT COUNT 1> | |
495 | (?im)Parse error while pre-processing configuration file (.)*in line [0-9]*: syntax error, unexpected charstring value, expecting \$end | |
496 | <END_RESULT> | |
497 | <END_TC> | |
498 | :exmp. | |
499 | .*---------------------------------------------------------------------* | |
500 | :h3. Syntax error: Two subsequent string with spaces as right value | |
501 | .*---------------------------------------------------------------------* | |
502 | :xmp tab=0. | |
503 | <TC - Syntax error: Two subsequent string with spaces as right value> | |
504 | <EXECUTE> | |
505 | <MODULE TTCN Temp Temp.ttcn> | |
506 | module Temp { | |
507 | //dummy | |
508 | control{log("test executed");} | |
509 | } | |
510 | <END_MODULE> | |
511 | ||
512 | <MODULE CFG Temp Temp.cfg> | |
513 | [DEFINE] | |
514 | NEG_18:="a" "b" | |
515 | [EXECUTE] | |
516 | Temp.control | |
517 | <END_MODULE> | |
518 | <RESULT COUNT 1> | |
519 | (?im)Parse error while pre-processing configuration file (.)*in line [0-9]*: syntax error, unexpected charstring value, expecting \$end | |
520 | <END_RESULT> | |
521 | <END_TC> | |
522 | :exmp. | |
523 | .*---------------------------------------------------------------------* | |
524 | :h3. Syntax error: String and macro reference with space as right value | |
525 | .*---------------------------------------------------------------------* | |
526 | :xmp tab=0. | |
527 | <TC - Syntax error: String and macro reference with space as right value> | |
528 | <EXECUTE> | |
529 | <MODULE TTCN Temp Temp.ttcn> | |
530 | module Temp { | |
531 | //dummy | |
532 | control{log("test executed");} | |
533 | } | |
534 | <END_MODULE> | |
535 | ||
536 | <MODULE CFG Temp Temp.cfg> | |
537 | [DEFINE] | |
538 | NEG_VALID:="valid" | |
539 | NEG_19:="a" $NEG_VALID | |
540 | [EXECUTE] | |
541 | Temp.control | |
542 | <END_MODULE> | |
543 | <RESULT COUNT 1> | |
544 | (?im)Parse error while pre-processing configuration file (.)*in line [0-9]*: syntax error, unexpected MacroReference, expecting \$end | |
545 | <END_RESULT> | |
546 | <END_TC> | |
547 | :exmp. | |
548 | .*---------------------------------------------------------------------* | |
549 | :h3. Syntax error: String and macro reference with spaces as right value | |
550 | .*---------------------------------------------------------------------* | |
551 | :xmp tab=0. | |
552 | <TC - Syntax error: String and macro reference with spaces as right value> | |
553 | <EXECUTE> | |
554 | <MODULE TTCN Temp Temp.ttcn> | |
555 | module Temp { | |
556 | //dummy | |
557 | control{log("test executed");} | |
558 | } | |
559 | <END_MODULE> | |
560 | ||
561 | <MODULE CFG Temp Temp.cfg> | |
562 | [DEFINE] | |
563 | NEG_VALID:="valid" | |
564 | NEG_19:="a" $NEG_VALID | |
565 | [EXECUTE] | |
566 | Temp.control | |
567 | <END_MODULE> | |
568 | <RESULT COUNT 1> | |
569 | (?im)Parse error while pre-processing configuration file (.)*in line [0-9]*: syntax error, unexpected MacroReference, expecting \$end | |
570 | <END_RESULT> | |
571 | <END_TC> | |
572 | :exmp. | |
573 | ||
574 | .*---------------------------------------------------------------------* | |
575 | :h3. Syntax error: String and macro reference with spaces as right value | |
576 | .*---------------------------------------------------------------------* | |
577 | :xmp tab=0. | |
578 | <TC - Syntax error: String and macro reference with spaces as right value> | |
579 | <EXECUTE> | |
580 | <MODULE TTCN Temp Temp.ttcn> | |
581 | module Temp { | |
582 | //dummy | |
583 | control{log("test executed");} | |
584 | } | |
585 | <END_MODULE> | |
586 | ||
587 | <MODULE CFG Temp Temp.cfg> | |
588 | [DEFINE] | |
589 | NEG_VALID:="valid" | |
590 | NEG_19:=${NEG_VALID} ${NEG_VALID} | |
591 | [EXECUTE] | |
592 | Temp.control | |
593 | <END_MODULE> | |
594 | <RESULT COUNT 1> | |
595 | (?im)Parse error while pre-processing configuration file (.)*in line [0-9]*: syntax error, unexpected MacroReference, expecting \$end | |
596 | <END_RESULT> | |
597 | <END_TC> | |
598 | :exmp. | |
599 | ||
600 | .*---------------------------------------------------------------------* | |
601 | :h2. Negative Test for Macro Definition in Cfg Files | |
602 | .*---------------------------------------------------------------------* | |
603 | .*---------------------------------------------------------------------* | |
604 | :h3. No macro or environmental variable defined with name 1 -parallel mode | |
605 | .*---------------------------------------------------------------------* | |
606 | :xmp tab=0. | |
607 | <TC - No macro or environmental variable defined with name 1 -parallel mode > | |
608 | <EXECUTE_PARALLEL> | |
609 | <MODULE TTCN Temp Temp.ttcn> | |
610 | module Temp { | |
611 | //dummy | |
612 | } | |
613 | <END_MODULE> | |
614 | ||
615 | <MODULE CFG Temp Temp.cfg> | |
616 | [DEFINE] | |
617 | NEG_VALID:="valid" | |
618 | NEG_1:=$not_existing | |
619 | NEG_2:=${not_existing} | |
620 | [EXECUTE] | |
621 | Temp.control | |
622 | <END_MODULE> | |
623 | <RESULT COUNT 2> | |
624 | (?im)Parse error while pre-processing configuration file (.)*No macro or environmental variable defined with name `not_existing' | |
625 | <END_RESULT> | |
626 | <END_TC> | |
627 | :exmp. | |
628 | .*---------------------------------------------------------------------* | |
629 | :h3. Invalid character in DEFINE section - parallel mode - 1 | |
630 | .*---------------------------------------------------------------------* | |
631 | :xmp tab=0. | |
632 | <TC - Invalid character in DEFINE section - parallel mode - 1 > | |
633 | <EXECUTE_PARALLEL> | |
634 | <MODULE TTCN Temp Temp.ttcn> | |
635 | module Temp { | |
636 | //dummy | |
637 | } | |
638 | <END_MODULE> | |
639 | ||
640 | <MODULE CFG Temp Temp.cfg> | |
641 | [DEFINE] | |
642 | NEG_3:=$${not_existing} | |
643 | NEG_4:=$4{not_existing} | |
644 | NEG_5:=$$${not_existing} | |
645 | [EXECUTE] | |
646 | Temp.control | |
647 | <END_MODULE> | |
648 | <RESULT COUNT 2> | |
649 | (?im)Parse error while pre-processing configuration file (.)*Invalid character in \[DEFINE\] section. | |
650 | <END_RESULT> | |
651 | <RESULT COUNT 1> | |
652 | (?im)Parse error while pre-processing configuration file (.)*No macro or environmental variable defined with name `not_existing' | |
653 | <END_RESULT> | |
654 | <RESULT COUNT 1> | |
655 | syntax error, unexpected \{, expecting \$end | |
656 | <END_RESULT> | |
657 | <END_TC> | |
658 | :exmp. | |
659 | ||
660 | .*---------------------------------------------------------------------* | |
661 | :h3. Invalid character in DEFINE section - parallel mode - 2 | |
662 | .*---------------------------------------------------------------------* | |
663 | :xmp tab=0. | |
664 | <TC - Invalid character in DEFINE section - parallel mode - 2 > | |
665 | <EXECUTE_PARALLEL> | |
666 | <MODULE TTCN Temp Temp.ttcn> | |
667 | module Temp { | |
668 | //dummy | |
669 | } | |
670 | <END_MODULE> | |
671 | ||
672 | <MODULE CFG Temp Temp.cfg> | |
673 | [DEFINE] | |
674 | NEG_6:=${not_existing}$ | |
675 | NEG_7:=$1wrong_macro_name | |
676 | NEG_8:=$2wrong_macro_name | |
677 | NEG_9:=$0wrong_macro_name | |
678 | NEG_10:=$0wrong_macro_name | |
679 | NEG_11:=$_wrong_macro_name | |
680 | [EXECUTE] | |
681 | Temp.control | |
682 | <END_MODULE> | |
683 | <RESULT COUNT 6> | |
684 | (?im)Parse error while pre-processing configuration file (.)*Invalid character in \[DEFINE\] section. | |
685 | <END_RESULT> | |
686 | <RESULT COUNT 1> | |
687 | (?im)Parse error while pre-processing configuration file (.)*No macro or environmental variable defined with name `not_existing' | |
688 | <END_RESULT> | |
689 | <END_TC> | |
690 | :exmp. | |
691 | ||
692 | .*---------------------------------------------------------------------* | |
693 | :h3. Invalid character in DEFINE section - parallel mode - 3 | |
694 | .*---------------------------------------------------------------------* | |
695 | :xmp tab=0. | |
696 | <TC - Invalid character in DEFINE section - parallel mode - 3 > | |
697 | <EXECUTE_PARALLEL> | |
698 | <MODULE TTCN Temp Temp.ttcn> | |
699 | module Temp { | |
700 | //dummy | |
701 | } | |
702 | <END_MODULE> | |
703 | ||
704 | <MODULE CFG Temp Temp.cfg> | |
705 | [DEFINE] | |
706 | NEG_11_1:=${_NEG_VALID} | |
707 | [EXECUTE] | |
708 | Temp.control | |
709 | <END_MODULE> | |
710 | <RESULT COUNT 1> | |
711 | (?im)Parse error while pre-processing configuration file (.)*Invalid character in \[DEFINE\] section. | |
712 | <END_RESULT> | |
713 | <END_TC> | |
714 | :exmp. | |
715 | ||
716 | .*---------------------------------------------------------------------* | |
717 | :h3. Duplicate macro definition - parallel mode | |
718 | .*---------------------------------------------------------------------* | |
719 | :xmp tab=0. | |
720 | <TC - Duplicate macro definition - parallel mode> | |
721 | <EXECUTE_PARALLEL> | |
722 | <MODULE TTCN Temp Temp.ttcn> | |
723 | module Temp { | |
724 | control { | |
725 | //dummy | |
726 | } | |
727 | } | |
728 | <END_MODULE> | |
729 | ||
730 | <MODULE CFG Temp Temp.cfg> | |
731 | [DEFINE] | |
732 | NEG_VALID=1 | |
733 | NEG_11_2:=$NEG_VALID | |
734 | NEG_11_2:=${NEG_VALID} | |
735 | [EXECUTE] | |
736 | Temp.control | |
737 | <END_MODULE> | |
738 | <RESULT COUNT 1> | |
739 | (?im)Overall verdict: none | |
740 | <END_RESULT> | |
741 | <END_TC> | |
742 | :exmp. | |
743 | ||
744 | .*---------------------------------------------------------------------* | |
745 | :h3. Invalid character in DEFINE section - parallel mode - 4 | |
746 | .*---------------------------------------------------------------------* | |
747 | :xmp tab=0. | |
748 | <TC - Invalid character in DEFINE section - parallel mode - 4 > | |
749 | <EXECUTE_PARALLEL> | |
750 | <MODULE TTCN Temp Temp.ttcn> | |
751 | module Temp { | |
752 | //dummy | |
753 | } | |
754 | <END_MODULE> | |
755 | ||
756 | <MODULE CFG Temp Temp.cfg> | |
757 | [DEFINE] | |
758 | NEG_12:=${1wrong_macro_name} | |
759 | NEG_13:=${2wrong_macro_name} | |
760 | NEG_14:=${0wrong_macro_name} | |
761 | [EXECUTE] | |
762 | Temp.control | |
763 | <END_MODULE> | |
764 | <RESULT COUNT 3> | |
765 | (?im)Parse error while pre-processing configuration file (.)*Invalid character in \[DEFINE\] section. | |
766 | <END_RESULT> | |
767 | <END_TC> | |
768 | :exmp. | |
769 | ||
770 | .*---------------------------------------------------------------------* | |
771 | :h3. Invalid character in DEFINE section - parallel mode - 5 | |
772 | .*---------------------------------------------------------------------* | |
773 | :xmp tab=0. | |
774 | <TC - Invalid character in DEFINE section - parallel mode - 5 > | |
775 | <EXECUTE_PARALLEL> | |
776 | <MODULE TTCN Temp Temp.ttcn> | |
777 | module Temp { | |
778 | //dummy | |
779 | } | |
780 | <END_MODULE> | |
781 | ||
782 | <MODULE CFG Temp Temp.cfg> | |
783 | [DEFINE] | |
784 | NEG_15:=${_wrong_macro_name} | |
785 | [EXECUTE] | |
786 | Temp.control | |
787 | <END_MODULE> | |
788 | <RESULT COUNT 1> | |
789 | (?im)Parse error while pre-processing configuration file (.)*Invalid character in \[DEFINE\] section. | |
790 | <END_RESULT> | |
791 | <END_TC> | |
792 | :exmp. | |
793 | ||
794 | .*---------------------------------------------------------------------* | |
795 | :h3. Syntax error: string without quotation mark but containing space - parallel mode | |
796 | .*---------------------------------------------------------------------* | |
797 | :xmp tab=0. | |
798 | <TC - Syntax error: string without quotation mark but containing space - parallel mode> | |
799 | <EXECUTE_PARALLEL> | |
800 | <MODULE TTCN Temp Temp.ttcn> | |
801 | module Temp { | |
802 | //dummy | |
803 | control{ log("test executed");} | |
804 | } | |
805 | <END_MODULE> | |
806 | ||
807 | <MODULE CFG Temp Temp.cfg> | |
808 | [DEFINE] | |
809 | NEG_17:=a b | |
810 | [EXECUTE] | |
811 | Temp.control | |
812 | <END_MODULE> | |
813 | <RESULT COUNT 1> | |
814 | (?im)Parse error while pre-processing configuration file (.)*syntax error | |
815 | <END_RESULT> | |
816 | <END_TC> | |
817 | :exmp. | |
818 | ||
819 | .*---------------------------------------------------------------------* | |
820 | :h3. Syntax error: Two subsequent string as right value, comment after - parallel mode | |
821 | .*---------------------------------------------------------------------* | |
822 | :xmp tab=0. | |
823 | <TC - Syntax error: Two subsequent string as right value, comment after -parallel mode > | |
824 | <EXECUTE_PARALLEL> | |
825 | <MODULE TTCN Temp Temp.ttcn> | |
826 | module Temp { | |
827 | control{log("test executed");} | |
828 | } | |
829 | <END_MODULE> | |
830 | ||
831 | <MODULE CFG Temp Temp.cfg> | |
832 | [DEFINE] | |
833 | NEG_18:="a"b | |
834 | //perhaps the error msg is not correct, check it! | |
835 | [EXECUTE] | |
836 | Temp.control | |
837 | <END_MODULE> | |
838 | <RESULT COUNT 1> | |
839 | (?im)Parse error while pre-processing configuration file (.)*in line [0-9]*: Literal `b' cannot follow another literal | |
840 | <END_RESULT> | |
841 | <END_TC> | |
842 | :exmp. | |
843 | .*---------------------------------------------------------------------* | |
844 | :h3. Syntax error: Two subsequent string as right value, comment before, parallel mode | |
845 | .*---------------------------------------------------------------------* | |
846 | :xmp tab=0. | |
847 | <TC - Syntax error: Two subsequent string as right value, comment before, parallel mode> | |
848 | <EXECUTE_PARALLEL> | |
849 | <MODULE TTCN Temp Temp.ttcn> | |
850 | module Temp { | |
851 | //dummy | |
852 | control{log("test executed");} | |
853 | } | |
854 | <END_MODULE> | |
855 | ||
856 | <MODULE CFG Temp Temp.cfg> | |
857 | [DEFINE] | |
858 | //comment before it | |
859 | NEG_18:="a"b | |
860 | [EXECUTE] | |
861 | Temp.control | |
862 | <END_MODULE> | |
863 | <RESULT COUNT 1> | |
864 | (?im)Parse error while pre-processing configuration file (.)*in line [0-9]*: Literal `b' cannot follow another literal | |
865 | <END_RESULT> | |
866 | <END_TC> | |
867 | :exmp. | |
868 | .*---------------------------------------------------------------------* | |
869 | :h3. Syntax error: Two subsequent string with space as right value, parallel mode | |
870 | .*---------------------------------------------------------------------* | |
871 | :xmp tab=0. | |
872 | <TC - Syntax error: Two subsequent string with space as right value, parallel mode> | |
873 | <EXECUTE_PARALLEL> | |
874 | <MODULE TTCN Temp Temp.ttcn> | |
875 | module Temp { | |
876 | //dummy | |
877 | control{log("test executed");} | |
878 | } | |
879 | <END_MODULE> | |
880 | ||
881 | <MODULE CFG Temp Temp.cfg> | |
882 | [DEFINE] | |
883 | NEG_18:="a" "b" | |
884 | [EXECUTE] | |
885 | Temp.control | |
886 | <END_MODULE> | |
887 | <RESULT COUNT 1> | |
888 | (?im)Parse error while pre-processing configuration file (.)*in line [0-9]*: syntax error, unexpected charstring value, expecting \$end | |
889 | <END_RESULT> | |
890 | <END_TC> | |
891 | :exmp. | |
892 | .*---------------------------------------------------------------------* | |
893 | :h3. Syntax error: Two subsequent string with space as right value, comment before, parallel mode | |
894 | .*---------------------------------------------------------------------* | |
895 | :xmp tab=0. | |
896 | <TC - Syntax error: Two subsequent string with space as right value, comment before, parallel mode> | |
897 | <EXECUTE_PARALLEL> | |
898 | <MODULE TTCN Temp Temp.ttcn> | |
899 | module Temp { | |
900 | //dummy | |
901 | control{log("test executed");} | |
902 | } | |
903 | <END_MODULE> | |
904 | ||
905 | <MODULE CFG Temp Temp.cfg> | |
906 | [DEFINE] | |
907 | //comment before it | |
908 | NEG_18:="a" "b" | |
909 | [EXECUTE] | |
910 | Temp.control | |
911 | <END_MODULE> | |
912 | <RESULT COUNT 1> | |
913 | (?im)Parse error while pre-processing configuration file (.)*in line [0-9]*: syntax error, unexpected charstring value, expecting \$end | |
914 | <END_RESULT> | |
915 | <END_TC> | |
916 | :exmp. | |
917 | .*---------------------------------------------------------------------* | |
918 | :h3. Syntax error: Two subsequent string with space as right value, comment after, parallel mode | |
919 | .*---------------------------------------------------------------------* | |
920 | :xmp tab=0. | |
921 | <TC - Syntax error: Two subsequent string with space as right value, comment after, parallel mode > | |
922 | <EXECUTE_PARALLEL> | |
923 | <MODULE TTCN Temp Temp.ttcn> | |
924 | module Temp { | |
925 | //dummy | |
926 | control{log("test executed");} | |
927 | } | |
928 | <END_MODULE> | |
929 | ||
930 | <MODULE CFG Temp Temp.cfg> | |
931 | [DEFINE] | |
932 | NEG_18:="a" "b" | |
933 | //comment after it | |
934 | [EXECUTE] | |
935 | Temp.control | |
936 | <END_MODULE> | |
937 | <RESULT COUNT 1> | |
938 | (?im)Parse error while pre-processing configuration file (.)*in line [0-9]*: syntax error, unexpected charstring value, expecting \$end | |
939 | <END_RESULT> | |
940 | <END_TC> | |
941 | :exmp. | |
942 | .*---------------------------------------------------------------------* | |
943 | :h3. Syntax error: Two subsequent string with spaces as right value, parallel mode | |
944 | .*---------------------------------------------------------------------* | |
945 | :xmp tab=0. | |
946 | <TC - Syntax error: Two subsequent string with spaces as right value, parallel mode> | |
947 | <EXECUTE_PARALLEL> | |
948 | <MODULE TTCN Temp Temp.ttcn> | |
949 | module Temp { | |
950 | //dummy | |
951 | control{log("test executed");} | |
952 | } | |
953 | <END_MODULE> | |
954 | ||
955 | <MODULE CFG Temp Temp.cfg> | |
956 | [DEFINE] | |
957 | NEG_18:="a" "b" | |
958 | [EXECUTE] | |
959 | Temp.control | |
960 | <END_MODULE> | |
961 | <RESULT COUNT 1> | |
962 | (?im)Parse error while pre-processing configuration file (.)*in line [0-9]*: syntax error, unexpected charstring value, expecting \$end | |
963 | <END_RESULT> | |
964 | <END_TC> | |
965 | :exmp. | |
966 | .*---------------------------------------------------------------------* | |
967 | :h3. Syntax error: String and macro reference with space as right value, parallel mode | |
968 | .*---------------------------------------------------------------------* | |
969 | :xmp tab=0. | |
970 | <TC - Syntax error: String and macro reference with space as right value, parallel mode> | |
971 | <EXECUTE_PARALLEL> | |
972 | <MODULE TTCN Temp Temp.ttcn> | |
973 | module Temp { | |
974 | //dummy | |
975 | control{log("test executed");} | |
976 | } | |
977 | <END_MODULE> | |
978 | ||
979 | <MODULE CFG Temp Temp.cfg> | |
980 | [DEFINE] | |
981 | NEG_VALID:="valid" | |
982 | NEG_19:="a" $NEG_VALID | |
983 | [EXECUTE] | |
984 | Temp.control | |
985 | <END_MODULE> | |
986 | <RESULT COUNT 1> | |
987 | (?im)Parse error while pre-processing configuration file (.)*in line [0-9]*: syntax error, unexpected MacroReference, expecting \$end | |
988 | <END_RESULT> | |
989 | <END_TC> | |
990 | :exmp. | |
991 | .*---------------------------------------------------------------------* | |
992 | :h3. Syntax error: String and macro reference with spaces as right value, parallel mode | |
993 | .*---------------------------------------------------------------------* | |
994 | :xmp tab=0. | |
995 | <TC - Syntax error: String and macro reference with spaces as right value, parallel mode> | |
996 | <EXECUTE_PARALLEL> | |
997 | <MODULE TTCN Temp Temp.ttcn> | |
998 | module Temp { | |
999 | //dummy | |
1000 | control{log("test executed");} | |
1001 | } | |
1002 | <END_MODULE> | |
1003 | ||
1004 | <MODULE CFG Temp Temp.cfg> | |
1005 | [DEFINE] | |
1006 | NEG_VALID:="valid" | |
1007 | NEG_19:="a" $NEG_VALID | |
1008 | [EXECUTE] | |
1009 | Temp.control | |
1010 | <END_MODULE> | |
1011 | <RESULT COUNT 1> | |
1012 | (?im)Parse error while pre-processing configuration file (.)*in line [0-9]*: syntax error, unexpected MacroReference, expecting \$end | |
1013 | <END_RESULT> | |
1014 | <END_TC> | |
1015 | :exmp. | |
1016 | ||
1017 | .*---------------------------------------------------------------------* | |
1018 | :h3. Syntax error: String and macro reference with spaces as right value, parallel mode | |
1019 | .*---------------------------------------------------------------------* | |
1020 | :xmp tab=0. | |
1021 | <TC - Syntax error: String and macro reference with spaces as right value, parallel mode> | |
1022 | <EXECUTE_PARALLEL> | |
1023 | <MODULE TTCN Temp Temp.ttcn> | |
1024 | module Temp { | |
1025 | //dummy | |
1026 | control{log("test executed");} | |
1027 | } | |
1028 | <END_MODULE> | |
1029 | ||
1030 | <MODULE CFG Temp Temp.cfg> | |
1031 | [DEFINE] | |
1032 | NEG_VALID:="valid" | |
1033 | NEG_19:=${NEG_VALID} ${NEG_VALID} | |
1034 | [EXECUTE] | |
1035 | Temp.control | |
1036 | <END_MODULE> | |
1037 | <RESULT COUNT 1> | |
1038 | (?im)Parse error while pre-processing configuration file (.)*in line [0-9]*: syntax error, unexpected MacroReference, expecting \$end | |
1039 | <END_RESULT> | |
1040 | <END_TC> | |
1041 | :exmp. | |
1042 | ||
1043 | ||
1044 | ||
1045 | ||
1046 | .*---------------------------------------------------------------------* | |
1047 | :h2.Testing feature "structured macro" - Negative tests | |
1048 | .*---------------------------------------------------------------------* | |
1049 | ||
1050 | ||
1051 | ||
1052 | ||
1053 | ||
1054 | ||
1055 | .*---------------------------------------------------------------------* | |
1056 | :h3. Missing right value - parse error | |
1057 | .*---------------------------------------------------------------------* | |
1058 | :xmp tab=0. | |
1059 | ||
1060 | <TC - Missing right value - parse error > | |
1061 | ||
1062 | <EXECUTE> | |
1063 | ||
1064 | <MODULE TTCN Temp Temp.ttcn> | |
1065 | module Temp { | |
1066 | control{} | |
1067 | } | |
1068 | <END_MODULE> | |
1069 | <MODULE CFG Temp Temp.cfg> | |
1070 | [DEFINE] | |
1071 | DEF_1= | |
1072 | <END_MODULE> | |
1073 | <RESULT IF_PASS COUNT 1> | |
1074 | (?im)Parse error while pre-processing configuration file | |
1075 | <END_RESULT> | |
1076 | ||
1077 | <END_TC> | |
1078 | ||
1079 | :exmp. | |
1080 | ||
1081 | .*---------------------------------------------------------------------* | |
1082 | :h3. Missing closing bracket - parse error | |
1083 | .*---------------------------------------------------------------------* | |
1084 | :xmp tab=0. | |
1085 | ||
1086 | <TC - Missing closing bracket - parse error > | |
1087 | ||
1088 | <EXECUTE> | |
1089 | ||
1090 | <MODULE TTCN Temp Temp.ttcn> | |
1091 | module Temp { | |
1092 | control{} | |
1093 | } | |
1094 | <END_MODULE> | |
1095 | <MODULE CFG Temp Temp.cfg> | |
1096 | [DEFINE] | |
1097 | DEF_1:= {{1} | |
1098 | <END_MODULE> | |
1099 | <RESULT IF_PASS COUNT 1> | |
1100 | (?im)Parse error while pre-processing configuration file | |
1101 | <END_RESULT> | |
1102 | ||
1103 | <END_TC> | |
1104 | ||
1105 | :exmp. | |
1106 | .*---------------------------------------------------------------------* | |
1107 | :h3. Too much closing bracket - parse error | |
1108 | .*---------------------------------------------------------------------* | |
1109 | :xmp tab=0. | |
1110 | ||
1111 | <TC - Too much closing bracket - parse error > | |
1112 | ||
1113 | <EXECUTE> | |
1114 | ||
1115 | <MODULE TTCN Temp Temp.ttcn> | |
1116 | module Temp { | |
1117 | control{} | |
1118 | } | |
1119 | <END_MODULE> | |
1120 | <MODULE CFG Temp Temp.cfg> | |
1121 | [DEFINE] | |
1122 | DEF_1:= {1}} | |
1123 | <END_MODULE> | |
1124 | <RESULT IF_PASS COUNT 1> | |
1125 | (?im)Parse error while pre-processing configuration file | |
1126 | <END_RESULT> | |
1127 | ||
1128 | <END_TC> | |
1129 | ||
1130 | :exmp. | |
1131 | .*---------------------------------------------------------------------* | |
1132 | :h3. Wrong quotation mark 1 - parse error | |
1133 | .*---------------------------------------------------------------------* | |
1134 | :xmp tab=0. | |
1135 | ||
1136 | <TC - Wrong quotation mark 1 - parse error > | |
1137 | ||
1138 | <EXECUTE> | |
1139 | ||
1140 | <MODULE TTCN Temp Temp.ttcn> | |
1141 | module Temp { | |
1142 | control{} | |
1143 | } | |
1144 | <END_MODULE> | |
1145 | <MODULE CFG Temp Temp.cfg> | |
1146 | [DEFINE] | |
1147 | DEF_1_f1:= \"asdf\" //faulty | |
1148 | #" | |
1149 | <END_MODULE> | |
1150 | <RESULT IF_PASS COUNT 1> | |
1151 | (?im)Invalid character in \[DEFINE\] section | |
1152 | <END_RESULT> | |
1153 | ||
1154 | <END_TC> | |
1155 | ||
1156 | :exmp. | |
1157 | .*---------------------------------------------------------------------* | |
1158 | :h3. Wrong quotation mark 2 - parse error | |
1159 | .*---------------------------------------------------------------------* | |
1160 | :xmp tab=0. | |
1161 | ||
1162 | <TC - Wrong quotation mark 2 - parse error > | |
1163 | ||
1164 | <EXECUTE> | |
1165 | ||
1166 | <MODULE TTCN Temp Temp.ttcn> | |
1167 | module Temp { | |
1168 | control{} | |
1169 | } | |
1170 | <END_MODULE> | |
1171 | <MODULE CFG Temp Temp.cfg> | |
1172 | [DEFINE] | |
1173 | #DEF_1_f1:= \"asdf\" //faulty | |
1174 | DEF_1_f2 := ""asdf"" //faulty it means emtpty string+asdf+empty string | |
1175 | #" | |
1176 | <END_MODULE> | |
1177 | <RESULT IF_PASS COUNT 2> | |
1178 | (?im)Parse error while pre-processing configuration file | |
1179 | <END_RESULT> | |
1180 | ||
1181 | <END_TC> | |
1182 | ||
1183 | :exmp. | |
1184 | .*---------------------------------------------------------------------* | |
1185 | :h3. Wrong type on the right side 1 | |
1186 | .*---------------------------------------------------------------------* | |
1187 | :xmp tab=0. | |
1188 | ||
1189 | <TC - Wrong type on the right side 1 > | |
1190 | ||
1191 | <EXECUTE> | |
1192 | ||
1193 | <MODULE TTCN Temp Temp.ttcn> | |
1194 | module Temp { | |
1195 | modulepar F2 tsp_1 :={ f3:="default"}; | |
1196 | type record F2 { charstring f3}; | |
1197 | control{} | |
1198 | } | |
1199 | <END_MODULE> | |
1200 | <MODULE CFG Temp Temp.cfg> | |
1201 | [DEFINE] | |
1202 | DEF_1_f:= 1 | |
1203 | DEF_1:=${DEF_1_f} | |
1204 | [MODULE_PARAMETERS] | |
1205 | tsp_1 := ${DEF_1_f} | |
1206 | <END_MODULE> | |
1207 | <RESULT IF_PASS COUNT 2> | |
1208 | Error while setting parameter field | |
1209 | <END_RESULT> | |
1210 | ||
1211 | <END_TC> | |
1212 | ||
1213 | :exmp. | |
1214 | .*---------------------------------------------------------------------* | |
1215 | :h3. Wrong type on the right side 2 | |
1216 | .*---------------------------------------------------------------------* | |
1217 | :xmp tab=0. | |
1218 | ||
1219 | <TC - Wrong type on the right side 2 > | |
1220 | ||
1221 | <EXECUTE> | |
1222 | ||
1223 | <MODULE TTCN Temp Temp.ttcn> | |
1224 | module Temp { | |
1225 | modulepar F2 tsp_1 :={ f3:="default"}; | |
1226 | type record F2 { charstring f3}; | |
1227 | control{} | |
1228 | } | |
1229 | <END_MODULE> | |
1230 | <MODULE CFG Temp Temp.cfg> | |
1231 | [DEFINE] | |
1232 | DEF_1_f:= 1 | |
1233 | DEF_1:={ f3:=${DEF_1_f} } | |
1234 | [MODULE_PARAMETERS] | |
1235 | tsp_1 := ${DEF_1_f} | |
1236 | <END_MODULE> | |
1237 | <RESULT IF_PASS COUNT 2> | |
1238 | Error while setting parameter field | |
1239 | <END_RESULT> | |
1240 | ||
1241 | <END_TC> | |
1242 | ||
1243 | :exmp. | |
1244 | .*---------------------------------------------------------------------* | |
1245 | :h3. Wrong type on the right side 3 | |
1246 | .*---------------------------------------------------------------------* | |
1247 | :xmp tab=0. | |
1248 | ||
1249 | <TC - Wrong type on the right side 3 > | |
1250 | ||
1251 | <EXECUTE> | |
1252 | ||
1253 | <MODULE TTCN Temp Temp.ttcn> | |
1254 | module Temp { | |
1255 | modulepar F2 tsp_1 :={ f3:="default"}; | |
1256 | type record F2 { charstring f3}; | |
1257 | control{} | |
1258 | } | |
1259 | <END_MODULE> | |
1260 | <MODULE CFG Temp Temp.cfg> | |
1261 | [DEFINE] | |
1262 | DEF_1_f:= "1" | |
1263 | DEF_1:={ f3:=${DEF_1_f} } | |
1264 | [MODULE_PARAMETERS] | |
1265 | tsp_1 := ${DEF_1} | |
1266 | <END_MODULE> | |
1267 | <RESULT IF_PASS COUNT 2> | |
1268 | Error while setting parameter field | |
1269 | <END_RESULT> | |
1270 | ||
1271 | <END_TC> | |
1272 | ||
1273 | :exmp. | |
1274 | .*---------------------------------------------------------------------* | |
1275 | :h3. Wrong type on the right side 4 | |
1276 | .*---------------------------------------------------------------------* | |
1277 | :xmp tab=0. | |
1278 | ||
1279 | <TC - Wrong type on the right side 4 > | |
1280 | ||
1281 | <EXECUTE> | |
1282 | ||
1283 | <MODULE TTCN Temp Temp.ttcn> | |
1284 | module Temp { | |
1285 | modulepar F2 tsp_1 :={ f3:="default"}; | |
1286 | type record F2 { charstring f3}; | |
1287 | control{} | |
1288 | } | |
1289 | <END_MODULE> | |
1290 | <MODULE CFG Temp Temp.cfg> | |
1291 | [DEFINE] | |
1292 | DEF_1_f:= a | |
1293 | DEF_1:={ f3:=${DEF_1_f} } | |
1294 | [MODULE_PARAMETERS] | |
1295 | tsp_1 := ${DEF_1} | |
1296 | [EXECUTE] | |
1297 | Temp.control | |
1298 | <END_MODULE> | |
3abe9331 | 1299 | <RESULT IF_PASS COUNT 1> |
1300 | Dynamic test case error: Referenced module parameter cannot be found. | |
970ed795 EL |
1301 | <END_RESULT> |
1302 | ||
1303 | <END_TC> | |
1304 | ||
1305 | :exmp. | |
1306 | ||
1307 | .*---------------------------------------------------------------------* | |
1308 | :h3. Wrong type on the right side 5 | |
1309 | .*---------------------------------------------------------------------* | |
1310 | :xmp tab=0. | |
1311 | ||
1312 | <TC - Wrong type on the right side 5 > | |
1313 | ||
1314 | <EXECUTE> | |
1315 | ||
1316 | <MODULE TTCN Temp Temp.ttcn> | |
1317 | module Temp { | |
1318 | modulepar F2 tsp_1 :={ f3:="default"}; | |
1319 | type record F2 { charstring f3}; | |
1320 | control{} | |
1321 | } | |
1322 | <END_MODULE> | |
1323 | <MODULE CFG Temp Temp.cfg> | |
1324 | [DEFINE] | |
1325 | DEF_1_f:= "a" | |
1326 | DEF_1:={ f3:=${DEF_1_f} } | |
1327 | [MODULE_PARAMETERS] | |
1328 | tsp_1 := ${DEF_1} | |
1329 | <END_MODULE> | |
3abe9331 | 1330 | <RESULT IF_PASS COUNT 1> |
1331 | Dynamic test case error: Referenced module parameter cannot be found. | |
970ed795 EL |
1332 | <END_RESULT> |
1333 | ||
1334 | <END_TC> | |
1335 | ||
1336 | :exmp. | |
1337 | ||
1338 | .*---------------------------------------------------------------------* | |
1339 | :h3. Wrong type on the right side 6 | |
1340 | .*---------------------------------------------------------------------* | |
1341 | :xmp tab=0. | |
1342 | ||
1343 | <TC - Wrong type on the right side 6 > | |
1344 | ||
1345 | <EXECUTE> | |
1346 | ||
1347 | <MODULE TTCN Temp Temp.ttcn> | |
1348 | module Temp { | |
1349 | modulepar F2 tsp_1 :={ f3:="default"}; | |
1350 | type record F2 { charstring f3}; | |
1351 | control{} | |
1352 | } | |
1353 | <END_MODULE> | |
1354 | <MODULE CFG Temp Temp.cfg> | |
1355 | [DEFINE] | |
1356 | #DEF_1_f:= "a" | |
1357 | DEF_1:={ f3:=\"${DEF_1_f}\" } | |
1358 | #" | |
1359 | [MODULE_PARAMETERS] | |
1360 | tsp_1 := ${DEF_1} | |
1361 | <END_MODULE> | |
1362 | ||
1363 | <RESULT IF_PASS COUNT 1> | |
1364 | Parse error while pre-processing configuration file | |
1365 | <END_RESULT> | |
1366 | ||
1367 | <END_TC> | |
1368 | ||
1369 | :exmp. | |
1370 | .*---------------------------------------------------------------------* | |
1371 | :h3. Empty string on the right side 7 | |
1372 | .*---------------------------------------------------------------------* | |
1373 | :xmp tab=0. | |
1374 | ||
1375 | <TC - Empty string on the right side 7> | |
1376 | ||
1377 | <EXECUTE> | |
1378 | ||
1379 | <MODULE TTCN Temp Temp.ttcn> | |
1380 | module Temp { | |
1381 | modulepar F2 tsp_1 :={ f3:="default"}; | |
1382 | type record F2 { charstring f3}; | |
1383 | control{} | |
1384 | } | |
1385 | <END_MODULE> | |
1386 | <MODULE CFG Temp Temp.cfg> | |
1387 | [DEFINE] | |
1388 | #DEF_1_f:= "a" | |
1389 | DEF_1:={ f3:=\"\" } | |
1390 | #" | |
1391 | [MODULE_PARAMETERS] | |
1392 | tsp_1 := ${DEF_1} | |
1393 | <END_MODULE> | |
1394 | <RESULT IF_PASS COUNT 0> | |
1395 | <END_RESULT> | |
1396 | ||
1397 | <END_TC> | |
1398 | ||
1399 | :exmp. | |
1400 | ||
1401 | .*---------------------------------------------------------------------* | |
1402 | :h3. Empty string on the right side 8 | |
1403 | .*---------------------------------------------------------------------* | |
1404 | :xmp tab=0. | |
1405 | ||
1406 | <TC - Empty string on the right side 8> | |
1407 | ||
1408 | <EXECUTE> | |
1409 | ||
1410 | <MODULE TTCN Temp Temp.ttcn> | |
1411 | module Temp { | |
1412 | modulepar F2 tsp_1 :={ f3:="default"}; | |
1413 | type record F2 { charstring f3}; | |
1414 | control{} | |
1415 | } | |
1416 | <END_MODULE> | |
1417 | <MODULE CFG Temp Temp.cfg> | |
1418 | [DEFINE] | |
1419 | DEF_1_f:= "" | |
1420 | DEF_1:={ f3:= ${DEF_1_f} } | |
1421 | #" | |
1422 | [MODULE_PARAMETERS] | |
1423 | tsp_1 := ${DEF_1} | |
1424 | <END_MODULE> | |
1425 | <RESULT IF_PASS COUNT 1> | |
1426 | at or before token `}': syntax error, unexpected '}' | |
1427 | <END_RESULT> | |
1428 | ||
1429 | <END_TC> | |
1430 | ||
1431 | :exmp. | |
1432 | ||
1433 | .*---------------------------------------------------------------------* | |
1434 | :h3. Missing right value - parse error - Parallel mode | |
1435 | .*---------------------------------------------------------------------* | |
1436 | :xmp tab=0. | |
1437 | ||
1438 | <TC - Missing right value - parse error - Parallel mode> | |
1439 | ||
1440 | <EXECUTE_PARALLEL> | |
1441 | ||
1442 | <MODULE TTCN Temp Temp.ttcn> | |
1443 | module Temp { | |
1444 | control{} | |
1445 | } | |
1446 | <END_MODULE> | |
1447 | <MODULE CFG Temp Temp.cfg> | |
1448 | [DEFINE] | |
1449 | DEF_1= | |
1450 | <END_MODULE> | |
1451 | <RESULT IF_PASS COUNT 1> | |
1452 | (?im)Parse error while pre-processing configuration file | |
1453 | <END_RESULT> | |
1454 | ||
1455 | <END_TC> | |
1456 | ||
1457 | :exmp. | |
1458 | ||
1459 | .*---------------------------------------------------------------------* | |
1460 | :h3. Missing closing bracket - parse error - Parallel mode | |
1461 | .*---------------------------------------------------------------------* | |
1462 | :xmp tab=0. | |
1463 | ||
1464 | <TC - Missing closing bracket - parse error - Parallel mode> | |
1465 | ||
1466 | <EXECUTE_PARALLEL> | |
1467 | ||
1468 | <MODULE TTCN Temp Temp.ttcn> | |
1469 | module Temp { | |
1470 | control{} | |
1471 | } | |
1472 | <END_MODULE> | |
1473 | <MODULE CFG Temp Temp.cfg> | |
1474 | [DEFINE] | |
1475 | DEF_1:= {{1} | |
1476 | <END_MODULE> | |
1477 | <RESULT IF_PASS COUNT 1> | |
1478 | (?im)Parse error while pre-processing configuration file | |
1479 | <END_RESULT> | |
1480 | ||
1481 | <END_TC> | |
1482 | ||
1483 | :exmp. | |
1484 | .*---------------------------------------------------------------------* | |
1485 | :h3. Too much closing bracket - parse error - Parallel mode | |
1486 | .*---------------------------------------------------------------------* | |
1487 | :xmp tab=0. | |
1488 | ||
1489 | <TC - Too much closing bracket - parse error - Parallel mode> | |
1490 | ||
1491 | <EXECUTE_PARALLEL> | |
1492 | ||
1493 | <MODULE TTCN Temp Temp.ttcn> | |
1494 | module Temp { | |
1495 | control{} | |
1496 | } | |
1497 | <END_MODULE> | |
1498 | <MODULE CFG Temp Temp.cfg> | |
1499 | [DEFINE] | |
1500 | DEF_1:= {1}} | |
1501 | <END_MODULE> | |
1502 | <RESULT IF_PASS COUNT 1> | |
1503 | (?im)Parse error while pre-processing configuration file | |
1504 | <END_RESULT> | |
1505 | ||
1506 | <END_TC> | |
1507 | ||
1508 | :exmp. | |
1509 | .*---------------------------------------------------------------------* | |
1510 | :h3. Wrong quotation mark 1 - parse error - Parallel mode | |
1511 | .*---------------------------------------------------------------------* | |
1512 | :xmp tab=0. | |
1513 | ||
1514 | <TC - Wrong quotation mark 1 - parse error - Parallel mode> | |
1515 | ||
1516 | <EXECUTE_PARALLEL> | |
1517 | ||
1518 | <MODULE TTCN Temp Temp.ttcn> | |
1519 | module Temp { | |
1520 | control{} | |
1521 | } | |
1522 | <END_MODULE> | |
1523 | <MODULE CFG Temp Temp.cfg> | |
1524 | [DEFINE] | |
1525 | DEF_1_f1:= \"asdf\" //faulty | |
1526 | #" | |
1527 | <END_MODULE> | |
1528 | <RESULT IF_PASS COUNT 1> | |
1529 | (?im)Parse error while pre-processing configuration file | |
1530 | <END_RESULT> | |
1531 | ||
1532 | <END_TC> | |
1533 | ||
1534 | :exmp. | |
1535 | .*---------------------------------------------------------------------* | |
1536 | :h3. Wrong quotation mark 2 - parse error - Parallel mode | |
1537 | .*---------------------------------------------------------------------* | |
1538 | :xmp tab=0. | |
1539 | ||
1540 | <TC - Wrong quotation mark 2 - parse error - Parallel mode> | |
1541 | ||
1542 | <EXECUTE_PARALLEL> | |
1543 | ||
1544 | <MODULE TTCN Temp Temp.ttcn> | |
1545 | module Temp { | |
1546 | control{} | |
1547 | } | |
1548 | <END_MODULE> | |
1549 | <MODULE CFG Temp Temp.cfg> | |
1550 | [DEFINE] | |
1551 | #DEF_1_f1:= \"asdf\" //faulty | |
1552 | DEF_1_f2 := ""asdf"" //faulty it means emtpty string+asdf+empty string | |
1553 | #" | |
1554 | <END_MODULE> | |
1555 | <RESULT IF_PASS COUNT 2> | |
1556 | (?im)Parse error while pre-processing configuration file | |
1557 | <END_RESULT> | |
1558 | ||
1559 | <END_TC> | |
1560 | ||
1561 | :exmp. | |
1562 | .*---------------------------------------------------------------------* | |
1563 | :h3. Wrong type on the right side 1 - Parallel mode | |
1564 | .*---------------------------------------------------------------------* | |
1565 | :xmp tab=0. | |
1566 | ||
1567 | <TC - Wrong type on the right side 1 - Parallel mode > | |
1568 | ||
1569 | <EXECUTE_PARALLEL> | |
1570 | ||
1571 | <MODULE TTCN Temp Temp.ttcn> | |
1572 | module Temp { | |
1573 | modulepar F2 tsp_1 :={ f3:="default"}; | |
1574 | type record F2 { charstring f3}; | |
1575 | control{} | |
1576 | } | |
1577 | <END_MODULE> | |
1578 | <MODULE CFG Temp Temp.cfg> | |
1579 | [DEFINE] | |
1580 | DEF_1_f:= 1 | |
1581 | DEF_1:=${DEF_1_f} | |
1582 | [MODULE_PARAMETERS] | |
1583 | tsp_1 := ${DEF_1_f} | |
1584 | <END_MODULE> | |
1585 | <RESULT IF_PASS COUNT 2> | |
1586 | Error while setting parameter field | |
1587 | <END_RESULT> | |
1588 | ||
1589 | <END_TC> | |
1590 | ||
1591 | :exmp. | |
1592 | .*---------------------------------------------------------------------* | |
1593 | :h3. Wrong type on the right side 2 - Parallel mode | |
1594 | .*---------------------------------------------------------------------* | |
1595 | :xmp tab=0. | |
1596 | ||
1597 | <TC - Wrong type on the right side 2 - Parallel mode> | |
1598 | ||
1599 | <EXECUTE_PARALLEL> | |
1600 | ||
1601 | <MODULE TTCN Temp Temp.ttcn> | |
1602 | module Temp { | |
1603 | modulepar F2 tsp_1 :={ f3:="default"}; | |
1604 | type record F2 { charstring f3}; | |
1605 | control{} | |
1606 | } | |
1607 | <END_MODULE> | |
1608 | <MODULE CFG Temp Temp.cfg> | |
1609 | [DEFINE] | |
1610 | DEF_1_f:= 1 | |
1611 | DEF_1:={ f3:=${DEF_1_f} } | |
1612 | [MODULE_PARAMETERS] | |
1613 | tsp_1 := ${DEF_1_f} | |
1614 | <END_MODULE> | |
1615 | <RESULT IF_PASS COUNT 2> | |
1616 | Error while setting parameter field | |
1617 | <END_RESULT> | |
1618 | ||
1619 | <END_TC> | |
1620 | ||
1621 | :exmp. | |
1622 | .*---------------------------------------------------------------------* | |
1623 | :h3. Wrong type on the right side 3 - Parallel mode | |
1624 | .*---------------------------------------------------------------------* | |
1625 | :xmp tab=0. | |
1626 | ||
1627 | <TC - Wrong type on the right side 3 - Parallel mode> | |
1628 | ||
1629 | <EXECUTE_PARALLEL> | |
1630 | ||
1631 | <MODULE TTCN Temp Temp.ttcn> | |
1632 | module Temp { | |
1633 | modulepar F2 tsp_1 :={ f3:="default"}; | |
1634 | type record F2 { charstring f3}; | |
1635 | control{} | |
1636 | } | |
1637 | <END_MODULE> | |
1638 | <MODULE CFG Temp Temp.cfg> | |
1639 | [DEFINE] | |
1640 | DEF_1_f:= "1" | |
1641 | DEF_1:={ f3:=${DEF_1_f} } | |
1642 | [MODULE_PARAMETERS] | |
1643 | tsp_1 := ${DEF_1} | |
1644 | <END_MODULE> | |
1645 | <RESULT IF_PASS COUNT 2> | |
1646 | Error while setting parameter field | |
1647 | <END_RESULT> | |
1648 | ||
1649 | <END_TC> | |
1650 | ||
1651 | :exmp. | |
1652 | .*---------------------------------------------------------------------* | |
1653 | :h3. Wrong type on the right side 4 - Parallel mode | |
1654 | .*---------------------------------------------------------------------* | |
1655 | :xmp tab=0. | |
1656 | ||
1657 | <TC - Wrong type on the right side 4 - Parallel mode> | |
1658 | ||
1659 | <EXECUTE_PARALLEL> | |
1660 | ||
1661 | <MODULE TTCN Temp Temp.ttcn> | |
1662 | module Temp { | |
1663 | modulepar F2 tsp_1 :={ f3:="default"}; | |
1664 | type record F2 { charstring f3}; | |
1665 | control{} | |
1666 | } | |
1667 | <END_MODULE> | |
1668 | <MODULE CFG Temp Temp.cfg> | |
1669 | [DEFINE] | |
1670 | DEF_1_f:= a | |
1671 | DEF_1:={ f3:=${DEF_1_f} } | |
1672 | [MODULE_PARAMETERS] | |
1673 | tsp_1 := ${DEF_1} | |
1674 | [EXECUTE] | |
1675 | Temp.control | |
1676 | <END_MODULE> | |
3abe9331 | 1677 | <RESULT IF_PASS COUNT 1> |
1678 | Dynamic test case error: Referenced module parameter cannot be found. | |
970ed795 EL |
1679 | <END_RESULT> |
1680 | ||
1681 | <END_TC> | |
1682 | ||
1683 | :exmp. | |
1684 | ||
1685 | .*---------------------------------------------------------------------* | |
1686 | :h3. Wrong type on the right side 5 - Parallel mode | |
1687 | .*---------------------------------------------------------------------* | |
1688 | :xmp tab=0. | |
1689 | ||
1690 | <TC - Wrong type on the right side 5 - Parallel mode> | |
1691 | ||
1692 | <EXECUTE_PARALLEL> | |
1693 | ||
1694 | <MODULE TTCN Temp Temp.ttcn> | |
1695 | module Temp { | |
1696 | modulepar F2 tsp_1 :={ f3:="default"}; | |
1697 | type record F2 { charstring f3}; | |
1698 | control{} | |
1699 | } | |
1700 | <END_MODULE> | |
1701 | <MODULE CFG Temp Temp.cfg> | |
1702 | [DEFINE] | |
1703 | DEF_1_f:= "a" | |
1704 | DEF_1:={ f3:=${DEF_1_f} } | |
1705 | [MODULE_PARAMETERS] | |
1706 | tsp_1 := ${DEF_1} | |
1707 | <END_MODULE> | |
3abe9331 | 1708 | <RESULT IF_PASS COUNT 1> |
1709 | Dynamic test case error: Referenced module parameter cannot be found. | |
970ed795 EL |
1710 | <END_RESULT> |
1711 | ||
1712 | <END_TC> | |
1713 | ||
1714 | :exmp. | |
1715 | ||
1716 | .*---------------------------------------------------------------------* | |
1717 | :h3. Wrong type on the right side 6 - Parallel mode | |
1718 | .*---------------------------------------------------------------------* | |
1719 | :xmp tab=0. | |
1720 | ||
1721 | <TC - Wrong type on the right side 6 - Parallel mode> | |
1722 | ||
1723 | <EXECUTE_PARALLEL> | |
1724 | ||
1725 | <MODULE TTCN Temp Temp.ttcn> | |
1726 | module Temp { | |
1727 | modulepar F2 tsp_1 :={ f3:="default"}; | |
1728 | type record F2 { charstring f3}; | |
1729 | control{} | |
1730 | } | |
1731 | <END_MODULE> | |
1732 | <MODULE CFG Temp Temp.cfg> | |
1733 | [DEFINE] | |
1734 | #DEF_1_f:= "a" | |
1735 | DEF_1:={ f3:=\"${DEF_1_f}\" } | |
1736 | #" | |
1737 | [MODULE_PARAMETERS] | |
1738 | tsp_1 := ${DEF_1} | |
1739 | <END_MODULE> | |
1740 | ||
1741 | <RESULT IF_PASS COUNT 1> | |
1742 | Parse error while pre-processing configuration file | |
1743 | <END_RESULT> | |
1744 | ||
1745 | <END_TC> | |
1746 | ||
1747 | :exmp. | |
1748 | .*---------------------------------------------------------------------* | |
1749 | :h3. Empty string on the right side 7 - Parallel mode | |
1750 | .*---------------------------------------------------------------------* | |
1751 | :xmp tab=0. | |
1752 | ||
1753 | <TC - Empty string on the right side 7 - Parallel mode> | |
1754 | ||
1755 | <EXECUTE_PARALLEL> | |
1756 | ||
1757 | <MODULE TTCN Temp Temp.ttcn> | |
1758 | module Temp { | |
1759 | modulepar F2 tsp_1 :={ f3:="default"}; | |
1760 | type record F2 { charstring f3}; | |
1761 | control{} | |
1762 | } | |
1763 | <END_MODULE> | |
1764 | <MODULE CFG Temp Temp.cfg> | |
1765 | [DEFINE] | |
1766 | #DEF_1_f:= "a" | |
1767 | DEF_1:={ f3:=\"\" } | |
1768 | #" | |
1769 | [MODULE_PARAMETERS] | |
1770 | tsp_1 := ${DEF_1} | |
1771 | <END_MODULE> | |
1772 | <RESULT IF_PASS COUNT 0> | |
1773 | <END_RESULT> | |
1774 | ||
1775 | <END_TC> | |
1776 | ||
1777 | :exmp. | |
1778 | ||
1779 | .*---------------------------------------------------------------------* | |
1780 | :h3. Empty string on the right side 8 - Parallel mode | |
1781 | .*---------------------------------------------------------------------* | |
1782 | :xmp tab=0. | |
1783 | ||
1784 | <TC - Empty string on the right side 8 - Parallel mode> | |
1785 | ||
1786 | <EXECUTE_PARALLEL> | |
1787 | ||
1788 | <MODULE TTCN Temp Temp.ttcn> | |
1789 | module Temp { | |
1790 | modulepar F2 tsp_1 :={ f3:="default"}; | |
1791 | type record F2 { charstring f3}; | |
1792 | control{} | |
1793 | } | |
1794 | <END_MODULE> | |
1795 | <MODULE CFG Temp Temp.cfg> | |
1796 | [DEFINE] | |
1797 | DEF_1_f:= "" | |
1798 | DEF_1:={ f3:= ${DEF_1_f} } | |
1799 | #" | |
1800 | [MODULE_PARAMETERS] | |
1801 | tsp_1 := ${DEF_1} | |
1802 | <END_MODULE> | |
1803 | <RESULT IF_PASS COUNT 1> | |
1804 | Parse error .*at or before token `}': syntax error, unexpected '}' | |
1805 | <END_RESULT> | |
1806 | ||
1807 | <END_TC> | |
1808 | ||
1809 | :exmp. | |
1810 | .*---------------------------------------------------------------------* | |
1811 | :h1.Abbreviations | |
1812 | .*---------------------------------------------------------------------* | |
1813 | :list. | |
1814 | :li D='ASN.1'.Abstract Syntax Notation 1 | |
1815 | :li D='EDML'.Ericsson Document Markup Language | |
1816 | :li D='SA'.Semantic Analyser | |
1817 | :li D='TTCN-3'.Test and Test Control Notation version 3 | |
1818 | :elist. | |
1819 | ||
1820 | .*---------------------------------------------------------------------* | |
1821 | :h1.References | |
1822 | .*---------------------------------------------------------------------* | |
1823 | :list. | |
1824 | :li D='[1]'.ETH/RZ-2005:0120 Uen | |
1825 | :nl.Requirement Specification for the TITAN TTCN-3 Executor | |
1826 | :li D='[2]'.1/174 02-FCPCA 101 42 Uen | |
1827 | :nl.Statement of Compliance for TITAN project | |
1828 | :li D='[3]'.ETSI ES 201 873-1, v3.0.0 Mockup v1 (2004-03): | |
1829 | :nl.Testing and Test Control Notation version 3., | |
1830 | :nl.Part 1: TTCN-3 Core Language | |
1831 | :elist. | |
1832 | .*---------------------------------------------------------------------* | |
1833 | :h1.Terminology | |
1834 | .*---------------------------------------------------------------------* | |
1835 | :list. | |
1836 | :li D='TITAN'.Ericsson's TTCN-3 Test Environment | |
1837 | :elist. | |
1838 | ||
1839 | :etext. |