Change in osmo-bsc[master]: handover_test: use 'unknown' BTS type instead of 'sysmobts'

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Vadim Yanitskiy gerrit-no-reply at lists.osmocom.org
Sat May 30 19:35:02 UTC 2020


Vadim Yanitskiy has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-bsc/+/18610 )


Change subject: handover_test: use 'unknown' BTS type instead of 'sysmobts'
......................................................................

handover_test: use 'unknown' BTS type instead of 'sysmobts'

This unit test does not really need a BTS of such specific type.

Change-Id: Id676042518d06e94a9fb20112334280e2b91074b
---
M include/osmocom/bsc/bss.h
M tests/handover/Makefile.am
M tests/handover/handover_test.c
3 files changed, 5 insertions(+), 3 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-bsc refs/changes/10/18610/1

diff --git a/include/osmocom/bsc/bss.h b/include/osmocom/bsc/bss.h
index ecb68d6..b8945db 100644
--- a/include/osmocom/bsc/bss.h
+++ b/include/osmocom/bsc/bss.h
@@ -11,6 +11,7 @@
 
 /* register all supported BTS */
 extern int bts_init(void);
+extern int bts_model_unknown_init(void);
 extern int bts_model_bs11_init(void);
 extern int bts_model_rbs2k_init(void);
 extern int bts_model_nanobts_init(void);
diff --git a/tests/handover/Makefile.am b/tests/handover/Makefile.am
index 84865a0..fcd171b 100644
--- a/tests/handover/Makefile.am
+++ b/tests/handover/Makefile.am
@@ -59,7 +59,7 @@
 	$(top_builddir)/src/osmo-bsc/bsc_vty.o \
 	$(top_builddir)/src/osmo-bsc/bts_ipaccess_nanobts.o \
 	$(top_builddir)/src/osmo-bsc/bts_ipaccess_nanobts_omlattr.o \
-	$(top_builddir)/src/osmo-bsc/bts_sysmobts.o \
+	$(top_builddir)/src/osmo-bsc/bts_unknown.o \
 	$(top_builddir)/src/osmo-bsc/chan_alloc.o \
 	$(top_builddir)/src/osmo-bsc/codec_pref.o \
 	$(top_builddir)/src/osmo-bsc/gsm_04_08_rr.o \
diff --git a/tests/handover/handover_test.c b/tests/handover/handover_test.c
index bdc18c3..b08e2a3 100644
--- a/tests/handover/handover_test.c
+++ b/tests/handover/handover_test.c
@@ -178,7 +178,7 @@
 	struct e1inp_sign_link *rsl_link;
 	int i;
 
-	bts = bsc_bts_alloc_register(bsc_gsmnet, GSM_BTS_TYPE_OSMOBTS, 0x3f);
+	bts = bsc_bts_alloc_register(bsc_gsmnet, GSM_BTS_TYPE_UNKNOWN, 0x3f);
 	if (!bts) {
 		printf("No resource for bts1\n");
 		return NULL;
@@ -1446,7 +1446,8 @@
 	ho_set_hodec2_penalty_failed_ho(bsc_gsmnet->ho, 60);
 	ho_set_hodec2_penalty_failed_as(bsc_gsmnet->ho, 60);
 
-	bts_model_sysmobts_init();
+	/* We don't really need any specific model here */
+	bts_model_unknown_init();
 
 	test_case = test_cases[test_case_i];
 

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-bsc/+/18610
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-Change-Id: Id676042518d06e94a9fb20112334280e2b91074b
Gerrit-Change-Number: 18610
Gerrit-PatchSet: 1
Gerrit-Owner: Vadim Yanitskiy <vyanitskiy at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200530/c9ee3950/attachment.htm>


More information about the gerrit-log mailing list