aboutsummaryrefslogtreecommitdiffstats
path: root/bts
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2019-05-30 16:33:58 +0200
committerHarald Welte <laforge@gnumonks.org>2019-06-02 22:36:15 +0200
commitc38611bab54140a7f1a1353737428a48fbdb678c (patch)
treed98dcd7c6385381fa61cebaeec1a71c21475fcee /bts
parent97cca2f5cb6840f9332897cb8b3c3d4d1801fcdf (diff)
bts: Derive test component that talks RSL and LAPDm
Diffstat (limited to 'bts')
-rw-r--r--bts/BTS_Tests_LAPDm.ttcn7
1 files changed, 7 insertions, 0 deletions
diff --git a/bts/BTS_Tests_LAPDm.ttcn b/bts/BTS_Tests_LAPDm.ttcn
index d6c605d5..a5bcc56b 100644
--- a/bts/BTS_Tests_LAPDm.ttcn
+++ b/bts/BTS_Tests_LAPDm.ttcn
@@ -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;