Harald Welte | 96a33b0 | 2018-02-04 10:36:22 +0100 | [diff] [blame^] | 1 | module SGSN_Tests { |
| 2 | |
| 3 | import from General_Types all; |
| 4 | import from Osmocom_Types all; |
| 5 | import from NS_Types all; |
| 6 | import from NS_Emulation all; |
| 7 | import from BSSGP_Types all; |
| 8 | import from BSSGP_Emulation all; |
| 9 | |
| 10 | type component test_CT { |
| 11 | var NS_CT vc_NS; |
| 12 | |
| 13 | var BSSGP_CT vc_BSSGP; |
| 14 | port BSSGP_PT BSSGP; |
| 15 | |
| 16 | var boolean g_initialized := false; |
| 17 | }; |
| 18 | |
| 19 | function f_init() runs on test_CT { |
| 20 | if (g_initialized == true) { |
| 21 | return; |
| 22 | } |
| 23 | g_initialized := true; |
| 24 | |
| 25 | vc_NS := NS_CT.create; |
| 26 | vc_BSSGP := BSSGP_CT.create; |
| 27 | /* connect our BSSGP port to upper end of BSSGP emulation */ |
| 28 | connect(self:BSSGP, vc_BSSGP:BSSGP_SP); |
| 29 | /* connect lower end of BSSGP emulation with NS upper port */ |
| 30 | connect(vc_BSSGP:BSCP, vc_NS:NS_SP); |
| 31 | /* connect lower end of NS emulation to NS codec port (on top of IPL4) */ |
| 32 | map(vc_NS:NSCP, system:NS_CODEC_PORT); |
| 33 | |
| 34 | vc_NS.start(NSStart()); |
| 35 | vc_BSSGP.start(BssgpStart(false)); |
| 36 | } |
| 37 | |
| 38 | /* TODO: |
| 39 | * RAU without Attach |
| 40 | * Detach without Attach |
| 41 | * SM procedures without attach / RAU |
| 42 | * ATTACH / RAU |
| 43 | ** with / without authentication |
| 44 | ** with / without P-TMSI allocation |
| 45 | ** timeout from HLR on SAI |
| 46 | ** timeout from HLR on UL |
| 47 | ** reject from HLR on SAI |
| 48 | ** reject from HLR on UL |
| 49 | * re-transmissions of LLC frames |
| 50 | * PDP Context activation |
| 51 | ** with different GGSN config in SGSN VTY |
| 52 | ** with different PDP context type (v4/v6/v46) |
| 53 | ** timeout from GGSN |
| 54 | ** reject from GGSN |
| 55 | */ |
| 56 | |
| 57 | testcase TC_wait_ns_up() runs on test_CT { |
| 58 | f_init(); |
| 59 | f_sleep(20.0); |
| 60 | } |
| 61 | |
| 62 | |
| 63 | //control { } |
| 64 | |
| 65 | |
| 66 | |
| 67 | } |