ItsGeoNetworking_TestControl.ttcn 13.9 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
        
berge's avatar
berge committed
266
267
268
269
270
271
272
273
274
275
276
277
278
        /* PON/GUC */        
		if(PICS_GN_GUC) {
			
			if(PICS_GN_GUC_FWD) {
        		execute(TC_GEONW_PON_GUC_ALL_BV_03());
        		execute(TC_GEONW_PON_GUC_ALL_BO_04());
				execute(TC_GEONW_PON_GUC_ALL_BV_06());
			}
			
			if(PICS_GN_GUC_DST) {
        		execute(TC_GEONW_PON_GUC_ALL_BV_05());
        		execute(TC_GEONW_PON_GUC_ALL_BO_08());
			}
279

berge's avatar
berge committed
280
281
282
283
284
285
286
287
288
289
            if((PICS_GN_NON_AREA_FORWARDING_ALGORITHM == e_greedy) or (PICS_GN_NON_AREA_FORWARDING_ALGORITHM == e_unspecified)) {
    	
				if(PICS_GN_GUC_SRC) {
                    execute(TC_GEONW_PON_GUC_GRD_BV_01());                    
				}
				
				if(PICS_GN_GUC_FWD) {
                    execute(TC_GEONW_PON_GUC_GRD_BV_02());
                    execute(TC_GEONW_PON_GUC_GRD_BO_07());
				}
290
            }
berge's avatar
berge committed
291
292
293
294
295
296
297
298
299
300
301
302
303
304
    
            if(PICS_GN_NON_AREA_FORWARDING_ALGORITHM == e_cbf) {
            	
				if(PICS_GN_GUC_SRC) {	
            		execute(TC_GEONW_PON_GUC_CBF_BV_01());
				}
            	
				if(PICS_GN_GUC_FWD) {	
            		execute(TC_GEONW_PON_GUC_CBF_BV_02());
            		execute(TC_GEONW_PON_GUC_CBF_BV_07());
            		execute(TC_GEONW_PON_GUC_CBF_BV_20());
            		execute(TC_GEONW_PON_GUC_CBF_BV_21());
            		execute(TC_GEONW_PON_GUC_CBF_BV_22());
				}
305
            }
berge's avatar
berge committed
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
    		
        }
        
        /* PON/GBC */             
		if(PICS_GN_GBC) {
			
			if(PICS_GN_GBC_FWD) {
				execute(TC_GEONW_PON_GBC_NONAREA_ALL_BV_03());
    			execute(TC_GEONW_PON_GBC_NONAREA_ALL_BV_04());
    			execute(TC_GEONW_PON_GBC_NONAREA_ALL_BV_06());
    			execute(TC_GEONW_PON_GBC_NONAREA_ALL_BO_09());
    			execute(TC_GEONW_PON_GBC_NONAREA_ALL_BO_10());
			}
    
            if((PICS_GN_NON_AREA_FORWARDING_ALGORITHM == e_greedy) or (PICS_GN_NON_AREA_FORWARDING_ALGORITHM == e_unspecified)) {
    
				if(PICS_GN_GBC_SRC) {
                    execute(TC_GEONW_PON_GBC_NONAREA_GRD_BV_01());
				}
				
				if(PICS_GN_GBC_FWD) {
        			execute(TC_GEONW_PON_GBC_NONAREA_GRD_BV_02());
        			execute(TC_GEONW_PON_GBC_NONAREA_GRD_BO_07());
				}
330
            }
berge's avatar
berge committed
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
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
                
			if(PICS_GN_NON_AREA_FORWARDING_ALGORITHM == e_cbf) {
				
				if(PICS_GN_GBC_SRC) {
					execute(TC_GEONW_PON_GBC_NONAREA_CBF_BV_01());
				}
				
				if(PICS_GN_GBC_FWD) {
					execute(TC_GEONW_PON_GBC_NONAREA_CBF_BV_02());
    			    execute(TC_GEONW_PON_GBC_NONAREA_CBF_BV_07());
        			execute(TC_GEONW_PON_GBC_NONAREA_CBF_BV_20());
        			execute(TC_GEONW_PON_GBC_NONAREA_CBF_BV_21());
        			execute(TC_GEONW_PON_GBC_NONAREA_CBF_BV_22());
    			}
			}
            
			if(PICS_GN_GBC_SRC) {    
			    execute(TC_GEONW_PON_GBC_AREA_ALL_BV_01());
			}
			
			if(PICS_GN_GBC_FWD) {
    			execute(TC_GEONW_PON_GBC_AREA_ALL_BV_03());
    			execute(TC_GEONW_PON_GBC_AREA_ALL_BV_04());
			}
			
			if(PICS_GN_GBC_DST) {
    			execute(TC_GEONW_PON_GBC_AREA_ALL_BV_05());
    			execute(TC_GEONW_PON_GBC_AREA_ALL_BO_08());
			}
    
			if((PICS_GN_AREA_FORWARDING_ALGORITHM == e_simple) or (PICS_GN_AREA_FORWARDING_ALGORITHM == e_unspecified)) {
    
				if(PICS_GN_GBC_FWD) {
    			    execute(TC_GEONW_PON_GBC_AREA_SMP_BV_02());
    			    execute(TC_GEONW_PON_GBC_AREA_SMP_BO_07());
				}
			}
			
			if(PICS_GN_AREA_FORWARDING_ALGORITHM == e_cbf) {
				
				if(PICS_GN_GBC_FWD) {
        			execute(TC_GEONW_PON_GBC_AREA_CBF_BV_02());
        			execute(TC_GEONW_PON_GBC_AREA_CBF_BV_07());
        			execute(TC_GEONW_PON_GBC_AREA_CBF_BV_21());
        			execute(TC_GEONW_PON_GBC_AREA_CBF_BV_22());
				}
    		}
			
			if(PICS_GN_AREA_FORWARDING_ALGORITHM == e_advanced) {
				
				if(PICS_GN_GBC_FWD) {
        			execute(TC_GEONW_PON_GBC_AREA_ADV_BV_21());
        			execute(TC_GEONW_PON_GBC_AREA_ADV_BV_23());
        			execute(TC_GEONW_PON_GBC_AREA_ADV_BV_24());
        			execute(TC_GEONW_PON_GBC_AREA_ADV_BV_25());
        			execute(TC_GEONW_PON_GBC_AREA_ADV_BV_26());
        			execute(TC_GEONW_PON_GBC_AREA_ADV_BV_27());
        			execute(TC_GEONW_PON_GBC_AREA_ADV_BV_28());
        			execute(TC_GEONW_PON_GBC_AREA_ADV_BV_29());
				}
			}
		}
