function_test/Semantic_Analyser/xer/aa_optional_SE.ttcn removed
[deliverable/titan.core.git] / function_test / Semantic_Analyser / TTCN3_SA_12_TD.script_not_running
1 :text.
2 :lang eng.
3 .*
4 .* EDML webpage: http://cpi.ericsson.se/dwaxe/
5 .* EDML2PDF converter: http://dwaxe.ericsson.se/x2pdf
6 .* EDML user guide: http://www.lmc.ericsson.se/~lmcmarg/isit/edml_ug.html
7 .*
8 .* Document header information
9 :docname.Test Description
10 :docno.xx/152 91-CRL 113 200 Uen
11 :rev.PA1
12 :date.2011-11-16
13
14 :prep.ETH/RZX Jeno Balasko (ethbaat)
15 :appr.ETH/RZX (Roland Gecse)
16 :checked.EKRISZA
17
18 :title.Test description of the TTCN-3 Semantic Analyzer: IPv6
19 :contents level=2.
20 .*---------------------------------------------------------------------*
21 :h1.Introduction
22 .*---------------------------------------------------------------------*
23 .*---------------------------------------------------------------------*
24 :h2.Revision history
25 .*---------------------------------------------------------------------*
26 :xmp tab=2.
27 REV DATE PREPARED CHANGE
28 __________________________________________________
29 PA1 2011-11-16 ETHBAAT New document for TITAN R8I
30 :exmp.
31 .*---------------------------------------------------------------------*
32 :h2.Purpose
33 .*---------------------------------------------------------------------*
34 The purpose of this Test Description is to define and describe the function
35 test activity for the IPv6 functionality of the TTCN-3 executor including
36 the relevant configuration options and the configuration file parser, the
37 component create argument setting.
38 :nl.SA-1/x: Unknown object.
39 :p.The specification of the test cases can be found in this document.
40 .*---------------------------------------------------------------------*
41 :h1.Test environment
42 .*---------------------------------------------------------------------*
43 .*---------------------------------------------------------------------*
44 :h2.Hardware
45 .*---------------------------------------------------------------------*
46 No specific hardware requirement.
47 .*---------------------------------------------------------------------*
48 :h2.Software
49 .*---------------------------------------------------------------------*
50 Tests shall be carried out on the following platforms:
51 :list.
52 :li D='1.'.Solaris 8 (Sun OS 5.8) (gcc 3.0.4)
53 :li D='2.'.SUSE Linux Enterprise server 8 (2.4.19-4GB) (gcc 3.2)
54 :li D='3.'.CYGWIN_NT-5.0 (Cygwin DLL: 1.5.12) on Windows 2000 (gcc 3.3.3)
55 :elist.
56 .*---------------------------------------------------------------------*
57 :h2.Configuration
58 .*---------------------------------------------------------------------*
59 The test environment had been setup in CVS. The tester program is stored in:
60 :nl.TTCNv3/function_test/Tools/SAtester.pl
61 :nl.Test cases are stored with extension .script in the directory:
62 :nl.TTCNv3/function_test/Semantic_Analyser/
63 .*---------------------------------------------------------------------*
64 :h2.Installation
65 .*---------------------------------------------------------------------*
66 Install proper TITAN binaries on the used platforms and make sure that
67 your environment settings are correct:
68 :list.
69 :li D='1.'.TTCN3_DIR is set
70 :li D='2.'.$TTCN3_DIR/bin is added to the PATH variable
71 :li D='3.'.$TTCN3_DIR/lib is added to the LD_LIBRARY_PATH variable
72 :li D='4.'.Perl 5.6.0 or higher is available on the platform
73 :li D='5.'.Create a symlink to your Perl binary into the directory where the
74 test cases are stored:
75 :nl.ln -s <your Perl> perl
76 :elist.
77 .*---------------------------------------------------------------------*
78 :h2.Test Tools
79 .*---------------------------------------------------------------------*
80 A tester program had been written in Perl especially for the Semantic Analyser
81 tests. For the list of command line parameters, type 'SAtester.pl -help', for the
82 complete documentation, type 'SAtester.pl -doc'.
83 :p.Test cases are specified in the Test Description documents in EDML format.
84 The tester program parses these files and generates the TTCN-3/ASN.1 modules, then
85 calls the compiler to compile them. The result printout is then matched against
86 different patterns to be able to set the verdict. Test cases contain not only
87 the source modules, but the patterns as well.
88 :p.The tester program allows one-by-one execution of test cases and batched
89 execution as well.
90 :p.NOTE: the tester program requires Perl 5.6.0 or higher.
91 .*---------------------------------------------------------------------*
92 :h2.Test scope
93 .*---------------------------------------------------------------------*
94 Ref [1]: SA-1/x: Unknown object
95 :nl.Explanation: all unknown objects shall be detected by SA.
96 .*---------------------------------------------------------------------*
97 :h2.Test strategy
98 .*---------------------------------------------------------------------*
99 Test cases are based on TTCN-3 BNF according to the followings:
100 :list.
101 :li D='1.'.For each 'basic' definition a complete coverage is done (e.g. for
102 expressions, assignments, etc.). 'Basic' means that the definition is
103 used in several places.
104 :li D='2.'.For each definition a complete coverage is done, except for basic
105 definitions, in which case only 1-2 examples are covered, not the
106 whole basic definition. This is to avoid testing all possible subcases
107 for all possible places it may appear.
108 :nl.NOTE: a complete coverage means that all occurances are tested where
109 the specific definition may occur. This is however not complete. Only
110 one occurance is tested for each construct.
111 :li D='3.'.Test case names are contsructed following the path in the BNF in TTCN-3
112 and following the possible notations/subtyping in ASN.1.
113 :elist.
114 .*---------------------------------------------------------------------*
115 :h2.Status
116 .*---------------------------------------------------------------------*
117 The following structures are not covered:
118 :list.
119 :li D='-'. xyzqwerty
120 :elist.
121 .*---------------------------------------------------------------------*
122 :h1.REQUIREMENT-BASED TESTS
123 .*---------------------------------------------------------------------*
124 .*---------------------------------------------------------------------*
125 :h2.Testing IPv6 feature
126 .*---------------------------------------------------------------------*
127 .*---------------------------------------------------------------------*
128 :h3. Existing named address for mctr, and for component host address
129 .*---------------------------------------------------------------------*
130 :xmp tab=0.
131
132 <TC - Existing named address for mctr, and for component host address >
133
134 <EXECUTE_PARALLEL>
135
136 <MODULE TTCN A A.ttcn>
137 module A {
138 modulepar {
139 charstring tsp_ipaddr1:="localhost"
140 charstring tsp_port1 := "9999"
141 }
142
143 type component MTC {}
144 type component C1_CT {}
145
146 function f_c1_behavior() runs on C1_CT {
147 setverdict(pass);
148 stop;
149 }
150
151 testcase tc_1() runs on MTC {
152 var C1_CT vc_1 := C1_CT.create("First",tsp_ipaddr1);
153 vc_1.start(f_c1_behavior());
154 vc_1.done;
155 }
156
157 control {
158 execute(tc_1());
159 }
160
161 }
162 <END_MODULE>
163
164 <MODULE CFG Temp Temp.cfg>
165 [LOGGING]
166 FileMask := LOG_ALL
167 ConsoleMask := WARNING | ERROR | TESTCASE | STATISTICS
168 [DEFINE]
169 mctr_ipaddr := tcclab1
170 [MODULE_PARAMETERS]
171 tsp_ipaddr1 := $mctr_ipaddr
172 [EXECUTE]
173 A.tc_1
174 [MAIN_CONTROLLER]
175 LocalAddress := ${ mctr_ipaddr, hostname}
176 <END_MODULE>
177 <RESULT>
178 Overall verdict: pass
179 <END_RESULT>
180 <END_TC>
181
182 :exmp.
183
184 .*---------------------------------------------------------------------*
185 :h3. Existing IPv4 address for mctr, and not existing name for component address
186 .*---------------------------------------------------------------------*
187 :xmp tab=0.
188
189 <TC - Existing IPv4 address for mctr, and not existing name for component address >
190
191 <EXECUTE_PARALLEL>
192
193 <MODULE TTCN A A.ttcn>
194 module A {
195 modulepar {
196 charstring tsp_ipaddr1:="localhost"
197 charstring tsp_port1 := "9999"
198 }
199
200 type component MTC {}
201 type component C1_CT {}
202
203 function f_c1_behavior() runs on C1_CT {
204 log(">>>f_c1_behavior started<<<");
205 setverdict(pass);
206 stop;
207 }
208
209 testcase tc_1() runs on MTC {
210 var C1_CT vc_1 := C1_CT.create("First","localhome");
211 vc_1.start(f_c1_behavior());
212 vc_1.done;
213 }
214
215 control {
216 execute(tc_1());
217 }
218
219 }
220 <END_MODULE>
221
222 <MODULE CFG Temp Temp.cfg>
223 [LOGGING]
224 FileMask := LOG_ALL
225 ConsoleMask := WARNING | ERROR | TESTCASE | STATISTICS
226 [EXECUTE]
227 A.tc_1
228 [MAIN_CONTROLLER]
229 LocalAddress := tcclab1
230
231 <END_MODULE>
232
233 <RESULT>
234 Dynamic test case error:
235 <END_RESULT>
236 <END_TC>
237
238 :exmp.
239 .*---------------------------------------------------------------------*
240 :h3. IPv4 address for mctr, and for component address (eth0)
241 .*---------------------------------------------------------------------*
242 :xmp tab=0.
243
244 <TC - IPv4 address for mctr, and for component host address (eth0) >
245
246 <EXECUTE_PARALLEL>
247
248 <MODULE TTCN A A.ttcn>
249 module A {
250 modulepar {
251 charstring tsp_ipaddr1:="localhost"
252 charstring tsp_port1 := "9999"
253 }
254
255 type component MTC {}
256 type component C1_CT {}
257
258 function f_c1_behavior() runs on C1_CT {
259 log(">>>f_c1_behavior started<<<");
260 setverdict(pass);
261 stop;
262 }
263
264 testcase tc_1() runs on MTC {
265 var C1_CT vc_1 := C1_CT.create("First",tsp_ipaddr1);
266 vc_1.start(f_c1_behavior());
267 vc_1.done;
268 }
269
270 control {
271 execute(tc_1());
272 }
273
274 }
275 <END_MODULE>
276
277 <MODULE CFG Temp Temp.cfg>
278 [LOGGING]
279 FileMask := LOG_ALL
280 ConsoleMask := WARNING | ERROR | TESTCASE | STATISTICS
281 [DEFINE]
282 mctr_ipaddr := "172.31.21.7"
283 [MODULE_PARAMETERS]
284 tsp_ipaddr1 := $mctr_ipaddr
285 [EXECUTE]
286 A.tc_1
287 [MAIN_CONTROLLER]
288 LocalAddress := ${ mctr_ipaddr, hostname}
289
290 <END_MODULE>
291
292 <RESULT>
293 Overall verdict: pass
294 <END_RESULT>
295 <END_TC>
296
297 :exmp.
298
299 .*---------------------------------------------------------------------*
300 :h3. IPv4 address for mctr, and for component address (eth2)
301 .*---------------------------------------------------------------------*
302 :xmp tab=0.
303
304 <TC - IPv4 address for mctr, and for component host address (eth2) >
305
306 <EXECUTE_PARALLEL>
307
308 <MODULE TTCN A A.ttcn>
309 module A {
310 modulepar {
311 charstring tsp_ipaddr1:="localhost"
312 charstring tsp_port1 := "9999"
313 }
314
315 type component MTC {}
316 type component C1_CT {}
317
318 function f_c1_behavior() runs on C1_CT {
319 log(">>>f_c1_behavior started<<<");
320 setverdict(pass);
321 stop;
322 }
323
324 testcase tc_1() runs on MTC {
325 var C1_CT vc_1 := C1_CT.create("First",tsp_ipaddr1);
326 vc_1.start(f_c1_behavior());
327 vc_1.done;
328 }
329
330 control {
331 execute(tc_1());
332 }
333
334 }
335 <END_MODULE>
336
337 <MODULE CFG Temp Temp.cfg>
338 [LOGGING]
339 FileMask := LOG_ALL
340 ConsoleMask := WARNING | ERROR | TESTCASE | STATISTICS
341 [DEFINE]
342 mctr_ipaddr := "192.168.1.1" //eth2
343 [MODULE_PARAMETERS]
344 tsp_ipaddr1 := $mctr_ipaddr
345 [EXECUTE]
346 A.tc_1
347 [MAIN_CONTROLLER]
348 LocalAddress := ${ mctr_ipaddr, hostname}
349
350 <END_MODULE>
351
352 <RESULT>
353 Overall verdict: pass
354 <END_RESULT>
355 <END_TC>
356
357 :exmp.
358
359 .*---------------------------------------------------------------------*
360 :h3. IPv4 address for mctr, and brief IPv6 address for component address(eth0, Scope:Global)
361 .*---------------------------------------------------------------------*
362 :xmp tab=0.
363
364 <TC - IPv4 address for mctr, and brief IPv6 address for component address (eth0, Scope:Global)>
365
366 <EXECUTE_PARALLEL>
367
368 <MODULE TTCN A A.ttcn>
369 module A {
370 modulepar {
371 charstring tsp_ipaddr1:="localhost"
372 charstring tsp_port1 := "9999"
373 }
374
375 type component MTC {}
376 type component C1_CT {}
377
378 function f_c1_behavior() runs on C1_CT {
379 log(">>>f_c1_behavior started<<<");
380 setverdict(pass);
381 stop;
382 }
383
384 testcase tc_1() runs on MTC {
385 var C1_CT vc_1 := C1_CT.create("First",tsp_ipaddr1);
386 vc_1.start(f_c1_behavior());
387 vc_1.done;
388 }
389
390 control {
391 execute(tc_1());
392 }
393
394 }
395 <END_MODULE>
396
397 <MODULE CFG Temp Temp.cfg>
398 [LOGGING]
399 FileMask := LOG_ALL
400 ConsoleMask := WARNING | ERROR | TESTCASE | STATISTICS
401 [MODULE_PARAMETERS]
402 tsp_ipaddr1 := "fd0a:f452:f524::7"
403
404 [EXECUTE]
405 A.tc_1
406 [MAIN_CONTROLLER]
407 LocalAddress := 172.31.21.7
408
409 <END_MODULE>
410
411 <RESULT>
412 No suitable host was found to create a new PTC
413 <END_RESULT>
414
415 <END_TC>
416
417 :exmp.
418
419 .*---------------------------------------------------------------------*
420 :h3. IPv4 address for mctr, and brief IPv6 address for component address (eth0, Scope:Link)
421 .*---------------------------------------------------------------------*
422 :xmp tab=0.
423
424 <TC - IPv4 address for mctr, and brief IPv6 address for component address (eth0, Scope:Link) >
425
426 <EXECUTE_PARALLEL>
427
428 <MODULE TTCN A A.ttcn>
429 module A {
430 modulepar {
431 charstring tsp_ipaddr1:="localhost"
432 charstring tsp_port1 := "9999"
433 }
434
435 type component MTC {}
436 type component C1_CT {}
437
438 function f_c1_behavior() runs on C1_CT {
439 log(">>>f_c1_behavior started<<<");
440 setverdict(pass);
441 stop;
442 }
443
444 testcase tc_1() runs on MTC {
445 var C1_CT vc_1 := C1_CT.create("First",tsp_ipaddr1);
446 vc_1.start(f_c1_behavior());
447 vc_1.done;
448 }
449
450 control {
451 execute(tc_1());
452 }
453
454 }
455 <END_MODULE>
456
457 <MODULE CFG Temp Temp.cfg>
458 [LOGGING]
459 FileMask := LOG_ALL
460 ConsoleMask := WARNING | ERROR | TESTCASE | STATISTICS
461 [MODULE_PARAMETERS]
462 tsp_ipaddr1 := "fe80::215:17ff:fe48:23d0%eth0" //Scope:Link
463 [EXECUTE]
464 A.tc_1
465 [MAIN_CONTROLLER]
466 LocalAddress := 172.31.21.7
467
468 <END_MODULE>
469
470 <RESULT>
471 No suitable host was found to create a new PTC
472 <END_RESULT>
473
474 <END_TC>
475
476 :exmp.
477 .*---------------------------------------------------------------------*
478 :h3. IPv4 address for mctr, and IPv6 address of longer form for component address (eth0, Scope:Global)
479 .*---------------------------------------------------------------------*
480 :xmp tab=0.
481
482 <TC - IPv4 address for mctr, and IPv6 address of longer form for component address (eth0, Scope:Global) >
483
484 <EXECUTE_PARALLEL>
485
486 <MODULE TTCN A A.ttcn>
487 module A {
488 modulepar {
489 charstring tsp_ipaddr1:="localhost"
490 charstring tsp_port1 := "9999"
491 }
492
493 type component MTC {}
494 type component C1_CT {}
495
496 function f_c1_behavior() runs on C1_CT {
497 log(">>>f_c1_behavior started<<<");
498 setverdict(pass);
499 stop;
500 }
501
502 testcase tc_1() runs on MTC {
503 var C1_CT vc_1 := C1_CT.create("First",tsp_ipaddr1);
504 vc_1.start(f_c1_behavior());
505 vc_1.done;
506 }
507
508 control {
509 execute(tc_1());
510 }
511
512 }
513 <END_MODULE>
514
515 <MODULE CFG Temp Temp.cfg>
516 [LOGGING]
517 FileMask := LOG_ALL
518 ConsoleMask := WARNING | ERROR | TESTCASE | STATISTICS
519 [MODULE_PARAMETERS]
520 tsp_ipaddr1 := "fd0a:f452:f524:0:0:0:0:7"
521 [EXECUTE]
522 A.tc_1
523 [MAIN_CONTROLLER]
524 LocalAddress := 172.31.21.7
525
526 <END_MODULE>
527
528 <RESULT>
529 No suitable host was found to create a new PTC
530 <END_RESULT>
531
532 <END_TC>
533
534 :exmp.
535
536 .*---------------------------------------------------------------------*
537 :h3. IPv4 address for mctr, and IPv6 address of longest form for component address (eth0, Scope:Global)
538 .*---------------------------------------------------------------------*
539 :xmp tab=0.
540
541 <TC - IPv4 address for mctr, and IPv6 address of longest form for component address (eth0, Scope:Global)>
542
543 <EXECUTE_PARALLEL>
544
545 <MODULE TTCN A A.ttcn>
546 module A {
547 modulepar {
548 charstring tsp_ipaddr1:="localhost"
549 charstring tsp_port1 := "9999"
550 }
551
552 type component MTC {}
553 type component C1_CT {}
554
555 function f_c1_behavior() runs on C1_CT {
556 log(">>>f_c1_behavior started<<<");
557 setverdict(pass);
558 stop;
559 }
560
561 testcase tc_1() runs on MTC {
562 var C1_CT vc_1 := C1_CT.create("First",tsp_ipaddr1);
563 vc_1.start(f_c1_behavior());
564 vc_1.done;
565 }
566
567 control {
568 execute(tc_1());
569 }
570
571 }
572 <END_MODULE>
573
574 <MODULE CFG Temp Temp.cfg>
575 [LOGGING]
576 FileMask := LOG_ALL
577 ConsoleMask := WARNING | ERROR | TESTCASE | STATISTICS
578 [DEFINE]
579 mctr_ipaddr := "fd0a:f452:f524:0000:0000:0000:0000:0007"
580 [MODULE_PARAMETERS]
581 tsp_ipaddr1 := $mctr_ipaddr
582 [EXECUTE]
583 A.tc_1
584 [MAIN_CONTROLLER]
585 LocalAddress := 172.31.21.7
586
587 <END_MODULE>
588
589 <RESULT>
590 No suitable host was found to create a new PTC
591 <END_RESULT>
592
593 <END_TC>
594
595 :exmp.
596 .*---------------------------------------------------------------------*
597 :h3. IPv6 address of short form, no network length, syntax error for mctr 1.
598 .*---------------------------------------------------------------------*
599 :xmp tab=0.
600
601 <TC - IPv6 address of short form, no network length, syntax error for mctr 1. >
602
603 <EXECUTE_PARALLEL>
604
605 <MODULE TTCN A A.ttcn>
606 module A {
607
608 type component MTC {}
609
610 testcase tc_1() runs on MTC {
611 setverdict(pass);
612 }
613
614 control {
615 execute(tc_1());
616 }
617
618 }
619 <END_MODULE>
620
621 <MODULE CFG Temp Temp.cfg>
622 [LOGGING]
623 FileMask := LOG_ALL
624 ConsoleMask := WARNING | ERROR | TESTCASE | STATISTICS
625
626 [EXECUTE]
627 A.tc_1
628 [MAIN_CONTROLLER]
629 LocalAddress := BUBU::7
630
631 <END_MODULE>
632
633 <RESULT>
634 Error was found in the configuration file. Exiting
635 <END_RESULT>
636 <END_TC>
637
638 :exmp.
639
640 .*---------------------------------------------------------------------*
641 :h3. IPv6 address of short form, no network length, syntax error for mctr 2.
642 .*---------------------------------------------------------------------*
643 :xmp tab=0.
644
645 <TC - IPv6 address of short form, no network length, syntax error for mctr 2 >
646
647 <EXECUTE_PARALLEL>
648
649 <MODULE TTCN A A.ttcn>
650 module A {
651
652 type component MTC {}
653
654 testcase tc_1() runs on MTC {
655 setverdict(pass);
656 }
657
658 control {
659 execute(tc_1());
660 }
661
662 }
663 <END_MODULE>
664
665 <MODULE CFG Temp Temp.cfg>
666 [LOGGING]
667 FileMask := LOG_ALL
668 ConsoleMask := WARNING | ERROR | TESTCASE | STATISTICS
669
670 [EXECUTE]
671 A.tc_1
672 [MAIN_CONTROLLER]
673 LocalAddress := FD0A:f452:f524:::7
674
675 <END_MODULE>
676
677 <RESULT>
678 Error
679 <END_RESULT>
680 <END_TC>
681
682 :exmp.
683 .*---------------------------------------------------------------------*
684 :h3. IPv6 address of short form, no network length, for mctr (eth0, Scope: Global)
685 .*---------------------------------------------------------------------*
686 :xmp tab=0.
687
688 <TC - IPv6 address of short form, no network length, for mctr (eth0, Scope: Global)>
689
690 <EXECUTE_PARALLEL>
691
692 <MODULE TTCN A A.ttcn>
693 module A {
694
695 type component MTC {}
696
697 testcase tc_1() runs on MTC {
698 setverdict(pass);
699 }
700
701 control {
702 execute(tc_1());
703 }
704
705 }
706 <END_MODULE>
707
708 <MODULE CFG Temp Temp.cfg>
709 [LOGGING]
710 FileMask := LOG_ALL
711 ConsoleMask := WARNING | ERROR | TESTCASE | STATISTICS
712
713 [EXECUTE]
714 A.tc_1
715 [MAIN_CONTROLLER]
716 LocalAddress := fd0a:f452:f524::7
717
718 <END_MODULE>
719
720 <RESULT>
721 Overall verdict: pass
722 <END_RESULT>
723 <END_TC>
724
725 :exmp.
726 .*---------------------------------------------------------------------*
727 :h3. IPv6 address of longer form, no network length, for mctr (eth0, Scope: Global)
728 .*---------------------------------------------------------------------*
729 :xmp tab=0.
730
731 <TC - IPv6 address of longer form, no network length, for mctr (eth0, Scope: Global) >
732
733 <EXECUTE_PARALLEL>
734
735 <MODULE TTCN A A.ttcn>
736 module A {
737
738 type component MTC {}
739
740 testcase tc_1() runs on MTC {
741 setverdict(pass);
742 }
743
744 control {
745 execute(tc_1());
746 }
747
748 }
749 <END_MODULE>
750
751 <MODULE CFG Temp Temp.cfg>
752 [LOGGING]
753 FileMask := LOG_ALL
754 ConsoleMask := WARNING | ERROR | TESTCASE | STATISTICS
755
756 [EXECUTE]
757 A.tc_1
758 [MAIN_CONTROLLER]
759 LocalAddress := fd0a:f452:f524:0:0:0:0:7
760
761 <END_MODULE>
762
763 <RESULT>
764 Overall verdict: pass
765 <END_RESULT>
766 <END_TC>
767
768 :exmp.
769 .*---------------------------------------------------------------------*
770 :h3. IPv6 address of longest form, no network length, for mctr (eth0, Scope: Global)
771 .*---------------------------------------------------------------------*
772 :xmp tab=0.
773
774 <TC - IPv6 address of longest form, no network length, for mctr (eth0, Scope: Global)>
775
776 <EXECUTE_PARALLEL>
777
778 <MODULE TTCN A A.ttcn>
779 module A {
780
781 type component MTC {}
782
783 testcase tc_1() runs on MTC {
784 setverdict(pass);
785 }
786
787 control {
788 execute(tc_1());
789 }
790
791 }
792 <END_MODULE>
793
794 <MODULE CFG Temp Temp.cfg>
795 [LOGGING]
796 FileMask := LOG_ALL
797 ConsoleMask := WARNING | ERROR | TESTCASE | STATISTICS
798
799 [EXECUTE]
800 A.tc_1
801 [MAIN_CONTROLLER]
802 LocalAddress := fd0a:f452:f524:0000:0000:0000:0000:0007
803
804 <END_MODULE>
805
806 <RESULT>
807 Overall verdict: pass
808 <END_RESULT>
809 <END_TC>
810
811 :exmp.
812
813 .*---------------------------------------------------------------------*
814 :h3. IPv6 address of longest form, no network length, for mctr (eth0, Scope: Global), localhost for created component
815 .*---------------------------------------------------------------------*
816 :xmp tab=0.
817
818 <TC - IPv6 address of longest form, no network length, for mctr (eth0, Scope: Global), localhost for created component>
819
820 <EXECUTE_PARALLEL>
821
822 <MODULE TTCN A A.ttcn>
823 module A {
824 modulepar {
825 charstring tsp_ipaddr1:="localhost"
826 charstring tsp_port1 := "9999"
827 }
828 type component MTC {}
829 type component C1_CT {}
830
831 function f_c1_behavior() runs on C1_CT {
832 log(">>>f_c1_behavior started<<<");
833 setverdict(pass);
834 stop;
835 }
836
837 testcase tc_1() runs on MTC {
838 var C1_CT vc_1 := C1_CT.create("First",tsp_ipaddr1);
839 vc_1.start(f_c1_behavior());
840 vc_1.done;
841 }
842
843 }
844 <END_MODULE>
845
846 <MODULE CFG Temp Temp.cfg>
847 [LOGGING]
848 FileMask := LOG_ALL
849 ConsoleMask := WARNING | ERROR | TESTCASE | STATISTICS
850
851 [EXECUTE]
852 A.tc_1
853 [MAIN_CONTROLLER]
854 LocalAddress := fd0a:f452:f524:0000:0000:0000:0000:0007
855
856 <END_MODULE>
857
858 <RESULT>
859 No suitable host was found to create a new PTC
860 <END_RESULT>
861 <END_TC>
862
863 :exmp.
864 .*---------------------------------------------------------------------*
865 :h3. IPv6 address in hostname macro (eth0, Scope: Global)
866 .*---------------------------------------------------------------------*
867 :xmp tab=0.
868
869 <TC - IPv6 address in hostname macro (eth0, Scope: Global)>
870
871 <EXECUTE_PARALLEL>
872
873 <MODULE TTCN A A.ttcn>
874 module A {
875
876 type component MTC {}
877
878 testcase tc_1() runs on MTC {
879 setverdict(pass);
880 }
881
882 control {
883 execute(tc_1());
884 }
885
886 }
887 <END_MODULE>
888
889 <MODULE CFG Temp Temp.cfg>
890 [LOGGING]
891 FileMask := LOG_ALL
892 ConsoleMask := WARNING | ERROR | TESTCASE | STATISTICS
893 [DEFINE]
894 mctr_ipaddr := fd0a:f452:f524::7 //eth0, Scope:Global
895 [EXECUTE]
896 A.tc_1
897 [MAIN_CONTROLLER]
898 LocalAddress := ${ mctr_ipaddr, hostname}
899
900 <END_MODULE>
901
902 <RESULT>
903 Overall verdict: pass
904 <END_RESULT>
905 <END_TC>
906
907 :exmp.
908
909 .*---------------------------------------------------------------------*
910 :h3. IPv6 address of short form, no network length, for mctr (eth0, Scope: Link)
911 .*---------------------------------------------------------------------*
912 :xmp tab=0.
913
914 <TC - IPv6 address of short form, no network length, for mctr (eth0, Scope: Link)>
915
916 <EXECUTE_PARALLEL>
917
918 <MODULE TTCN A A.ttcn>
919 module A {
920
921 type component MTC {}
922
923 testcase tc_1() runs on MTC {
924 setverdict(pass);
925 }
926
927 control {
928 execute(tc_1());
929 }
930
931 }
932 <END_MODULE>
933
934 <MODULE CFG Temp Temp.cfg>
935 [LOGGING]
936 FileMask := LOG_ALL
937 ConsoleMask := WARNING | ERROR | TESTCASE | STATISTICS
938
939 [EXECUTE]
940 A.tc_1
941 [MAIN_CONTROLLER]
942 LocalAddress := fe80::215:17ff:fe48:23d0%eth0
943
944 <END_MODULE>
945
946 <RESULT>
947 Overall verdict: pass
948 <END_RESULT>
949 <END_TC>
950
951 :exmp.
952 .*---------------------------------------------------------------------*
953 :h3. IPv6 address of longer form, no network length, for mctr (eth0, Scope: Link)
954 .*---------------------------------------------------------------------*
955 :xmp tab=0.
956
957 <TC - IPv6 address of longer form, no network length, for mctr (eth0, Scope: Link)>
958
959 <EXECUTE_PARALLEL>
960
961 <MODULE TTCN A A.ttcn>
962 module A {
963
964 type component MTC {}
965
966 testcase tc_1() runs on MTC {
967 setverdict(pass);
968 }
969
970 control {
971 execute(tc_1());
972 }
973
974 }
975 <END_MODULE>
976
977 <MODULE CFG Temp Temp.cfg>
978 [LOGGING]
979 FileMask := LOG_ALL
980 ConsoleMask := WARNING | ERROR | TESTCASE | STATISTICS
981
982 [EXECUTE]
983 A.tc_1
984 [MAIN_CONTROLLER]
985 LocalAddress := fe80:0:0:0:215:17ff:fe48:23d0%eth0
986
987 <END_MODULE>
988
989 <RESULT>
990 Overall verdict: pass
991 <END_RESULT>
992 <END_TC>
993
994 :exmp.
995
996 .*---------------------------------------------------------------------*
997 :h3. IPv6 address of longest form, no network length, for mctr (eth0, Scope: Link)
998 .*---------------------------------------------------------------------*
999 :xmp tab=0.
1000
1001 <TC - IPv6 address of longest form, no network length, for mctr (eth0, Scope: Link)>
1002
1003 <EXECUTE_PARALLEL>
1004
1005 <MODULE TTCN A A.ttcn>
1006 module A {
1007
1008 type component MTC {}
1009
1010 testcase tc_1() runs on MTC {
1011 setverdict(pass);
1012 }
1013
1014 control {
1015 execute(tc_1());
1016 }
1017
1018 }
1019 <END_MODULE>
1020
1021 <MODULE CFG Temp Temp.cfg>
1022 [LOGGING]
1023 FileMask := LOG_ALL
1024 ConsoleMask := WARNING | ERROR | TESTCASE | STATISTICS
1025
1026 [EXECUTE]
1027 A.tc_1
1028 [MAIN_CONTROLLER]
1029 LocalAddress := fe80:0000:0000:0000:0215:17ff:fe48:23d0%eth0
1030
1031 <END_MODULE>
1032
1033 <RESULT>
1034 Overall verdict: pass
1035 <END_RESULT>
1036 <END_TC>
1037
1038 :exmp.
1039 .*---------------------------------------------------------------------*
1040 :h3. IPv6 address of brief format for mctr, and for component address (eth0, Scope:Link)
1041 .*---------------------------------------------------------------------*
1042 :xmp tab=0.
1043
1044 <TC - IPv6 address of brief format for mctr, and for component address (eth0, Scope:Link) >
1045
1046 <EXECUTE_PARALLEL>
1047
1048 <MODULE TTCN A A.ttcn>
1049 module A {
1050 modulepar {
1051 charstring tsp_ipaddr1:="localhost"
1052 charstring tsp_port1 := "9999"
1053 }
1054
1055 type component MTC {}
1056 type component C1_CT {}
1057
1058 function f_c1_behavior() runs on C1_CT {
1059 log(">>>f_c1_behavior started<<<");
1060 setverdict(pass);
1061 stop;
1062 }
1063
1064 testcase tc_1() runs on MTC {
1065 var C1_CT vc_1 := C1_CT.create("First",tsp_ipaddr1);
1066 vc_1.start(f_c1_behavior());
1067 vc_1.done;
1068 }
1069
1070 control {
1071 execute(tc_1());
1072 }
1073
1074 }
1075 <END_MODULE>
1076
1077 <MODULE CFG Temp Temp.cfg>
1078 [LOGGING]
1079 FileMask := LOG_ALL
1080 ConsoleMask := WARNING | ERROR | TESTCASE | STATISTICS
1081 [MODULE_PARAMETERS]
1082 tsp_ipaddr1 := "fe80::215:17ff:fe48:23d0%eth0"
1083 [EXECUTE]
1084 A.tc_1
1085 [MAIN_CONTROLLER]
1086 LocalAddress := fe80::215:17ff:fe48:23d0%eth0
1087
1088 <END_MODULE>
1089
1090 <RESULT>
1091 Overall verdict: pass
1092 <END_RESULT>
1093 <END_TC>
1094
1095 :exmp.
1096
1097 .*---------------------------------------------------------------------*
1098 :h3. IPv6 address of brief format for mctr, and name for component host address (eth0, Scope:Global)
1099 .*---------------------------------------------------------------------*
1100 :xmp tab=0.
1101
1102 <TC - IPv6 address of brief format for mctr, and name for component host address (eth0, Scope:Global) >
1103
1104 <EXECUTE_PARALLEL>
1105
1106 <MODULE TTCN A A.ttcn>
1107 module A {
1108 modulepar {
1109 charstring tsp_ipaddr1:="localhost"
1110 charstring tsp_port1 := "9999"
1111 }
1112
1113 type component MTC {}
1114 type component C1_CT {}
1115
1116 function f_c1_behavior() runs on C1_CT {
1117 setverdict(pass);
1118 stop;
1119 }
1120
1121 testcase tc_1() runs on MTC {
1122 var C1_CT vc_1 := C1_CT.create("First",tsp_ipaddr1);
1123 vc_1.start(f_c1_behavior());
1124 vc_1.done;
1125 }
1126
1127 control {
1128 execute(tc_1());
1129 }
1130
1131 }
1132 <END_MODULE>
1133
1134 <MODULE CFG Temp Temp.cfg>
1135 [LOGGING]
1136 FileMask := LOG_ALL
1137 ConsoleMask := WARNING | ERROR | TESTCASE | STATISTICS
1138 [MODULE_PARAMETERS]
1139 tsp_ipaddr1 := "tcclab1"
1140 [EXECUTE]
1141 A.tc_1
1142 [MAIN_CONTROLLER]
1143 LocalAddress := fd0a:f452:f524::7
1144 <END_MODULE>
1145 <RESULT>
1146 Overall verdict: pass
1147 <END_RESULT>
1148 <END_TC>
1149
1150 :exmp.
1151 .*---------------------------------------------------------------------*
1152 :h3. IPv6 address of brief format for mctr, and full name for component host address (eth0, Scope:Global)
1153 .*---------------------------------------------------------------------*
1154 :xmp tab=0.
1155
1156 <TC - IPv6 address of brief format for mctr, and full name for component host address (eth0, Scope:Global) >
1157
1158 <EXECUTE_PARALLEL>
1159
1160 <MODULE TTCN A A.ttcn>
1161 module A {
1162 modulepar {
1163 charstring tsp_ipaddr1:="localhost"
1164 charstring tsp_port1 := "9999"
1165 }
1166
1167 type component MTC {}
1168 type component C1_CT {}
1169
1170 function f_c1_behavior() runs on C1_CT {
1171 setverdict(pass);
1172 stop;
1173 }
1174
1175 testcase tc_1() runs on MTC {
1176 var C1_CT vc_1 := C1_CT.create("First",tsp_ipaddr1);
1177 vc_1.start(f_c1_behavior());
1178 vc_1.done;
1179 }
1180
1181 control {
1182 execute(tc_1());
1183 }
1184
1185 }
1186 <END_MODULE>
1187
1188 <MODULE CFG Temp Temp.cfg>
1189 [LOGGING]
1190 FileMask := LOG_ALL
1191 ConsoleMask := WARNING | ERROR | TESTCASE | STATISTICS
1192 [MODULE_PARAMETERS]
1193 tsp_ipaddr1 := "tcclab1.tccnet.eth.ericsson.se"
1194 [EXECUTE]
1195 A.tc_1
1196 [MAIN_CONTROLLER]
1197 LocalAddress := fd0a:f452:f524::7
1198 <END_MODULE>
1199 <RESULT>
1200 Overall verdict: pass
1201 <END_RESULT>
1202 <END_TC>
1203
1204 :exmp.
1205
1206 .*---------------------------------------------------------------------*
1207 :h3. IPv6 address of brief format for mctr, and name for component host address (eth0, Scope:Link Local)
1208 .*---------------------------------------------------------------------*
1209 :xmp tab=0.
1210
1211 <TC - IPv6 address of brief format for mctr, and name for component host address (eth0, Scope:Link Local) >
1212
1213 <EXECUTE_PARALLEL>
1214
1215 <MODULE TTCN A A.ttcn>
1216 module A {
1217 modulepar {
1218 charstring tsp_ipaddr1:="localhost"
1219 charstring tsp_port1 := "9999"
1220 }
1221
1222 type component MTC {}
1223 type component C1_CT {}
1224
1225 function f_c1_behavior() runs on C1_CT {
1226 setverdict(pass);
1227 stop;
1228 }
1229
1230 testcase tc_1() runs on MTC {
1231 var C1_CT vc_1 := C1_CT.create("First",tsp_ipaddr1);
1232 vc_1.start(f_c1_behavior());
1233 vc_1.done;
1234 }
1235
1236 control {
1237 execute(tc_1());
1238 }
1239
1240 }
1241 <END_MODULE>
1242
1243 <MODULE CFG Temp Temp.cfg>
1244 [LOGGING]
1245 FileMask := LOG_ALL
1246 ConsoleMask := WARNING | ERROR | TESTCASE | STATISTICS
1247 [MODULE_PARAMETERS]
1248 tsp_ipaddr1 := "tcclab1"
1249 [EXECUTE]
1250 A.tc_1
1251 [MAIN_CONTROLLER]
1252 LocalAddress := fe80::215:17ff:fe48:23d0%eth0
1253 <END_MODULE>
1254 <RESULT>
1255 Overall verdict: pass
1256 <END_RESULT>
1257 <END_TC>
1258
1259 :exmp.
1260
1261 .*---------------------------------------------------------------------*
1262 :h3. IPv6 address for mctr, and brief IPv6 address for component address(eth0, Scope:Global)
1263 .*---------------------------------------------------------------------*
1264 :xmp tab=0.
1265
1266 <TC - IPv6 address for mctr, and brief IPv6 address for component address (eth0, Scope:Global)>
1267
1268 <EXECUTE_PARALLEL>
1269
1270 <MODULE TTCN A A.ttcn>
1271 module A {
1272 modulepar {
1273 charstring tsp_ipaddr1:="localhost"
1274 charstring tsp_port1 := "9999"
1275 }
1276
1277 type component MTC {}
1278 type component C1_CT {}
1279
1280 function f_c1_behavior() runs on C1_CT {
1281 log(">>>f_c1_behavior started<<<");
1282 setverdict(pass);
1283 stop;
1284 }
1285
1286 testcase tc_1() runs on MTC {
1287 var C1_CT vc_1 := C1_CT.create("First",tsp_ipaddr1);
1288 vc_1.start(f_c1_behavior());
1289 vc_1.done;
1290 }
1291
1292 control {
1293 execute(tc_1());
1294 }
1295
1296 }
1297 <END_MODULE>
1298
1299 <MODULE CFG Temp Temp.cfg>
1300 [LOGGING]
1301 FileMask := LOG_ALL
1302 ConsoleMask := WARNING | ERROR | TESTCASE | STATISTICS
1303 [MODULE_PARAMETERS]
1304 tsp_ipaddr1 := "fd0a:f452:f524::7"
1305
1306 [EXECUTE]
1307 A.tc_1
1308 [MAIN_CONTROLLER]
1309 LocalAddress := fd0a:f452:f524::7
1310
1311 <END_MODULE>
1312
1313 <RESULT>
1314 Overall verdict: pass
1315 <END_RESULT>
1316
1317 <END_TC>
1318
1319 :exmp.
1320 .*---------------------------------------------------------------------*
1321 :h3. IPv6 address for mctr, and longer IPv6 address for component address(eth0, Scope:Global)
1322 .*---------------------------------------------------------------------*
1323 :xmp tab=0.
1324
1325 <TC - IPv6 address for mctr, and longer IPv6 address for component address (eth0, Scope:Global)>
1326
1327 <EXECUTE_PARALLEL>
1328
1329 <MODULE TTCN A A.ttcn>
1330 module A {
1331 modulepar {
1332 charstring tsp_ipaddr1:="localhost"
1333 charstring tsp_port1 := "9999"
1334 }
1335
1336 type component MTC {}
1337 type component C1_CT {}
1338
1339 function f_c1_behavior() runs on C1_CT {
1340 log(">>>f_c1_behavior started<<<");
1341 setverdict(pass);
1342 stop;
1343 }
1344
1345 testcase tc_1() runs on MTC {
1346 var C1_CT vc_1 := C1_CT.create("First",tsp_ipaddr1);
1347 vc_1.start(f_c1_behavior());
1348 vc_1.done;
1349 }
1350
1351 control {
1352 execute(tc_1());
1353 }
1354
1355 }
1356 <END_MODULE>
1357
1358 <MODULE CFG Temp Temp.cfg>
1359 [LOGGING]
1360 FileMask := LOG_ALL
1361 ConsoleMask := WARNING | ERROR | TESTCASE | STATISTICS
1362 [MODULE_PARAMETERS]
1363 tsp_ipaddr1 := "fd0a:f452:f524:0:0:0:0:7"
1364
1365 [EXECUTE]
1366 A.tc_1
1367 [MAIN_CONTROLLER]
1368 LocalAddress := fd0a:f452:f524:0:0:0:0:7
1369
1370 <END_MODULE>
1371
1372 <RESULT>
1373 Overall verdict: pass
1374 <END_RESULT>
1375
1376 <END_TC>
1377
1378 :exmp.
1379 .*---------------------------------------------------------------------*
1380 :h3. IPv6 address for mctr, and longest IPv6 address for component address(eth0, Scope:Global)
1381 .*---------------------------------------------------------------------*
1382 :xmp tab=0.
1383
1384 <TC - IPv6 address for mctr, and longest IPv6 address for component address (eth0, Scope:Global)>
1385
1386 <EXECUTE_PARALLEL>
1387
1388 <MODULE TTCN A A.ttcn>
1389 module A {
1390 modulepar {
1391 charstring tsp_ipaddr1:="localhost"
1392 charstring tsp_port1 := "9999"
1393 }
1394
1395 type component MTC {}
1396 type component C1_CT {}
1397
1398 function f_c1_behavior() runs on C1_CT {
1399 log(">>>f_c1_behavior started<<<");
1400 setverdict(pass);
1401 stop;
1402 }
1403
1404 testcase tc_1() runs on MTC {
1405 var C1_CT vc_1 := C1_CT.create("First",tsp_ipaddr1);
1406 vc_1.start(f_c1_behavior());
1407 vc_1.done;
1408 }
1409
1410 control {
1411 execute(tc_1());
1412 }
1413
1414 }
1415 <END_MODULE>
1416
1417 <MODULE CFG Temp Temp.cfg>
1418 [LOGGING]
1419 FileMask := LOG_ALL
1420 ConsoleMask := WARNING | ERROR | TESTCASE | STATISTICS
1421 [MODULE_PARAMETERS]
1422 tsp_ipaddr1 := "fd0a:f452:f524:0000:0000:0000:0000:0007"
1423
1424 [EXECUTE]
1425 A.tc_1
1426 [MAIN_CONTROLLER]
1427 LocalAddress := fd0a:f452:f524::7
1428
1429 <END_MODULE>
1430
1431 <RESULT>
1432 Overall verdict: pass
1433 <END_RESULT>
1434
1435 <END_TC>
1436
1437 :exmp.
1438
1439 .*---------------------------------------------------------------------*
1440 :h3. IPv6 address for mctr, and brief IPv6 address for component address(eth1, Scope:Global)
1441 .*---------------------------------------------------------------------*
1442 :xmp tab=0.
1443
1444 <TC - IPv6 address for mctr, and brief IPv6 address for component address (eth1, Scope:Global)>
1445
1446 <EXECUTE_PARALLEL>
1447
1448 <MODULE TTCN A A.ttcn>
1449 module A {
1450 modulepar {
1451 charstring tsp_ipaddr1:="localhost"
1452 charstring tsp_port1 := "9999"
1453 }
1454
1455 type component MTC {}
1456 type component C1_CT {}
1457
1458 function f_c1_behavior() runs on C1_CT {
1459 log(">>>f_c1_behavior started<<<");
1460 setverdict(pass);
1461 stop;
1462 }
1463
1464 testcase tc_1() runs on MTC {
1465 var C1_CT vc_1 := C1_CT.create("First",tsp_ipaddr1);
1466 vc_1.start(f_c1_behavior());
1467 vc_1.done;
1468 }
1469
1470 control {
1471 execute(tc_1());
1472 }
1473
1474 }
1475 <END_MODULE>
1476
1477 <MODULE CFG Temp Temp.cfg>
1478 [LOGGING]
1479 FileMask := LOG_ALL
1480 ConsoleMask := WARNING | ERROR | TESTCASE | STATISTICS
1481 [MODULE_PARAMETERS]
1482 tsp_ipaddr1 := "fdb2:30de:34bd::7" //eth1
1483
1484 [EXECUTE]
1485 A.tc_1
1486 [MAIN_CONTROLLER]
1487 LocalAddress := fdb2:30de:34bd::7 //eth1
1488
1489 <END_MODULE>
1490
1491 <RESULT>
1492 Overall verdict: pass
1493 <END_RESULT>
1494
1495 <END_TC>
1496
1497 :exmp.
1498
1499 .*---------------------------------------------------------------------*
1500 :h3. IPv6 address for mctr, and longer IPv6 address for component address (eth1, Scope:Global)
1501 .*---------------------------------------------------------------------*
1502 :xmp tab=0.
1503
1504 <TC - IPv6 address for mctr, and longer IPv6 address for component address (eth1, Scope:Global)>
1505
1506 <EXECUTE_PARALLEL>
1507
1508 <MODULE TTCN A A.ttcn>
1509 module A {
1510 modulepar {
1511 charstring tsp_ipaddr1:="localhost"
1512 charstring tsp_port1 := "9999"
1513 }
1514
1515 type component MTC {}
1516 type component C1_CT {}
1517
1518 function f_c1_behavior() runs on C1_CT {
1519 log(">>>f_c1_behavior started<<<");
1520 setverdict(pass);
1521 stop;
1522 }
1523
1524 testcase tc_1() runs on MTC {
1525 var C1_CT vc_1 := C1_CT.create("First",tsp_ipaddr1);
1526 vc_1.start(f_c1_behavior());
1527 vc_1.done;
1528 }
1529
1530 control {
1531 execute(tc_1());
1532 }
1533
1534 }
1535 <END_MODULE>
1536
1537 <MODULE CFG Temp Temp.cfg>
1538 [LOGGING]
1539 FileMask := LOG_ALL
1540 ConsoleMask := WARNING | ERROR | TESTCASE | STATISTICS
1541 [MODULE_PARAMETERS]
1542 tsp_ipaddr1 := "FD0a:f452:f524:0:0:0:0:07"
1543
1544 [EXECUTE]
1545 A.tc_1
1546 [MAIN_CONTROLLER]
1547 LocalAddress := fd0a:f452:f524::7
1548
1549 <END_MODULE>
1550
1551 <RESULT>
1552 Overall verdict: pass
1553 <END_RESULT>
1554
1555 <END_TC>
1556
1557 :exmp.
1558
1559 :etext.
This page took 0.069188 seconds and 5 git commands to generate.