aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2019-12-31GSM_RR_Types.ttcn: Support encoding of EGPRS Packet Uplink AssignmentPau Espin Pedrol1-1/+123
Change-Id: Idf3bd12318480e8cdd26fce35e52d0a9e8c39608
2019-12-31RLCMAC_CSN1_Types.ttcn: Support encoding of MS Radio Access Capability 2Pau Espin Pedrol2-1/+6
Change-Id: Iac7d7b694bc44887443418f755e51d636abe8575
2019-12-30pcu: Move NS tests to PCU_Tests_RAW_NS.ttcnPau Espin Pedrol4-386/+458
Tests from PCU_Tests_RAW_SNS inherit most infrastructure from NS tests defined in PCU_Tests_RAW, which in turn don't share that much with other tests present in that file. This way we simplify file PCU_Tests_RAW.ttcn, which will potentially grow once more tests are added. Change-Id: If680d1bd7dbfe98829f330c33705e0f13bedf3c7
2019-12-23pcu: Pass correct fn to ts_PCUIF_DATA_CNFPau Espin Pedrol1-1/+1
Change-Id: I68fc0e3dba2cdadbe479017f31868f6dd0dabe9f
2019-12-23pcu: Introduce tests for CS and PS paging from SGSN/GbPau Espin Pedrol3-0/+171
CS Gb paging and PTP CS/PS paging implemented in osmo-pcu: I9501e02e1d7f6944497e724dbccb9a19c3f5221f I5c52b5af740460c48bb3ba858243b1d20e624268 Related: OS#3927, OS#2406 Change-Id: I90b5a792c1d91e38ea7b8c060ff0b459673df951
2019-12-17msc: Remove trailing whitespacePau Espin Pedrol2-3/+1
Change-Id: I934dd3504fa91e2006fbc9b1133836060eb0591e
2019-12-17pcu: add TC_paging_cs_from_btsOliver Smith3-4/+111
1. BTS send a CS paging Request over pcu socket 2. Expect a CS paging frame Related: OS#3927 Change-Id: Ia3ad503c243c9b3b162e204683fa4fa5447bbab3
2019-12-17pcu: Introduce test TC_t3193Pau Espin Pedrol2-0/+91
Change-Id: Ib11cd1793d985ff609b10b0e60bddadd5fcfa6d2
2019-12-17pcu: Introduce test TC_imm_ass_dl_block_retransPau Espin Pedrol1-0/+55
Change-Id: Icc60cebb8583c9dc97b658def69f17e6efced384
2019-12-17pcu: Introduce helpers to update AckNackDescriptionPau Espin Pedrol1-8/+41
Change-Id: Ic62ab9e4a854239b95c434068543d95c5352f1c6
2019-12-17pcu: send UL CONTROL ACK triggered by DL ACK/NACKPau Espin Pedrol1-7/+15
Change-Id: Ib409394257427cfc62da08fe06ce6c001dcf608a
2019-12-12msc: expect only one Paging on GERANNeels Hofmeyr1-2/+28
After discussion on this thread: http://lists.osmocom.org/pipermail/openbsc/2019-November/013058.html Do not expect repeated Paging on GERAN. Pending clarification on 3G, still expect repeated Paging on Iu, though we are not 100% certain that this is indeed required. Fixes MSC_Tests.TC_lu_and_mt_sms_paging_repeated, but not MSC_Tests_Iu.TC_iu_lu_and_mt_sms_paging_repeated Change-Id: Ie914ea88f31ac158f4bd1700143bbe728dd05e0b
2019-12-12msc: Iu: fix missing 'ran_is_geran := false' for ↵Neels Hofmeyr1-1/+1
TC_iu_lu_and_mt_sms_paging_repeated Change-Id: I011795cacf62f2cac6861fe657966795e6370ddb
2019-12-12msc: fix 2 Iu tests: use f_mm_common() instead of f_mm_auth()Neels Hofmeyr1-2/+2
Fix these tests by using f_mm_common(), which takes care of Iu auth+ciph: TC_iu_lu_imsi_reject TC_iu_lu_imsi_timeout_gsup Change-Id: Id2bf160ac4e1cad4770202c6a6f1b8eeeee21d68
2019-12-10bts: Early terminate TC_rec_invalid_frame on errorPau Espin Pedrol1-21/+32
Extra debugging is added because otherwise it's extremely difficul to find at which state the test is when debugging sporadic failures. In f_TC_rec_invalid_frame, timer T is reused because it was actually not being used before, only defined in there. Change-Id: If24a81bf20d293b87adf9f37111fc7d344f169f5
2019-12-10bts: Update transmitted MS power as requested by BTSPau Espin Pedrol1-7/+23
New generic ms power loop algo takes into account the MS Power sent by MS over L1 SACCH Header. As a result, the test infra must now update its transmitted value according to what is requested by the BTS as if it was a real MS in order for algo to output expected results. Requires osmocom-bb I975cfc5f5d63eb32a7f8932a7f6a544c9a12233c to have transmitted MS power values for dummy Meas Results updated as requested over L1CTL. Change-Id: I287761202093fbc1064f9868efe6f7f6155253ca
2019-12-06pcu: Support sending message to PCU at specific FNPau Espin Pedrol3-13/+65
Change-Id: I81a29b4885f3fc6b753a1612d5fd369cd18f5dc6
2019-12-06pcu: Fix incorrect FN being send over PCUIF to PCUPau Espin Pedrol1-3/+8
The event FN contains the current FN, but the message should contain the FN of the first burst of the block. Change-Id: Iba0b1d1a3d7d875c5443a7bcaff399f9681624ad
2019-12-06pcu: Verify contents of data dl blocks originated from emulated SGSNPau Espin Pedrol1-1/+22
Change-Id: I4fe79572094038cbb26d5195c0544846ca2550b5
2019-12-04library: VTY: Allow hyphens in VTY promptPau Espin Pedrol1-3/+3
Old versions of osmo-pcu print "Osmo-PCU" as VTY prompt. This commit allows supporting this kind of prompt. Change-Id: Ia5acbbe5828901726f7f15c4a99d596e94914c4b
2019-12-04remsim: Two new bankd test cases about slotmap re-creationHarald Welte1-0/+84
If a slotmap is re-created with identical client+bankd, we expect no change and the client-bankd connection to persist. If a slotmap is overwritten with a create for a different client than the currently connected one, we expect the client connection to be closed. Change-Id: If81e1511521fe478d2367104cd1c7eba254d6450 Related: OS#4278
2019-12-04resmim: Adjust TC_createMapping_busySlot to current bankd codeHarald Welte1-1/+3
Since osmo-remsim Change-Id I83e319d22896b881c0d882542842f500075aa546 createMapping will overwrite any existing mappings that may already exist for that bank-slot. We need to adjust our test expectations accordingly. Change-Id: Ia8de9edd7edb0437cd783b7d045571ff69820c42 Related: OS#4278
2019-12-04remsim: Reset the bankd-side state at start of testHarald Welte1-0/+9
In general we don't want that bankd retains state from one test case to another. Let's issue the new RSPRO ResetStateReq at the start of each relevant test Change-Id: If810ccbbc848dd2448a4eaea20c80f60f15a2e84
2019-12-04remsim: Update RSPRO for ResetState{Req,Res} messagesHarald Welte3-0/+42
Change-Id: Ia9520b50c4ec2e703cc876cc7f79f3aeda90dba3
2019-12-04pcu: TC_mo_ping_pong: Check DL block is sent and ACK itPau Espin Pedrol3-6/+55
Function f_rx_rlcmac_dl_block_exp_data() still misses proper verification of data. Apparently the received message has 2 blocks, first with expected 10 bytes, but next one contains 18 bytes with 4 actual bytes and other bits are padding. Last DL ACK/NACK sent is not yet working correctly. osmo-pcu seems to be unable to match it against sent DL block (I think due to non-matching FN), and instead drops it and schedules after timeout an IMM ASS to try to send DL block again. Change-Id: Icf66dd5c07690368722c586632c38fb7e770053c
2019-12-03hlr: Don't attempt to find AUTN in 2G-only tupleHarald Welte1-1/+3
In Change-Id I40c6cf7e28ad9331e6c27fe7acafa3f9e277eedf we introduced a patch that verifies the AMF separation bit for 3G/3G vs 4G authentication. However, the test ignored the fact that AUTN cannot be present in pure 2G tuples. This makes TC_gsup_sai pass again. Change-Id: I9b61e62a58b583461dd5e67dd12119be282cae21
2019-12-03GSUP_Types: Split RAT_TYPE_IE to SUPPORTED / CURRENTHarald Welte1-10/+27
We added the RAT_TYPE_IE while the respective change in libosmocore was still in gerrit review. Meanwhile the support there has been split into two parts: A list of supported radio access types and another IE indicating the current RAT. Let's catch up with that in the GSUP implementation. This makes TC_gsup_sai_eps() pass again. Change-Id: I2c609dc523cbec562c6c6a05f4c7d600649ff52d
2019-12-02pps exchange after power onEric Wild1-0/+49
Change-Id: Ibe289de5134eec4f7ba26c75ceb4714ad523f0da
2019-12-02ccid: Many more CCID testsHarald Welte1-31/+404
Change-Id: Id046aff7c35b5ad3ab55fdf53a53e7637602d147
2019-12-02ccid: Increase guard timeout to 120sHarald Welte1-1/+1
Change-Id: Ie824dcf7b3f0d50ba4652d1a6e46d9ed81c5f069
2019-12-02initial checkin of CCID testsHarald Welte6-1/+260
Change-Id: I35f41cb0097a4408afe7c31f42463baaa47f15bd
2019-12-02pcu: Fix RLCMAC template namingPau Espin Pedrol3-5/+5
There's also DL_ACK_NACK message for which a template will be introduced soon, so let's rename and fix typos/wrong descriptions to avoid confusion later. Change-Id: I4a2025ad282006953fcfadf429c980b77cb94371
2019-12-02pcu: Handle PCUIF (DE)ACT.req messagesPau Espin Pedrol1-1/+12
Change-Id: I4440a6b24fb76b4f8096706769250b91bd2444bb
2019-12-02pcu: Introduce tests to check UL CS initial and maxPau Espin Pedrol1-1/+151
Related: OS#4286 Change-Id: I3aa654e6f678698e5b8cb4914f1ca5b39fc08568
2019-12-02pcu: Add VTY support and use it to set (M)CS lqual thresholdsPau Espin Pedrol4-2/+91
Requires osmo-pcu.git I3430abb5fc622dec293457466e760de95fa3a05c, before that commit OsmoPCU cmd prompt contained a dash which resulted in TTCN3 being unable to match it. Change-Id: I221675721b65b3ab44179e9657da70ba4004d7de
2019-12-02HLR: Add test for generating EPS (LTE) tuples with separation bit == 1Harald Welte1-2/+75
Depends: osmo-hlr Ic766bc40f6126bb479bd0a05b0e96bec3e240008 Change-Id: I40c6cf7e28ad9331e6c27fe7acafa3f9e277eedf
2019-12-02GSUP_Types: Add support for GSUP_IE_RAT_TYPEHarald Welte1-6/+46
Depends: libosmocore I93850710ab55a605bf61b95063a69682a2899bb1 Change-Id: I5d899fc6f6d4cf6123609b596022a853561f35f5
2019-12-01stp: Add TC_clnt_asp_act_tmt_loadshare()Harald Welte1-0/+15
This test case checks if the traffic-mode is communicated to the SG if we operate in ASP mode. Change-Id: If7d84b73b36a91fb697daf6263ec93b8672cbdc2 Related: OS#4285
2019-12-01stp: M3UA client-side tests: Expect routing context IE in ASPACHarald Welte1-3/+3
Change-Id: I7011480fed2492add28bbd64a27c0ad71609cb32 Related: OS#4285
2019-11-28sip: bump MNCC version sent to sipcon to 6Neels Hofmeyr2-2/+2
Match commit Iaca9ed6611fc5ca8ca749bbbefc31f54bea5e925 in osmo-sip-connector. Change-Id: I39d55432776926a385e1b85b21bcdea8180a8946
2019-11-28introduce MNCC_Emulation mp_mncc_versionNeels Hofmeyr2-1/+6
Default the MNCC version to the current osmo-sip-connector's master branch MNCC version. As soon as the new version (6) is merged, we can bump it here to make tests for master work again. For 'latest' builds, we can adjust osmo-ttcn3-hacks to use version 5, and also see those tests still passing. Change-Id: I3eb6e0132dc99ebe41a98cc5c329ed4864b770d6
2019-11-28library/MNCC_Types: fix sdp in tr_MNCC_*Oliver Smith1-3/+3
Make sure it is * everywhere, not "". Partially fix the SIP tests, where tr_MNCC_RTP_CONNECT did not match anymore: 13:15:27.516387 5 SIP_Tests.ttcn:219 Message enqueued on MNCC from SIP_Test-MNCC(3) @MNCC_Types.MNCC_PDU : { msg_type := MNCC_RTP_CONNECT (517), u := { rtp := { callref := 5001, ip := 0, rtp_port := 0, payload_type := 0, payload_msg_type := 0, sdp := "0" } } } id 3 13:15:27.516604 5 SIP_Tests.ttcn:221 Matching on port MNCC .u.rtp.sdp := "0" with "" unmatched: First message in the queue does not match the template: Together with I522ce7f206932a816a64f03d916799c3215bb8c7 in osmo-sip-connector.git, this makes the testsuite work again for osmo-sip-connector master. In order to fix the TTCN-3 tests for the latest release, we would need to add a second code path to the TTCN-3 code, that does not send the sdp data based on a configuration option. Considering that I've spent quite some time already to fix this up, it does not seem worth the effort. Related: OS#4282 Fixes: 06b859ca314f53a902329ed95848dbafef1d4f87 ("msc: add sdp to MNCC") Change-Id: Ic7a2df0b6faeaa88682880f816518618ced79a7e
2019-11-28sip: add osmo-sip-connector.cfgOliver Smith1-0/+25
Add config that works with SIP_Tests.default. Change-Id: I820a6573fafea9990eabcf40f1b7745558717cc7
2019-11-25hlr: stop on various failuresNeels Hofmeyr1-1/+15
I found some of the tests hard to analyse when geting failures, because they don't stop the test on failure. Spread some 'mtc.stop' so that the test stops at the failed message instead of carrying on. Change-Id: I804aca84d0ccf4767a5c097cf6c882ccbd87c4e1
2019-11-23pcu: Introduce test TC_mo_ping_pongPau Espin Pedrol1-0/+89
Ideally some more checks should be done on this test at the end, but it's fine keeping it as it is for now and can be extended later. Change-Id: I3be5123ff5294e5851652ec14d54589442082b28
2019-11-23sgsn: Introduce test TC_attach_req_id_req_ra_updatePau Espin Pedrol2-1/+41
The scenario in this test triggers a crash in osmo-sgsn fixed by osmo-sgsn.git I64fa5cf1b427d3abb99e553e584897261a827ce6. With that osmo-sgsn patch applied, the process doesn't crash anymore but the test still fails due to an XID message being sent with a new yet-not-seen-by-ttcn3 TLLI and as a result TTCN3 BSSGP_Emulation fails: BSSGP_Emulation.ttcn:390 setverdict(fail): none -> fail reason: "Couldn't find Component for TLLI 'FE791757'O", new component reason: "Couldn't find Component for TLLI 'FE791757'O" Other than that, the test runs fine. It still needs to be clarified whether the new TLLI sent by osmo-sgsn is expected and test needs to be fixed, or whether it's an sgsn bug. Related: OS#3957, OS#4245 Change-Id: Id5554a91a8bda712e282c5a3e9e30fb0ca1ec0e8
2019-11-23re-implement compare-results.sh as compare-results.pyNeels Hofmeyr3-214/+138
The compare-results.sh is annoyingly slow. Since our ttcn3 tests containers support Python 2, re-implement in Python for much quicker evaluation. Change-Id: I0747c9d66ffc7e4121497a2416fca78d7b56c8e6
2019-11-23msc: add f_tc_invalid_mgcp_crashNeels Hofmeyr2-0/+40
Make sure that osmo-msc doesn't crash if a successful CRCX response contains an invalid IP address. Originally/recently, osmo-msc did not validate the IP addresses at all. In an intermediate patch I added error handling, releasing the call. That uncovered a use-after-free problem in libosmo-mgcp-client. This problem is fixed by osmo_fsm_set_dealloc_ctx() and an osmo-mgw fix (see I7df2e9202b04e7ca7366bb0a8ec53cf3bb14faf3 in osmo-mgw). Add this test to make sure the crash is not re-introduced. Change-Id: I0c76b0a7a33a96a39a242ecd387ba3769161cf7a
2019-11-23msc: log tweaks for call / call hangupNeels Hofmeyr1-2/+5
Change-Id: I06474e3d592195a8c422493166d9f042da1ac7e6
2019-11-23msc: add and fix Iu mt callNeels Hofmeyr3-11/+88
Change-Id: I3ce29f3d9254656dc295674e8cec72a741b7764a