393
394
        
        /* PON/TSB */
berge's avatar
berge committed
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
		if(PICS_GN_TSB) {
			
			if(PICS_GN_TSB_SRC) {
			    execute(TC_GEONW_PON_TSB_BV_01());
			}
			
			if(PICS_GN_TSB_FWD) {
    			execute(TC_GEONW_PON_TSB_BV_02());
    			execute(TC_GEONW_PON_TSB_BV_03());
    			execute(TC_GEONW_PON_TSB_BO_04());
    			execute(TC_GEONW_PON_TSB_BO_07());    			
			}
			
			if(PICS_GN_TSB_DST) {
			    execute(TC_GEONW_PON_TSB_BV_05());
				execute(TC_GEONW_PON_TSB_BO_08());
			}
		}
413
414
415

        
        /* PON/SHB */
berge's avatar
berge committed
416
417
418
419
420
421
422
423
424
425
426
		if(PICS_GN_SHB) {
    
    		if(PICS_GN_SHB_SRC) {
			    execute(TC_GEONW_PON_SHB_BV_01());
			}
	
			if(PICS_GN_SHB_DST) {
			    execute(TC_GEONW_PON_SHB_BV_05());
			}
		}
		        
427
428
        
        /* PON/GAC */
berge's avatar
berge committed
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
		if(PICS_GN_GAC) {
			
			if(PICS_GN_GAC_FWD) {
    			execute(TC_GEONW_PON_GAC_NONAREA_ALL_BV_03());
    			execute(TC_GEONW_PON_GAC_NONAREA_ALL_BO_04());
    			execute(TC_GEONW_PON_GAC_NONAREA_ALL_BV_06());
    			execute(TC_GEONW_PON_GAC_NONAREA_ALL_BO_09());
    			execute(TC_GEONW_PON_GAC_NONAREA_ALL_BV_10());
			}
    
			if((PICS_GN_NON_AREA_FORWARDING_ALGORITHM == e_greedy) or (PICS_GN_NON_AREA_FORWARDING_ALGORITHM == e_unspecified)) {
				
				if(PICS_GN_GAC_SRC) {
			        execute(TC_GEONW_PON_GAC_NONAREA_GRD_BV_01());
				}
				
				if(PICS_GN_GAC_FWD) {
        			execute(TC_GEONW_PON_GAC_NONAREA_GRD_BV_02());
        			execute(TC_GEONW_PON_GAC_NONAREA_GRD_BO_07());
				}
			}
			
			if(PICS_GN_NON_AREA_FORWARDING_ALGORITHM == e_cbf) {
				
				if(PICS_GN_GAC_SRC) {
        			execute(TC_GEONW_PON_GAC_NONAREA_CBF_BV_01());
				}
				
				if(PICS_GN_GAC_FWD) {
        			execute(TC_GEONW_PON_GAC_NONAREA_CBF_BV_02());
        			execute(TC_GEONW_PON_GAC_NONAREA_CBF_BV_07());
        			execute(TC_GEONW_PON_GAC_NONAREA_CBF_BV_20());
        			execute(TC_GEONW_PON_GAC_NONAREA_CBF_BV_21());
        			execute(TC_GEONW_PON_GAC_NONAREA_CBF_BV_22());
				}
			}
			         
			if(PICS_GN_GAC_SRC) {   
    			execute(TC_GEONW_PON_GAC_AREA_ALL_BV_01());
			}
			
			if(PICS_GN_GAC_FWD) {
    			execute(TC_GEONW_PON_GAC_AREA_ALL_BV_02());
			}
			
			if(PICS_GN_GAC_DST) {
    			execute(TC_GEONW_PON_GAC_AREA_ALL_BV_05());
    			execute(TC_GEONW_PON_GAC_AREA_ALL_BO_08());
			}
		}
479
480
481
482
483
484
485
486
487
488
489
490
491
492
                
        /* 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
493
494
495
        
    }
    
496
} // end ItsGeoNetworking_TestControl