bts: Derive test component that talks RSL and LAPDm

Change-Id: I6e24c6f6a904c4c051780c35af82c3bd53c970ce
This commit is contained in:
Harald Welte 2019-05-30 16:33:58 +02:00
parent 97cca2f5cb
commit c38611bab5
1 changed files with 7 additions and 0 deletions

View File

@ -3,12 +3,19 @@ module BTS_Tests_LAPDm {
import from Osmocom_Types all;
import from LAPDm_RAW_PT all;
import from LAPDm_Types all;
import from BTS_Tests all;
/* test that use exclusively only LAPDm over L1CTL */
type component lapdm_test_CT {
port LAPDm_PT LAPDM;
var lapdm_CT lapdm_component;
};
/* contrary to BTS_Tests.ttcn, we use LAPDm_PT here, a convenience wrapper
* around L1CTL to perform encode/decode of abstract LAPDm frames */
type component lapdm_bts_CT extends lapdm_test_CT, test_CT {
}
function f_init() runs on lapdm_test_CT {
/* create the LAPDm component */
lapdm_component := lapdm_CT.create;