ItsGeoNetworking_TestControl.ttcn 14 KB
Newer Older
filatov's avatar
filatov committed
1
/**
garciay's avatar
garciay committed
2
 *  @author     ETSI / STF405 / STF449 / STF484
filatov's avatar
filatov committed
3
4
5
 *  @version    $URL$
 *              $Id$
 *  @desc       Test Control file for GeoNetworking
garciay's avatar
garciay committed
6
7
8
9
 *  @copyright   ETSI Copyright Notification
 *               No part may be reproduced except as authorized by written permission.
 *               The copyright and the foregoing restriction extend to reproduction in all media.
 *               All rights reserved.
filatov's avatar
filatov committed
10
11
12
13
14
15
16
 *
 */
module ItsGeoNetworking_TestControl {
    
    // ATS GeoNetworking
    import from ItsGeoNetworking_TestCases {testcase all};
    
17
    // LibItsGeoNetworking
filatov's avatar
filatov committed
18
19
20
21
22
23
    import from LibItsGeoNetworking_Pics all;
    import from LibItsGeoNetworking_TypesAndValues all;
    
    // Test Execution
    control {
        
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
        /* FDV */
        
        if(PICS_GN_BASIC_HEADER) {
            execute(TC_GEONW_FDV_BAH_BV_01());
            execute(TC_GEONW_FDV_BAH_BI_02());
        }

        if(PICS_GN_COMMON_HEADER) {
            execute(TC_GEONW_FDV_COH_BV_01());
            execute(TC_GEONW_FDV_COH_BV_02());
            execute(TC_GEONW_FDV_COH_BV_03());
            execute(TC_GEONW_FDV_COH_BO_04());
        }        
        
        if(PICS_GN_BEACON_SRC) {
            execute(TC_GEONW_FDV_BEA_BV_01());
            execute(TC_GEONW_FDV_BEA_BV_02());
            execute(TC_GEONW_FDV_BEA_BV_03());
            execute(TC_GEONW_FDV_BEA_BV_04());
        }
        
        if(PICS_GN_GUC_SRC) {
	        execute(TC_GEONW_FDV_GUC_BV_01());
        }
        
        if(PICS_GN_GBC_SRC) {
    	    execute(TC_GEONW_FDV_GBC_BV_01());
        }
        
        if(PICS_GN_GAC_SRC) {
        	execute(TC_GEONW_FDV_GAC_BV_01());
        }
        
        if(PICS_GN_SHB_SRC) {
        	execute(TC_GEONW_FDV_SHB_BV_01());
        }
        
        if(PICS_GN_TSB_SRC) {
        	execute(TC_GEONW_FDV_TSB_BV_01());
        }

		/* PON/LOT */

        if(PICS_GN_GUC_SRC and PICS_GN_BEACON_DST) {
        	execute(TC_GEONW_PON_LOT_BV_01());
        }
        
        if(PICS_GN_LS_REQ_SRC and PICS_GN_LS_REP_DST) {
        	execute(TC_GEONW_PON_LOT_BV_02());
        }
        
        if(PICS_GN_BEACON_DST) {
        	execute(TC_GEONW_PON_LOT_BV_03_01());
        }
        
        if(PICS_GN_GUC_DST) {
        	execute(TC_GEONW_PON_LOT_BV_03_02());
        }
        
        if(PICS_GN_GAC_DST) {
        	execute(TC_GEONW_PON_LOT_BV_03_03());
        }
        
        if(PICS_GN_GBC_DST) {
        	execute(TC_GEONW_PON_LOT_BV_03_04());
        }
        
        if(PICS_GN_TSB_DST) {
        	execute(TC_GEONW_PON_LOT_BV_03_05());
        }
        
        if(PICS_GN_SHB_DST) {
        	execute(TC_GEONW_PON_LOT_BV_03_06());
        }
        
        if(PICS_GN_LS_REQ_DST) {
        	execute(TC_GEONW_PON_LOT_BV_03_07());
        }
        
        if(PICS_GN_LS_REP_DST) {
        	execute(TC_GEONW_PON_LOT_BV_03_08());
        }
        
        if(PICS_GN_LS_REQ_SRC) {
        	execute(TC_GEONW_PON_LOT_BV_04());
        }
        
        if(PICS_GN_GUC_DST) {
        	execute(TC_GEONW_PON_LOT_BV_05_01());
        }
        
        if(PICS_GN_GAC_DST) {
        	execute(TC_GEONW_PON_LOT_BV_05_02());
        }
        
        if(PICS_GN_GBC_DST) {
        	execute(TC_GEONW_PON_LOT_BV_05_03());
        }
        
        if(PICS_GN_TSB_DST) {
        	execute(TC_GEONW_PON_LOT_BV_05_04());
        }
        
        if(PICS_GN_SHB_DST) {
        	execute(TC_GEONW_PON_LOT_BV_05_05());
        }
        
        if(PICS_GN_LS_REQ_DST) {
        	execute(TC_GEONW_PON_LOT_BV_05_06());
        }
        
        if(PICS_GN_LS_REP_DST) {
       		execute(TC_GEONW_PON_LOT_BV_05_07());
        }
        
        /* PON/LPV */
        
        if(PICS_GN_BEACON_SRC) {
        	execute(TC_GEONW_PON_LPV_BV_01());
        }
        
        /* PON/SQN */
        
        if(PICS_GN_GBC_SRC) {
            execute(TC_GEONW_PON_SQN_BV_01());
            execute(TC_GEONW_PON_SQN_BV_02());
        }
        
        /* PON/LOS */
        
        if(PICS_GN_LS_REQ_SRC) {
            execute(TC_GEONW_PON_LOS_BV_01());
            execute(TC_GEONW_PON_LOS_BV_02());
	        if(PICS_GN_LS_REP_DST) {
                execute(TC_GEONW_PON_LOS_BV_03());
                execute(TC_GEONW_PON_LOS_BV_04());
	        }
            execute(TC_GEONW_PON_LOS_BV_05());
        }
        
        if(PICS_GN_LS_REQ_RETRANSMISSION) {
            execute(TC_GEONW_PON_LOS_TI_06());
            execute(TC_GEONW_PON_LOS_BV_07());
        }
        
        if(PICS_GN_LS_REQ_DST) {
            execute(TC_GEONW_PON_LOS_BV_08());
            execute(TC_GEONW_PON_LOS_BO_09());
        }
        
        if(PICS_GN_LS_FWD) {
filatov's avatar
filatov committed
175
176
        execute(TC_GEONW_PON_LOS_BV_10());
        execute(TC_GEONW_PON_LOS_BV_11());
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
        }
        
        if(PICS_GN_LS_REQ_SRC) {
            execute(TC_GEONW_PON_LOS_BV_12());
            execute(TC_GEONW_PON_LOS_BV_13());
            execute(TC_GEONW_PON_LOS_BV_14());
            execute(TC_GEONW_PON_LOS_BV_15());
            execute(TC_GEONW_PON_LOS_BV_16());
            execute(TC_GEONW_PON_LOS_BV_17());
        }
        
        /* PON/FPB */
        
        if(PICS_GN_GUC_SRC) {
            execute(TC_GEONW_PON_FPB_BV_01());
            execute(TC_GEONW_PON_FPB_BV_02());
            execute(TC_GEONW_PON_FPB_BV_03());
            execute(TC_GEONW_PON_FPB_BV_04());
        }
        
        if(PICS_GN_TSB_SRC) {
            execute(TC_GEONW_PON_FPB_BV_06());
            execute(TC_GEONW_PON_FPB_BV_07());
            execute(TC_GEONW_PON_FPB_BV_08());
        }
        
        if(PICS_GN_GUC_SRC) {
        	execute(TC_GEONW_PON_FPB_BV_09());
        }
        
        if(PICS_GN_TSB_SRC) {
        	execute(TC_GEONW_PON_FPB_BV_10());
        }
        
        if(PICS_GN_GUC_SRC) {
        	execute(TC_GEONW_PON_FPB_BV_11_01());
        }
        
        if(PICS_GN_GAC_SRC) {
        	execute(TC_GEONW_PON_FPB_BV_11_02());
        }
        
        if(PICS_GN_GBC_SRC) {
        	execute(TC_GEONW_PON_FPB_BV_11_03());
        }
        
        if(PICS_GN_TSB_SRC) {
        	execute(TC_GEONW_PON_FPB_BV_11_04());
        }
        
        if(PICS_GN_SHB_SRC) {
        	execute(TC_GEONW_PON_FPB_BV_11_05());
        }
        
        if(PICS_GN_GUC_SRC) {
filatov's avatar
filatov committed
232
        execute(TC_GEONW_PON_FPB_BV_12_01());
233
234
235
        }
        
        if(PICS_GN_GAC_SRC) {
filatov's avatar
filatov committed
236
        execute(TC_GEONW_PON_FPB_BV_12_02());
237
238
239
        }
        
        if(PICS_GN_GBC_SRC) {
filatov's avatar
filatov committed
240
        execute(TC_GEONW_PON_FPB_BV_12_03());
241
242
243
        }
        
        if(PICS_GN_TSB_SRC) {
filatov's avatar
filatov committed
244
        execute(TC_GEONW_PON_FPB_BV_12_04());
245
246
247
248
249
250
251
252
253
        }
        
        /* PON/GNA */
        
        if(PICS_GN_ADDR_AUTO) {
            if (PICS_GN_LOCAL_ADDR_CONF_METHOD == e_auto) {
                execute(TC_GEONW_PON_GNA_BV_01());
            }
        }
filatov's avatar
filatov committed
254
        
255
256
        if(PICS_GN_DAD) {
	        execute(TC_GEONW_PON_GNA_BV_02());
filatov's avatar
filatov committed
257
258
        }
        
259
        /* PON/BEA */
filatov's avatar
filatov committed
260
        
261
262
263
        if(PICS_GN_BEACON_SRC) {
            execute(TC_GEONW_PON_BEA_TI_01());
            execute(TC_GEONW_PON_BEA_TI_02());
filatov's avatar
filatov committed
264
        }
265
266
267
268
269
270
271
272
273
274
275
        
        /* PON/GUC */
        
        if(PICS_GN_GUC_SRC) {
            if ((PICS_GN_GEOUNICAST_FORWARDING_ALGORITHM == e_greedy) or (PICS_GN_GEOUNICAST_FORWARDING_ALGORITHM == e_unspecified)) {
                execute(TC_GEONW_PON_GUC_BV_01());
            }
            
            if (PICS_GN_GEOUNICAST_FORWARDING_ALGORITHM == e_cbf) {
                execute(TC_GEONW_PON_GUC_BV_11());
            }            
276
        }
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303

        if(PICS_GN_GUC_FWD) {
            if ((PICS_GN_GEOUNICAST_FORWARDING_ALGORITHM == e_greedy) or (PICS_GN_GEOUNICAST_FORWARDING_ALGORITHM == e_unspecified)) {
	            execute(TC_GEONW_PON_GUC_BV_02());
            }
            
            execute(TC_GEONW_PON_GUC_BV_03());
            execute(TC_GEONW_PON_GUC_BO_04());

            if (PICS_GN_GEOUNICAST_FORWARDING_ALGORITHM == e_cbf) {
                execute(TC_GEONW_PON_GUC_BV_06());
                execute(TC_GEONW_PON_GUC_BV_07());
                execute(TC_GEONW_PON_GUC_BV_08());
                execute(TC_GEONW_PON_GUC_BV_10());
            }
            
            if ((PICS_GN_GEOUNICAST_FORWARDING_ALGORITHM == e_greedy) or (PICS_GN_GEOUNICAST_FORWARDING_ALGORITHM == e_unspecified)) {
                execute(TC_GEONW_PON_GUC_BO_12());
            }
        }

        if(PICS_GN_GUC_DST) {
	        execute(TC_GEONW_PON_GUC_BV_05());
       
            if ((PICS_GN_GEOUNICAST_FORWARDING_ALGORITHM == e_greedy) or (PICS_GN_GEOUNICAST_FORWARDING_ALGORITHM == e_unspecified)) {
	            execute(TC_GEONW_PON_GUC_BO_13());
            }
filatov's avatar
filatov committed
304
305
        }
        
306
307
308
309
310
311
312
313
314
315
316
317
318
        /* PON/GBC */        
        
        if(PICS_GN_GBC_SRC) {
            execute(TC_GEONW_PON_GBC_BV_01());
            if ((PICS_GN_GEOBROADCAST_FORWARDING_ALGORITHM == e_simple) or (PICS_GN_GEOBROADCAST_FORWARDING_ALGORITHM == e_unspecified) or (PICS_GN_GEOBROADCAST_FORWARDING_ALGORITHM == e_advanced)) {
            	execute(TC_GEONW_PON_GBC_BV_02());
            }
            if ((PICS_GN_GEOBROADCAST_FORWARDING_ALGORITHM == e_simple) or (PICS_GN_GEOBROADCAST_FORWARDING_ALGORITHM == e_unspecified)) {
                execute(TC_GEONW_PON_GBC_BV_03());
            }
            if (PICS_GN_GEOBROADCAST_FORWARDING_ALGORITHM == e_cbf) {
                execute(TC_GEONW_PON_GBC_BV_12());
            }
319
        }
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334

        if(PICS_GN_GBC_FWD) {        
            if ((PICS_GN_GEOBROADCAST_FORWARDING_ALGORITHM == e_simple) or (PICS_GN_GEOBROADCAST_FORWARDING_ALGORITHM == e_unspecified)) {
            	execute(TC_GEONW_PON_GBC_BO_04());
            }
            execute(TC_GEONW_PON_GBC_BV_05());
            if ((PICS_GN_GEOBROADCAST_FORWARDING_ALGORITHM == e_simple) or (PICS_GN_GEOBROADCAST_FORWARDING_ALGORITHM == e_unspecified)) {
                execute(TC_GEONW_PON_GBC_BO_06());
            }
            execute(TC_GEONW_PON_GBC_BV_07());
            execute(TC_GEONW_PON_GBC_BV_08());
            execute(TC_GEONW_PON_GBC_BV_11());
            execute(TC_GEONW_PON_GBC_BO_19());
            execute(TC_GEONW_PON_GBC_BV_20());
            execute(TC_GEONW_PON_GBC_BV_21());
filatov's avatar
filatov committed
335
        }
336
337
338
339
340
341
342
343
344
345
346
347

        if(PICS_GN_GBC_DST) {
            execute(TC_GEONW_PON_GBC_BV_09());
            if ((PICS_GN_GEOBROADCAST_FORWARDING_ALGORITHM == e_simple) or (PICS_GN_GEOBROADCAST_FORWARDING_ALGORITHM == e_unspecified)) {
            	execute(TC_GEONW_PON_GBC_BO_10());
            }
        }
        
        /* PON/TSB */

        if(PICS_GN_TSB_SRC) {        
        	execute(TC_GEONW_PON_TSB_BV_01());
filatov's avatar
filatov committed
348
        }
349

350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
        if(PICS_GN_TSB_FWD) {        
            execute(TC_GEONW_PON_TSB_BV_02());
            execute(TC_GEONW_PON_TSB_BO_03());
            execute(TC_GEONW_PON_TSB_BV_04());
            execute(TC_GEONW_PON_TSB_BO_05());
        }
        if(PICS_GN_TSB_DST) {        
            execute(TC_GEONW_PON_TSB_BV_06());
            execute(TC_GEONW_PON_TSB_BO_07());
        }
        
        /* PON/SHB */
        
        if(PICS_GN_SHB_SRC) {
            execute(TC_GEONW_PON_SHB_BV_01());
        }
        if(PICS_GN_SHB_DST) {        
            execute(TC_GEONW_PON_SHB_BV_02());
        }
        
        /* PON/GAC */

        if(PICS_GN_GAC_SRC) {        
            execute(TC_GEONW_PON_GAC_BV_01());
            if ((PICS_GN_GEOBROADCAST_FORWARDING_ALGORITHM == e_simple) or (PICS_GN_GEOBROADCAST_FORWARDING_ALGORITHM == e_unspecified)) {
            	execute(TC_GEONW_PON_GAC_BV_02());
            }
            if (PICS_GN_GEOBROADCAST_FORWARDING_ALGORITHM == e_cbf) {
                execute(TC_GEONW_PON_GAC_BV_13());
            }            
        }

        if(PICS_GN_GAC_FWD) {        
            execute(TC_GEONW_PON_GAC_BV_03());
            execute(TC_GEONW_PON_GAC_BV_04());
            execute(TC_GEONW_PON_GAC_BO_05());
            execute(TC_GEONW_PON_GAC_BV_06());
            execute(TC_GEONW_PON_GAC_BO_07());
            execute(TC_GEONW_PON_GAC_BO_11());
        }

        if(PICS_GN_GAC_DST) {        
            execute(TC_GEONW_PON_GAC_BV_08());
            execute(TC_GEONW_PON_GAC_BO_09());
            execute(TC_GEONW_PON_GAC_BV_10());
        }
        
		/* PON/BCA */

        if(PICS_GN_GBC_FWD) {        
            if (PICS_GN_GEOBROADCAST_FORWARDING_ALGORITHM == e_cbf) {
401
                execute(TC_GEONW_PON_BCA_BV_01());
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
                execute(TC_GEONW_PON_BCA_BV_02());
                execute(TC_GEONW_PON_BCA_BV_03());
                execute(TC_GEONW_PON_BCA_BO_04());
                execute(TC_GEONW_PON_BCA_BV_05());
                execute(TC_GEONW_PON_BCA_BV_06());
				execute(TC_GEONW_PON_BCA_BV_07());
                execute(TC_GEONW_PON_BCA_BV_08());
            }
        }
        
        /* PON/BAA */
        
        if(PICS_GN_GBC_FWD) {
            if (PICS_GN_GEOBROADCAST_FORWARDING_ALGORITHM == e_advanced) {
                execute(TC_GEONW_PON_BAA_BV_01());
                execute(TC_GEONW_PON_BAA_BV_02());
                execute(TC_GEONW_PON_BAA_BV_03());
                execute(TC_GEONW_PON_BAA_BV_04());
                execute(TC_GEONW_PON_BAA_BV_05());
                execute(TC_GEONW_PON_BAA_BV_06());
                execute(TC_GEONW_PON_BAA_BV_07());
                execute(TC_GEONW_PON_BAA_BO_08());
                execute(TC_GEONW_PON_BAA_BV_09());
                execute(TC_GEONW_PON_BAA_BV_10());
                execute(TC_GEONW_PON_BAA_BV_11());
            }
        }
                
        /* CAP */       
        
        if(PICS_GN_LS_REQ_SRC) {         
        	execute(TC_GEONW_CAP_LOS_BV_01());
        }
        
        if(PICS_GN_GUC_FWD) {        
        	execute(TC_GEONW_CAP_FPB_BV_01());
        }
      
        if(PICS_GN_GBC_FWD) {
      	  execute(TC_GEONW_CAP_FPB_BV_02());
        }
filatov's avatar
filatov committed
443
444
445
        
    }
    
446
} // end ItsGeoNetworking_TestControl