Pau Espin
26b562c1bd
bts: Early terminate TC_rec_invalid_frame on error
...
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-10 16:47:29 +00:00
Eric Wild
74f25ae2c3
bts: clean up old tests and make them work again
...
Change-Id: Ie9d73cd9777b6fdda5115ed5dc103979d79c8cd9
2019-06-14 16:37:02 +00:00
Eric Wild
211acc3d45
bts: more lapdm tests
...
Change-Id: I0db71de5f600022935f47573aa919990de4bfec0
2019-06-14 16:36:25 +00:00
Harald Welte
a39ac756d3
bts: Add LAPDm test for SABM with wrong C/R bit
...
Test that the BTS will take no action when it receives an SABM frame
with the C bit set wrong (R); Inspired by TS 51.010-1 25.2.5.2
Implemented as TC_sabm_incorrect_c().
Related: OS#4032
Change-Id: I4fbe7e708c9b1a2c04e5d24a205b5b5af20ff8c7
2019-06-04 23:13:47 +02:00
Harald Welte
44479781b0
bts: Add test csse for I frame with wrong C/R value
...
Implemented as BTS_Tests_LAPDm.TC_incorrect_cr()
Related: OS#4032
Change-Id: I19e50049625bd31662a1e22b1394b69b2d249104
2019-06-04 23:13:41 +02:00
Harald Welte
7d9f6db401
bts: Implement testcase for RR response frame loss
...
Test is implemented as BTS_Tests_LAPDm.TC_rr_response_frame_loss()
Change-Id: I32340fff6666fee0ebfb9b31b55e0982d0d917a1
2019-06-04 09:12:03 +00:00
Harald Welte
76771f1cc2
bts: Factor out mobile-originated LAPDm establishment
...
which avoids us to have to copy+pate this between several test cases.
Change-Id: I8da753bb3d809ec09f9380bb4bac666ceaf61f00
2019-06-04 09:12:03 +00:00
Harald Welte
b2a3034826
bts: Add test for expiring T200 N200+1 times
...
Change-Id: I9e1dbc889575f8952a4581551076829825b3b1cd
2019-06-04 09:12:03 +00:00
Harald Welte
ef6fd44965
bts: Also test SACCH in TC_segm_concat
...
Change-Id: If9b51b4d6c357aa015f31e1e6851d4d1bb71a58f
2019-06-04 09:12:03 +00:00
Harald Welte
9ea918c2a8
bts: Add TC_segm_concat to test segmentation+concatenation
...
Change-Id: I6a9ce3e27f4a01412186b3b5d8d2b86573b6f8ac
2019-06-04 09:12:03 +00:00
Harald Welte
2f2b2b7f95
bts: Extend LAPDm test suite with a number of new tests
...
This adds the following test cases to BTS_Tests_LAPDm.ttcn:
* TC_sabm_retransmit_bts()
* TC_sabm_invalid_resp()
* TC_sabm_dm()
* TC_establish_ign_first_sabm()
* TC_iframe_seq_and_ack()
* TC_iframe_timer_recovery()
Change-Id: I4e1136c0c0f10d5bc8d01e826ae5d92f17a0b2aa
2019-06-04 09:12:03 +00:00
Harald Welte
61332c0367
bts: BTS_Tests_LAPDm.ttcn: rename f_init() to f_lapdm_init()
...
This is to avoid name clashes with f_init() from BTS_Tests.ttcn
Change-Id: Ie6272165b1dbda53d2d02af43c8e969da7a54d2e
2019-06-02 22:36:15 +02:00
Harald Welte
72c81e7cbc
bts: Remove one indent lvel from BTS_Tests_LAPDm.ttcn
...
Change-Id: I4637393df9989a97a4d70f08bd334d0f8cfd2284
2019-06-02 22:36:15 +02:00
Harald Welte
c38611bab5
bts: Derive test component that talks RSL and LAPDm
...
Change-Id: I6e24c6f6a904c4c051780c35af82c3bd53c970ce
2019-06-02 22:36:15 +02:00
Harald Welte
97cca2f5cb
move lapdm/L1CTL_Test.ttcn to bts/BTS_Tests_LAPDm.ttcn
...
Change-Id: Ibbc967f0bd9a19ab4bbd17f612654d72cb32d571
2019-06-02 22:36:15 +02:00