1 .******************************************************************************
2 .* Copyright (c) 2000-2014 Ericsson Telecom AB
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 .******************************************************************************/
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
15 .* Document header information
16 :docname.Test Description
17 :docno.xx/152 91-CRL 113 200/2 Uen
21 :prep.ETH/RZX Jeno Balasko (ethbaat)
22 :appr.ETH/RZX (Gyula Koos)
25 :title.Test description of the TTCN-3 Preprocessing Configuration File Macros
27 .*---------------------------------------------------------------------*
29 .*---------------------------------------------------------------------*
30 .*---------------------------------------------------------------------*
32 .*---------------------------------------------------------------------*
34 REV DATE PREPARED CHANGE
35 __________________________________________________
36 PA1 2012-11-16 ETHBAAT Preprocessor macro test
37 PA2 2013-01-16 ETHBAAT Structured macro test
39 .*---------------------------------------------------------------------*
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
47 :nl.SA-1/x: Unknown object.
48 :p.The specification of the test cases can be found in this document.
49 .*---------------------------------------------------------------------*
51 .*---------------------------------------------------------------------*
52 .*---------------------------------------------------------------------*
54 .*---------------------------------------------------------------------*
55 No specific hardware requirement.
56 .*---------------------------------------------------------------------*
58 .*---------------------------------------------------------------------*
59 Tests shall be carried out on the following platforms:
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)
65 .*---------------------------------------------------------------------*
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 .*---------------------------------------------------------------------*
74 .*---------------------------------------------------------------------*
75 Install proper TITAN binaries on the used platforms and make sure that
76 your environment settings are correct:
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
86 .*---------------------------------------------------------------------*
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
99 :p.NOTE: the tester program requires Perl 5.6.0 or higher.
100 .*---------------------------------------------------------------------*
102 .*---------------------------------------------------------------------*
103 Ref [1]: SA-1/x: Unknown object
104 :nl.Explanation: all unknown objects shall be detected by SA.
105 .*---------------------------------------------------------------------*
107 .*---------------------------------------------------------------------*
108 Test cases are based on TTCN-3 BNF according to the followings:
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.
123 .*---------------------------------------------------------------------*
125 .*---------------------------------------------------------------------*
126 The following structures are not covered:
128 :li D='-'.sub-structures that causes parse error due to limited support of that
129 part of the language (e.g. interleave construct)
131 .*---------------------------------------------------------------------*
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 .*---------------------------------------------------------------------*
141 <TC - No macro or environmental variable defined with name 1 -single mode >
143 <MODULE TTCN Temp Temp.ttcn>
149 <MODULE CFG Temp Temp.cfg>
153 NEG_2:=${not_existing}
158 (?im)Parse error while pre-processing configuration file (.)*No macro or environmental variable defined with name `not_existing'
162 .*---------------------------------------------------------------------*
163 :h3. Invalid character in DEFINE section - single mode - 1
164 .*---------------------------------------------------------------------*
166 <TC - Invalid character in DEFINE section - single mode - 1 >
168 <MODULE TTCN Temp Temp.ttcn>
174 <MODULE CFG Temp Temp.cfg>
176 NEG_3:=$${not_existing}
177 NEG_4:=$4{not_existing}
182 (?im)Parse error while pre-processing configuration file (.)*Invalid character in \[DEFINE\] section.
185 (?im)Parse error while pre-processing configuration file (.)*No macro or environmental variable defined with name `not_existing'
188 syntax error, unexpected \{, expecting \$end
192 .*---------------------------------------------------------------------*
193 :h3. Invalid character in DEFINE section - single mode - 2
194 .*---------------------------------------------------------------------*
196 <TC - Invalid character in DEFINE section - single mode - 2 >
198 <MODULE TTCN Temp Temp.ttcn>
204 <MODULE CFG Temp Temp.cfg>
206 NEG_5:=$$${not_existing}
211 (?im)Parse error while pre-processing configuration file (.)*Invalid character in \[DEFINE\] section.
214 (?im)Parse error while pre-processing configuration file (.)*No macro or environmental variable defined with name `not_existing'
218 .*---------------------------------------------------------------------*
219 :h3. Invalid character in DEFINE section - single mode - 3
220 .*---------------------------------------------------------------------*
222 <TC - Invalid character in DEFINE section - single mode - 3 >
224 <MODULE TTCN Temp Temp.ttcn>
230 <MODULE CFG Temp Temp.cfg>
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
242 (?im)Parse error while pre-processing configuration file (.)*Invalid character in \[DEFINE\] section.
245 (?im)Parse error while pre-processing configuration file (.)*No macro or environmental variable defined with name `not_existing'
249 .*---------------------------------------------------------------------*
250 :h3. Invalid character in DEFINE section - single mode - 4
251 .*---------------------------------------------------------------------*
253 <TC - Invalid character in DEFINE section - single mode - 4 >
255 <MODULE TTCN Temp Temp.ttcn>
261 <MODULE CFG Temp Temp.cfg>
263 NEG_11:=$_wrong_macro_name
268 (?im)Parse error while pre-processing configuration file (.)*Invalid character in \[DEFINE\] section.
272 .*---------------------------------------------------------------------*
273 :h3. Invalid character in DEFINE section - single mode - 5
274 .*---------------------------------------------------------------------*
276 <TC - Invalid character in DEFINE section - single mode - 5 >
278 <MODULE TTCN Temp Temp.ttcn>
284 <MODULE CFG Temp Temp.cfg>
286 NEG_11_1:=${_NEG_VALID}
291 (?im)Parse error while pre-processing configuration file (.)*Invalid character in \[DEFINE\] section.
296 .*---------------------------------------------------------------------*
297 :h3. Duplicate macro definition - single mode
298 .*---------------------------------------------------------------------*
300 <TC - Duplicate macro definition - single mode>
302 <MODULE TTCN Temp Temp.ttcn>
310 <MODULE CFG Temp Temp.cfg>
314 NEG_11_2:=${NEG_VALID}
319 (?im)Overall verdict: none
324 .*---------------------------------------------------------------------*
325 :h3. Invalid character in DEFINE section - single mode - 4
326 .*---------------------------------------------------------------------*
328 <TC - Invalid character in DEFINE section - single mode - 4 >
330 <MODULE TTCN Temp Temp.ttcn>
336 <MODULE CFG Temp Temp.cfg>
338 NEG_12:=${1wrong_macro_name}
339 NEG_13:=${2wrong_macro_name}
340 NEG_14:=${0wrong_macro_name}
341 NEG_15:=${_wrong_macro_name}
346 (?im)Parse error while pre-processing configuration file (.)*Invalid character in \[DEFINE\] section.
351 .*---------------------------------------------------------------------*
352 :h3. Syntax error: string without quotation mark but containing space - single mode
353 .*---------------------------------------------------------------------*
355 <TC - Syntax error: string without quotation mark but containing space - single mode>
357 <MODULE TTCN Temp Temp.ttcn>
360 control{ log("test executed");}
364 <MODULE CFG Temp Temp.cfg>
371 (?im)Parse error while pre-processing configuration file (.)*syntax error
376 .*---------------------------------------------------------------------*
377 :h3. Syntax error: Two subsequent string as right value, comment after
378 .*---------------------------------------------------------------------*
380 <TC - Syntax error: Two subsequent string as right value 1>
382 <MODULE TTCN Temp Temp.ttcn>
384 control{log("test executed");}
388 <MODULE CFG Temp Temp.cfg>
391 //perhaps the error msg is not correct, check it!
396 (?im)Parse error while pre-processing configuration file (.)*in line [0-9]*: Literal `b' cannot follow another literal
400 .*---------------------------------------------------------------------*
401 :h3. Syntax error: Two subsequent string as right value, comment before
402 .*---------------------------------------------------------------------*
404 <TC - Syntax error: Two subsequent string as right value, comment before>
406 <MODULE TTCN Temp Temp.ttcn>
409 control{log("test executed");}
413 <MODULE CFG Temp Temp.cfg>
421 (?im)Parse error while pre-processing configuration file (.)*in line [0-9]*: Literal `b' cannot follow another literal
425 .*---------------------------------------------------------------------*
426 :h3. Syntax error: Two subsequent string with space as right value
427 .*---------------------------------------------------------------------*
429 <TC - Syntax error: Two subsequent string with space as right value>
431 <MODULE TTCN Temp Temp.ttcn>
434 control{log("test executed");}
438 <MODULE CFG Temp Temp.cfg>
445 (?im)Parse error while pre-processing configuration file (.)*in line [0-9]*: syntax error, unexpected charstring value, expecting \$end
449 .*---------------------------------------------------------------------*
450 :h3. Syntax error: Two subsequent string with space as right value, comment before
451 .*---------------------------------------------------------------------*
453 <TC - Syntax error: Two subsequent string with space as right value, comment before>
455 <MODULE TTCN Temp Temp.ttcn>
458 control{log("test executed");}
462 <MODULE CFG Temp Temp.cfg>
470 (?im)Parse error while pre-processing configuration file (.)*in line [0-9]*: syntax error, unexpected charstring value, expecting \$end
474 .*---------------------------------------------------------------------*
475 :h3. Syntax error: Two subsequent string with space as right value, comment after
476 .*---------------------------------------------------------------------*
478 <TC - Syntax error: Two subsequent string with space as right value, comment after >
480 <MODULE TTCN Temp Temp.ttcn>
483 control{log("test executed");}
487 <MODULE CFG Temp Temp.cfg>
495 (?im)Parse error while pre-processing configuration file (.)*in line [0-9]*: syntax error, unexpected charstring value, expecting \$end
499 .*---------------------------------------------------------------------*
500 :h3. Syntax error: Two subsequent string with spaces as right value
501 .*---------------------------------------------------------------------*
503 <TC - Syntax error: Two subsequent string with spaces as right value>
505 <MODULE TTCN Temp Temp.ttcn>
508 control{log("test executed");}
512 <MODULE CFG Temp Temp.cfg>
519 (?im)Parse error while pre-processing configuration file (.)*in line [0-9]*: syntax error, unexpected charstring value, expecting \$end
523 .*---------------------------------------------------------------------*
524 :h3. Syntax error: String and macro reference with space as right value
525 .*---------------------------------------------------------------------*
527 <TC - Syntax error: String and macro reference with space as right value>
529 <MODULE TTCN Temp Temp.ttcn>
532 control{log("test executed");}
536 <MODULE CFG Temp Temp.cfg>
539 NEG_19:="a" $NEG_VALID
544 (?im)Parse error while pre-processing configuration file (.)*in line [0-9]*: syntax error, unexpected MacroReference, expecting \$end
548 .*---------------------------------------------------------------------*
549 :h3. Syntax error: String and macro reference with spaces as right value
550 .*---------------------------------------------------------------------*
552 <TC - Syntax error: String and macro reference with spaces as right value>
554 <MODULE TTCN Temp Temp.ttcn>
557 control{log("test executed");}
561 <MODULE CFG Temp Temp.cfg>
564 NEG_19:="a" $NEG_VALID
569 (?im)Parse error while pre-processing configuration file (.)*in line [0-9]*: syntax error, unexpected MacroReference, expecting \$end
574 .*---------------------------------------------------------------------*
575 :h3. Syntax error: String and macro reference with spaces as right value
576 .*---------------------------------------------------------------------*
578 <TC - Syntax error: String and macro reference with spaces as right value>
580 <MODULE TTCN Temp Temp.ttcn>
583 control{log("test executed");}
587 <MODULE CFG Temp Temp.cfg>
590 NEG_19:=${NEG_VALID} ${NEG_VALID}
595 (?im)Parse error while pre-processing configuration file (.)*in line [0-9]*: syntax error, unexpected MacroReference, expecting \$end
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 .*---------------------------------------------------------------------*
607 <TC - No macro or environmental variable defined with name 1 -parallel mode >
609 <MODULE TTCN Temp Temp.ttcn>
615 <MODULE CFG Temp Temp.cfg>
619 NEG_2:=${not_existing}
624 (?im)Parse error while pre-processing configuration file (.)*No macro or environmental variable defined with name `not_existing'
628 .*---------------------------------------------------------------------*
629 :h3. Invalid character in DEFINE section - parallel mode - 1
630 .*---------------------------------------------------------------------*
632 <TC - Invalid character in DEFINE section - parallel mode - 1 >
634 <MODULE TTCN Temp Temp.ttcn>
640 <MODULE CFG Temp Temp.cfg>
642 NEG_3:=$${not_existing}
643 NEG_4:=$4{not_existing}
644 NEG_5:=$$${not_existing}
649 (?im)Parse error while pre-processing configuration file (.)*Invalid character in \[DEFINE\] section.
652 (?im)Parse error while pre-processing configuration file (.)*No macro or environmental variable defined with name `not_existing'
655 syntax error, unexpected \{, expecting \$end
660 .*---------------------------------------------------------------------*
661 :h3. Invalid character in DEFINE section - parallel mode - 2
662 .*---------------------------------------------------------------------*
664 <TC - Invalid character in DEFINE section - parallel mode - 2 >
666 <MODULE TTCN Temp Temp.ttcn>
672 <MODULE CFG Temp Temp.cfg>
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
684 (?im)Parse error while pre-processing configuration file (.)*Invalid character in \[DEFINE\] section.
687 (?im)Parse error while pre-processing configuration file (.)*No macro or environmental variable defined with name `not_existing'
692 .*---------------------------------------------------------------------*
693 :h3. Invalid character in DEFINE section - parallel mode - 3
694 .*---------------------------------------------------------------------*
696 <TC - Invalid character in DEFINE section - parallel mode - 3 >
698 <MODULE TTCN Temp Temp.ttcn>
704 <MODULE CFG Temp Temp.cfg>
706 NEG_11_1:=${_NEG_VALID}
711 (?im)Parse error while pre-processing configuration file (.)*Invalid character in \[DEFINE\] section.
716 .*---------------------------------------------------------------------*
717 :h3. Duplicate macro definition - parallel mode
718 .*---------------------------------------------------------------------*
720 <TC - Duplicate macro definition - parallel mode>
722 <MODULE TTCN Temp Temp.ttcn>
730 <MODULE CFG Temp Temp.cfg>
734 NEG_11_2:=${NEG_VALID}
739 (?im)Overall verdict: none
744 .*---------------------------------------------------------------------*
745 :h3. Invalid character in DEFINE section - parallel mode - 4
746 .*---------------------------------------------------------------------*
748 <TC - Invalid character in DEFINE section - parallel mode - 4 >
750 <MODULE TTCN Temp Temp.ttcn>
756 <MODULE CFG Temp Temp.cfg>
758 NEG_12:=${1wrong_macro_name}
759 NEG_13:=${2wrong_macro_name}
760 NEG_14:=${0wrong_macro_name}
765 (?im)Parse error while pre-processing configuration file (.)*Invalid character in \[DEFINE\] section.
770 .*---------------------------------------------------------------------*
771 :h3. Invalid character in DEFINE section - parallel mode - 5
772 .*---------------------------------------------------------------------*
774 <TC - Invalid character in DEFINE section - parallel mode - 5 >
776 <MODULE TTCN Temp Temp.ttcn>
782 <MODULE CFG Temp Temp.cfg>
784 NEG_15:=${_wrong_macro_name}
789 (?im)Parse error while pre-processing configuration file (.)*Invalid character in \[DEFINE\] section.
794 .*---------------------------------------------------------------------*
795 :h3. Syntax error: string without quotation mark but containing space - parallel mode
796 .*---------------------------------------------------------------------*
798 <TC - Syntax error: string without quotation mark but containing space - parallel mode>
800 <MODULE TTCN Temp Temp.ttcn>
803 control{ log("test executed");}
807 <MODULE CFG Temp Temp.cfg>
814 (?im)Parse error while pre-processing configuration file (.)*syntax error
819 .*---------------------------------------------------------------------*
820 :h3. Syntax error: Two subsequent string as right value, comment after - parallel mode
821 .*---------------------------------------------------------------------*
823 <TC - Syntax error: Two subsequent string as right value, comment after -parallel mode >
825 <MODULE TTCN Temp Temp.ttcn>
827 control{log("test executed");}
831 <MODULE CFG Temp Temp.cfg>
834 //perhaps the error msg is not correct, check it!
839 (?im)Parse error while pre-processing configuration file (.)*in line [0-9]*: Literal `b' cannot follow another literal
843 .*---------------------------------------------------------------------*
844 :h3. Syntax error: Two subsequent string as right value, comment before, parallel mode
845 .*---------------------------------------------------------------------*
847 <TC - Syntax error: Two subsequent string as right value, comment before, parallel mode>
849 <MODULE TTCN Temp Temp.ttcn>
852 control{log("test executed");}
856 <MODULE CFG Temp Temp.cfg>
864 (?im)Parse error while pre-processing configuration file (.)*in line [0-9]*: Literal `b' cannot follow another literal
868 .*---------------------------------------------------------------------*
869 :h3. Syntax error: Two subsequent string with space as right value, parallel mode
870 .*---------------------------------------------------------------------*
872 <TC - Syntax error: Two subsequent string with space as right value, parallel mode>
874 <MODULE TTCN Temp Temp.ttcn>
877 control{log("test executed");}
881 <MODULE CFG Temp Temp.cfg>
888 (?im)Parse error while pre-processing configuration file (.)*in line [0-9]*: syntax error, unexpected charstring value, expecting \$end
892 .*---------------------------------------------------------------------*
893 :h3. Syntax error: Two subsequent string with space as right value, comment before, parallel mode
894 .*---------------------------------------------------------------------*
896 <TC - Syntax error: Two subsequent string with space as right value, comment before, parallel mode>
898 <MODULE TTCN Temp Temp.ttcn>
901 control{log("test executed");}
905 <MODULE CFG Temp Temp.cfg>
913 (?im)Parse error while pre-processing configuration file (.)*in line [0-9]*: syntax error, unexpected charstring value, expecting \$end
917 .*---------------------------------------------------------------------*
918 :h3. Syntax error: Two subsequent string with space as right value, comment after, parallel mode
919 .*---------------------------------------------------------------------*
921 <TC - Syntax error: Two subsequent string with space as right value, comment after, parallel mode >
923 <MODULE TTCN Temp Temp.ttcn>
926 control{log("test executed");}
930 <MODULE CFG Temp Temp.cfg>
938 (?im)Parse error while pre-processing configuration file (.)*in line [0-9]*: syntax error, unexpected charstring value, expecting \$end
942 .*---------------------------------------------------------------------*
943 :h3. Syntax error: Two subsequent string with spaces as right value, parallel mode
944 .*---------------------------------------------------------------------*
946 <TC - Syntax error: Two subsequent string with spaces as right value, parallel mode>
948 <MODULE TTCN Temp Temp.ttcn>
951 control{log("test executed");}
955 <MODULE CFG Temp Temp.cfg>
962 (?im)Parse error while pre-processing configuration file (.)*in line [0-9]*: syntax error, unexpected charstring value, expecting \$end
966 .*---------------------------------------------------------------------*
967 :h3. Syntax error: String and macro reference with space as right value, parallel mode
968 .*---------------------------------------------------------------------*
970 <TC - Syntax error: String and macro reference with space as right value, parallel mode>
972 <MODULE TTCN Temp Temp.ttcn>
975 control{log("test executed");}
979 <MODULE CFG Temp Temp.cfg>
982 NEG_19:="a" $NEG_VALID
987 (?im)Parse error while pre-processing configuration file (.)*in line [0-9]*: syntax error, unexpected MacroReference, expecting \$end
991 .*---------------------------------------------------------------------*
992 :h3. Syntax error: String and macro reference with spaces as right value, parallel mode
993 .*---------------------------------------------------------------------*
995 <TC - Syntax error: String and macro reference with spaces as right value, parallel mode>
997 <MODULE TTCN Temp Temp.ttcn>
1000 control{log("test executed");}
1004 <MODULE CFG Temp Temp.cfg>
1007 NEG_19:="a" $NEG_VALID
1012 (?im)Parse error while pre-processing configuration file (.)*in line [0-9]*: syntax error, unexpected MacroReference, expecting \$end
1017 .*---------------------------------------------------------------------*
1018 :h3. Syntax error: String and macro reference with spaces as right value, parallel mode
1019 .*---------------------------------------------------------------------*
1021 <TC - Syntax error: String and macro reference with spaces as right value, parallel mode>
1023 <MODULE TTCN Temp Temp.ttcn>
1026 control{log("test executed");}
1030 <MODULE CFG Temp Temp.cfg>
1033 NEG_19:=${NEG_VALID} ${NEG_VALID}
1038 (?im)Parse error while pre-processing configuration file (.)*in line [0-9]*: syntax error, unexpected MacroReference, expecting \$end
1046 .*---------------------------------------------------------------------*
1047 :h2.Testing feature "structured macro" - Negative tests
1048 .*---------------------------------------------------------------------*
1055 .*---------------------------------------------------------------------*
1056 :h3. Missing right value - parse error
1057 .*---------------------------------------------------------------------*
1060 <TC - Missing right value - parse error >
1064 <MODULE TTCN Temp Temp.ttcn>
1069 <MODULE CFG Temp Temp.cfg>
1073 <RESULT IF_PASS COUNT 1>
1074 (?im)Parse error while pre-processing configuration file
1081 .*---------------------------------------------------------------------*
1082 :h3. Missing closing bracket - parse error
1083 .*---------------------------------------------------------------------*
1086 <TC - Missing closing bracket - parse error >
1090 <MODULE TTCN Temp Temp.ttcn>
1095 <MODULE CFG Temp Temp.cfg>
1099 <RESULT IF_PASS COUNT 1>
1100 (?im)Parse error while pre-processing configuration file
1106 .*---------------------------------------------------------------------*
1107 :h3. Too much closing bracket - parse error
1108 .*---------------------------------------------------------------------*
1111 <TC - Too much closing bracket - parse error >
1115 <MODULE TTCN Temp Temp.ttcn>
1120 <MODULE CFG Temp Temp.cfg>
1124 <RESULT IF_PASS COUNT 1>
1125 (?im)Parse error while pre-processing configuration file
1131 .*---------------------------------------------------------------------*
1132 :h3. Wrong quotation mark 1 - parse error
1133 .*---------------------------------------------------------------------*
1136 <TC - Wrong quotation mark 1 - parse error >
1140 <MODULE TTCN Temp Temp.ttcn>
1145 <MODULE CFG Temp Temp.cfg>
1147 DEF_1_f1:= \"asdf\" //faulty
1150 <RESULT IF_PASS COUNT 1>
1151 (?im)Invalid character in \[DEFINE\] section
1157 .*---------------------------------------------------------------------*
1158 :h3. Wrong quotation mark 2 - parse error
1159 .*---------------------------------------------------------------------*
1162 <TC - Wrong quotation mark 2 - parse error >
1166 <MODULE TTCN Temp Temp.ttcn>
1171 <MODULE CFG Temp Temp.cfg>
1173 #DEF_1_f1:= \"asdf\" //faulty
1174 DEF_1_f2 := ""asdf"" //faulty it means emtpty string+asdf+empty string
1177 <RESULT IF_PASS COUNT 2>
1178 (?im)Parse error while pre-processing configuration file
1184 .*---------------------------------------------------------------------*
1185 :h3. Wrong type on the right side 1
1186 .*---------------------------------------------------------------------*
1189 <TC - Wrong type on the right side 1 >
1193 <MODULE TTCN Temp Temp.ttcn>
1195 modulepar F2 tsp_1 :={ f3:="default"};
1196 type record F2 { charstring f3};
1200 <MODULE CFG Temp Temp.cfg>
1207 <RESULT IF_PASS COUNT 2>
1208 Error while setting parameter field
1214 .*---------------------------------------------------------------------*
1215 :h3. Wrong type on the right side 2
1216 .*---------------------------------------------------------------------*
1219 <TC - Wrong type on the right side 2 >
1223 <MODULE TTCN Temp Temp.ttcn>
1225 modulepar F2 tsp_1 :={ f3:="default"};
1226 type record F2 { charstring f3};
1230 <MODULE CFG Temp Temp.cfg>
1233 DEF_1:={ f3:=${DEF_1_f} }
1237 <RESULT IF_PASS COUNT 2>
1238 Error while setting parameter field
1244 .*---------------------------------------------------------------------*
1245 :h3. Wrong type on the right side 3
1246 .*---------------------------------------------------------------------*
1249 <TC - Wrong type on the right side 3 >
1253 <MODULE TTCN Temp Temp.ttcn>
1255 modulepar F2 tsp_1 :={ f3:="default"};
1256 type record F2 { charstring f3};
1260 <MODULE CFG Temp Temp.cfg>
1263 DEF_1:={ f3:=${DEF_1_f} }
1267 <RESULT IF_PASS COUNT 2>
1268 Error while setting parameter field
1274 .*---------------------------------------------------------------------*
1275 :h3. Wrong type on the right side 4
1276 .*---------------------------------------------------------------------*
1279 <TC - Wrong type on the right side 4 >
1283 <MODULE TTCN Temp Temp.ttcn>
1285 modulepar F2 tsp_1 :={ f3:="default"};
1286 type record F2 { charstring f3};
1290 <MODULE CFG Temp Temp.cfg>
1293 DEF_1:={ f3:=${DEF_1_f} }
1299 <RESULT IF_PASS COUNT 2>
1300 Error while setting parameter field
1307 .*---------------------------------------------------------------------*
1308 :h3. Wrong type on the right side 5
1309 .*---------------------------------------------------------------------*
1312 <TC - Wrong type on the right side 5 >
1316 <MODULE TTCN Temp Temp.ttcn>
1318 modulepar F2 tsp_1 :={ f3:="default"};
1319 type record F2 { charstring f3};
1323 <MODULE CFG Temp Temp.cfg>
1326 DEF_1:={ f3:=${DEF_1_f} }
1330 <RESULT IF_PASS COUNT 2>
1331 Error while setting parameter field
1338 .*---------------------------------------------------------------------*
1339 :h3. Wrong type on the right side 6
1340 .*---------------------------------------------------------------------*
1343 <TC - Wrong type on the right side 6 >
1347 <MODULE TTCN Temp Temp.ttcn>
1349 modulepar F2 tsp_1 :={ f3:="default"};
1350 type record F2 { charstring f3};
1354 <MODULE CFG Temp Temp.cfg>
1357 DEF_1:={ f3:=\"${DEF_1_f}\" }
1363 <RESULT IF_PASS COUNT 1>
1364 Parse error while pre-processing configuration file
1370 .*---------------------------------------------------------------------*
1371 :h3. Empty string on the right side 7
1372 .*---------------------------------------------------------------------*
1375 <TC - Empty string on the right side 7>
1379 <MODULE TTCN Temp Temp.ttcn>
1381 modulepar F2 tsp_1 :={ f3:="default"};
1382 type record F2 { charstring f3};
1386 <MODULE CFG Temp Temp.cfg>
1394 <RESULT IF_PASS COUNT 0>
1401 .*---------------------------------------------------------------------*
1402 :h3. Empty string on the right side 8
1403 .*---------------------------------------------------------------------*
1406 <TC - Empty string on the right side 8>
1410 <MODULE TTCN Temp Temp.ttcn>
1412 modulepar F2 tsp_1 :={ f3:="default"};
1413 type record F2 { charstring f3};
1417 <MODULE CFG Temp Temp.cfg>
1420 DEF_1:={ f3:= ${DEF_1_f} }
1425 <RESULT IF_PASS COUNT 1>
1426 at or before token `}': syntax error, unexpected '}'
1433 .*---------------------------------------------------------------------*
1434 :h3. Missing right value - parse error - Parallel mode
1435 .*---------------------------------------------------------------------*
1438 <TC - Missing right value - parse error - Parallel mode>
1442 <MODULE TTCN Temp Temp.ttcn>
1447 <MODULE CFG Temp Temp.cfg>
1451 <RESULT IF_PASS COUNT 1>
1452 (?im)Parse error while pre-processing configuration file
1459 .*---------------------------------------------------------------------*
1460 :h3. Missing closing bracket - parse error - Parallel mode
1461 .*---------------------------------------------------------------------*
1464 <TC - Missing closing bracket - parse error - Parallel mode>
1468 <MODULE TTCN Temp Temp.ttcn>
1473 <MODULE CFG Temp Temp.cfg>
1477 <RESULT IF_PASS COUNT 1>
1478 (?im)Parse error while pre-processing configuration file
1484 .*---------------------------------------------------------------------*
1485 :h3. Too much closing bracket - parse error - Parallel mode
1486 .*---------------------------------------------------------------------*
1489 <TC - Too much closing bracket - parse error - Parallel mode>
1493 <MODULE TTCN Temp Temp.ttcn>
1498 <MODULE CFG Temp Temp.cfg>
1502 <RESULT IF_PASS COUNT 1>
1503 (?im)Parse error while pre-processing configuration file
1509 .*---------------------------------------------------------------------*
1510 :h3. Wrong quotation mark 1 - parse error - Parallel mode
1511 .*---------------------------------------------------------------------*
1514 <TC - Wrong quotation mark 1 - parse error - Parallel mode>
1518 <MODULE TTCN Temp Temp.ttcn>
1523 <MODULE CFG Temp Temp.cfg>
1525 DEF_1_f1:= \"asdf\" //faulty
1528 <RESULT IF_PASS COUNT 1>
1529 (?im)Parse error while pre-processing configuration file
1535 .*---------------------------------------------------------------------*
1536 :h3. Wrong quotation mark 2 - parse error - Parallel mode
1537 .*---------------------------------------------------------------------*
1540 <TC - Wrong quotation mark 2 - parse error - Parallel mode>
1544 <MODULE TTCN Temp Temp.ttcn>
1549 <MODULE CFG Temp Temp.cfg>
1551 #DEF_1_f1:= \"asdf\" //faulty
1552 DEF_1_f2 := ""asdf"" //faulty it means emtpty string+asdf+empty string
1555 <RESULT IF_PASS COUNT 2>
1556 (?im)Parse error while pre-processing configuration file
1562 .*---------------------------------------------------------------------*
1563 :h3. Wrong type on the right side 1 - Parallel mode
1564 .*---------------------------------------------------------------------*
1567 <TC - Wrong type on the right side 1 - Parallel mode >
1571 <MODULE TTCN Temp Temp.ttcn>
1573 modulepar F2 tsp_1 :={ f3:="default"};
1574 type record F2 { charstring f3};
1578 <MODULE CFG Temp Temp.cfg>
1585 <RESULT IF_PASS COUNT 2>
1586 Error while setting parameter field
1592 .*---------------------------------------------------------------------*
1593 :h3. Wrong type on the right side 2 - Parallel mode
1594 .*---------------------------------------------------------------------*
1597 <TC - Wrong type on the right side 2 - Parallel mode>
1601 <MODULE TTCN Temp Temp.ttcn>
1603 modulepar F2 tsp_1 :={ f3:="default"};
1604 type record F2 { charstring f3};
1608 <MODULE CFG Temp Temp.cfg>
1611 DEF_1:={ f3:=${DEF_1_f} }
1615 <RESULT IF_PASS COUNT 2>
1616 Error while setting parameter field
1622 .*---------------------------------------------------------------------*
1623 :h3. Wrong type on the right side 3 - Parallel mode
1624 .*---------------------------------------------------------------------*
1627 <TC - Wrong type on the right side 3 - Parallel mode>
1631 <MODULE TTCN Temp Temp.ttcn>
1633 modulepar F2 tsp_1 :={ f3:="default"};
1634 type record F2 { charstring f3};
1638 <MODULE CFG Temp Temp.cfg>
1641 DEF_1:={ f3:=${DEF_1_f} }
1645 <RESULT IF_PASS COUNT 2>
1646 Error while setting parameter field
1652 .*---------------------------------------------------------------------*
1653 :h3. Wrong type on the right side 4 - Parallel mode
1654 .*---------------------------------------------------------------------*
1657 <TC - Wrong type on the right side 4 - Parallel mode>
1661 <MODULE TTCN Temp Temp.ttcn>
1663 modulepar F2 tsp_1 :={ f3:="default"};
1664 type record F2 { charstring f3};
1668 <MODULE CFG Temp Temp.cfg>
1671 DEF_1:={ f3:=${DEF_1_f} }
1677 <RESULT IF_PASS COUNT 2>
1678 Error while setting parameter field
1685 .*---------------------------------------------------------------------*
1686 :h3. Wrong type on the right side 5 - Parallel mode
1687 .*---------------------------------------------------------------------*
1690 <TC - Wrong type on the right side 5 - Parallel mode>
1694 <MODULE TTCN Temp Temp.ttcn>
1696 modulepar F2 tsp_1 :={ f3:="default"};
1697 type record F2 { charstring f3};
1701 <MODULE CFG Temp Temp.cfg>
1704 DEF_1:={ f3:=${DEF_1_f} }
1708 <RESULT IF_PASS COUNT 2>
1709 Error while setting parameter field
1716 .*---------------------------------------------------------------------*
1717 :h3. Wrong type on the right side 6 - Parallel mode
1718 .*---------------------------------------------------------------------*
1721 <TC - Wrong type on the right side 6 - Parallel mode>
1725 <MODULE TTCN Temp Temp.ttcn>
1727 modulepar F2 tsp_1 :={ f3:="default"};
1728 type record F2 { charstring f3};
1732 <MODULE CFG Temp Temp.cfg>
1735 DEF_1:={ f3:=\"${DEF_1_f}\" }
1741 <RESULT IF_PASS COUNT 1>
1742 Parse error while pre-processing configuration file
1748 .*---------------------------------------------------------------------*
1749 :h3. Empty string on the right side 7 - Parallel mode
1750 .*---------------------------------------------------------------------*
1753 <TC - Empty string on the right side 7 - Parallel mode>
1757 <MODULE TTCN Temp Temp.ttcn>
1759 modulepar F2 tsp_1 :={ f3:="default"};
1760 type record F2 { charstring f3};
1764 <MODULE CFG Temp Temp.cfg>
1772 <RESULT IF_PASS COUNT 0>
1779 .*---------------------------------------------------------------------*
1780 :h3. Empty string on the right side 8 - Parallel mode
1781 .*---------------------------------------------------------------------*
1784 <TC - Empty string on the right side 8 - Parallel mode>
1788 <MODULE TTCN Temp Temp.ttcn>
1790 modulepar F2 tsp_1 :={ f3:="default"};
1791 type record F2 { charstring f3};
1795 <MODULE CFG Temp Temp.cfg>
1798 DEF_1:={ f3:= ${DEF_1_f} }
1803 <RESULT IF_PASS COUNT 1>
1804 Parse error .*at or before token `}': syntax error, unexpected '}'
1810 .*---------------------------------------------------------------------*
1812 .*---------------------------------------------------------------------*
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
1820 .*---------------------------------------------------------------------*
1822 .*---------------------------------------------------------------------*
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
1832 .*---------------------------------------------------------------------*
1834 .*---------------------------------------------------------------------*
1836 :li D='TITAN'.Ericsson's TTCN-3 Test Environment