Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Smelkov
slapos
Commits
e5937191
Commit
e5937191
authored
Jan 10, 2024
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
23b9b44a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
23 deletions
+32
-23
software/ors-amarisoft/test/test.py
software/ors-amarisoft/test/test.py
+32
-23
No files found.
software/ors-amarisoft/test/test.py
View file @
e5937191
...
...
@@ -119,8 +119,38 @@ def XN_PEER(xn_addr):
# --------
# XXX doc
# XXX approach is to test generated enb.cfg
# ENBTestCase provides base class for unit-testing eNB service.
#
# It instantiates enb with several Radio Units and Cells and verifies generated
# enb.cfg to match what is expected(*).
#
# 4 RU x 4 CELL are requested to verify all {FDD,TDD}·{LTE,NR} combinations.
#
# In requested instances mostly non-overlapping range of numbers are
# assigned to parameters according to the following scheme:
#
# 0+ cell_id
# 0x10+ pci
# 0x100+ tac
# 10+ tx_gain
# 20+ rx_gain
# 100+ root_sequence_index
# 1000+ inactivity_timer
# xxx+i·100 arfcn
# 5,10,15,20 bandwidth
#
# this allows to quickly see offhand to which cell/ru and parameter a
# particular number belongs to.
#
# Subclasses should define 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.
#
# (*) here we verify only generated configuration because it is not possible to
# run Amarisoft software on the testnodes due to licensing restrictions.
#
# end-to-end testing complements unit-testing by verifying how LTE works
# for real on dedicated hardware test setup.
class
ENBTestCase
(
AmariTestCase
):
maxDiff
=
None
# see full diff in test run log on an error
...
...
@@ -175,27 +205,6 @@ class ENBTestCase(AmariTestCase):
tac
=
0x321
),
]
# 4 RU x 4 CELL are requested to verify all {TDD,FDD}·{LTE,NR} combinations.
#
# In requested instances mostly non-overlapping range of numbers are
# assigned to parameters according to the following scheme:
#
# 0+ cell_id
# 0x10+ pci
# 0x100+ tac
# 10+ tx_gain
# 20+ rx_gain
# 100+ root_sequence_index
# 1000+ inactivity_timer
# xxx+i·100 arfcn
# 5,10,15,20 bandwidth
#
# this allows to quickly see offhand to which cell/ru and parameter a
# particular number belongs to.
#
# Subclasses should define 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.
def
RU
(
i
):
ru
=
cls
.
RUcfg
(
i
)
ru
|=
{
'n_antenna_dl'
:
4
,
'n_antenna_ul'
:
2
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment