bsc-tests: Add BTS_Simulation, RSL_Tests and .cfg file
diff --git a/bsc/BSC_Tests.ttcn b/bsc/BSC_Tests.ttcn
index 4629e6e..9b26800 100644
--- a/bsc/BSC_Tests.ttcn
+++ b/bsc/BSC_Tests.ttcn
@@ -13,8 +13,10 @@
import from SCCP_Emulation all;
import from MSC_Simulation all;
+import from BTS_Simulation all;
const integer NUM_MSC := 1;
+const integer NUM_BTS := 1;
type record MscState {
MSC_CT MSC,
@@ -22,8 +24,13 @@
SCCP_PAR_Address sccp_addr_own
}
+type record BtsState {
+ BTS_CT BTS
+}
+
type component test_CT {
var MscState msc[NUM_MSC];
+ var BtsState bts[NUM_BTS];
var boolean g_initialized := false;
var octetstring g_sio := '83'O;
@@ -40,6 +47,9 @@
integer mp_msc_pc := 185; /* 0.23.1 */
integer mp_msc_ssn := 254;
+
+ charstring mp_bsc_ip := "127.0.0.1";
+ integer mp_bsc_rsl_port := 3003;
}
/* construct a SCCP_PAR_Address with just PC + SSN and no GT */
@@ -89,6 +99,12 @@
msc[i].MSC.start(MSC_Simulation.main(mp_msc_ip, mp_msc_port + i, msc[i].sccp_pars, msc[i].sccp_addr_own, id));
}
+ for (i := 0; i < NUM_BTS; i := i+1) {
+ bts[i].BTS := BTS_CT.create;
+ id := "BTS" & int2str(i);
+ bts[i].BTS.start(BTS_Simulation.main(mp_bsc_ip, mp_bsc_rsl_port, id));
+ }
+
}
testcase TC_recv_dump() runs on test_CT {