Commit 52d8a443 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent e8102fd5
...@@ -18,17 +18,17 @@ ...@@ -18,17 +18,17 @@
# Unit-tests for generic software for Amarisoft 4G/5G stack. # Unit-tests for generic software for Amarisoft 4G/5G stack.
# #
# Here we only verify generated configuration because it is not possible to run # Here we verify only generated configurations because it is not possible to
# Amarisoft software on testnodes due to licensing restrictions. End-to-end # run Amarisoft software on testnodes due to licensing restrictions. End-to-end
# testing complements unit-testing by verifying how LTE works for real on # testing complements unit-testing by verifying how LTE works for real, but it
# dedicated hardware test setup. # needs dedicated hardware test setup.
# #
# Here we test: # Here we test:
# #
# - enb (see TestENB_*) # - enb (see TestENB_*)
# - uesim (see TestUEsim_*) # - uesim (see TestUEsim_*)
# #
# Currently there is no tests for core-network here, because for core-network # Currently there is no tests for core-network, because for core-network
# there is no difference in between generic and ORS modes and core-network is # there is no difference in between generic and ORS modes and core-network is
# already verified by test_ors. # already verified by test_ors.
...@@ -192,7 +192,7 @@ class AmariTestCase(_AmariTestCase): ...@@ -192,7 +192,7 @@ class AmariTestCase(_AmariTestCase):
# RFTestCase4 is base class for tests of all services that do radio. # RFTestCase4 is base class for tests of all services that do radio.
# #
# It instantiates a service with several Radio Units and Cells attached. # It instantiates a service with several Radio Units and Cells attached:
# #
# 4 RU x 4 CELL are requested to verify all {FDD,TDD}·{LTE,NR} combinations. # 4 RU x 4 CELL are requested to verify all {FDD,TDD}·{LTE,NR} combinations.
# #
...@@ -217,7 +217,7 @@ class AmariTestCase(_AmariTestCase): ...@@ -217,7 +217,7 @@ class AmariTestCase(_AmariTestCase):
# - RUcfg(i) to return primary parameters specific for i'th RU configuration # - RUcfg(i) to return primary parameters specific for i'th RU configuration
# like ru_type - to verify particular RU driver, sdr_dev, sfp_port and so on. # like ru_type - to verify particular RU driver, sdr_dev, sfp_port and so on.
# - CELLcfg(i) to tune parameters of i'th cell, for example cell_kind. # - CELLcfg(i) to tune parameters of i'th cell, for example cell_kind.
# - .rf_cfg with loaded service config # - .rf_cfg with loaded service config.
class RFTestCase4(AmariTestCase): class RFTestCase4(AmariTestCase):
@classmethod @classmethod
def requestAllShared(cls, imain): def requestAllShared(cls, imain):
...@@ -244,10 +244,10 @@ class RFTestCase4(AmariTestCase): ...@@ -244,10 +244,10 @@ class RFTestCase4(AmariTestCase):
RU(4); CELL(4, TDD | NR (470400,40) | BW(20)) RU(4); CELL(4, TDD | NR (470400,40) | BW(20))
def test_rf_cfg_txrx_gain(t): def test_rf_cfg_txrx_gain(t):
# NOTE even though setting tx_gain/rx_gain does not make any difference # NOTE even though setting tx_gain/rx_gain in enb.cfg does not make any
# for CPRI case, we still do set it there for consistency. For the # difference for CPRI case, we still do set it there for consistency.
# reference: for CPRI case the real tx/rx gain is set in RU # For the reference: for CPRI case the real tx/rx gain is set in
# configuration and is verified by RU tests. # RU configuration and is verified by RU tests.
t.assertEqual(t.rf_cfg['tx_gain'], [11]*4 + [12]*4 + [13]*4 + [14]*4) t.assertEqual(t.rf_cfg['tx_gain'], [11]*4 + [12]*4 + [13]*4 + [14]*4)
t.assertEqual(t.rf_cfg['rx_gain'], [21]*2 + [22]*2 + [23]*2 + [24]*2) t.assertEqual(t.rf_cfg['rx_gain'], [21]*2 + [22]*2 + [23]*2 + [24]*2)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment