Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Lu Xu
slapos
Commits
3b76b4fd
Commit
3b76b4fd
authored
Jan 10, 2024
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
06b58c8a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
26 deletions
+28
-26
software/ors-amarisoft/test/test.py
software/ors-amarisoft/test/test.py
+28
-26
No files found.
software/ors-amarisoft/test/test.py
View file @
3b76b4fd
...
...
@@ -172,18 +172,42 @@ class AmariTestCase(_AmariTestCase):
# RFTestCase is base class for tests of all services that do radio.
#
# Subclasses/mixins should define RUcfg and CELLcfg to tune parameters for instantiated RU/CELL.
# 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.
#
# 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 dl_arfcn
# 5,10,15,20 bandwidth
# XXX +ue
#
# 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.
#
# Similarly subclasses should define CELLcfg(i) to tune parameters of i'th
# cell, for example cell_kind.
class
RFTestCase
(
AmariTestCase
):
@
classmethod
def
requestAllShared
(
cls
,
imain
):
@
classmethod
def
RU
(
i
):
ru
=
cls
.
RUcfg
(
i
)
ru
|=
{
'n_antenna_dl'
:
4
,
'n_antenna_ul'
:
2
}
ru
|=
{
'tx_gain'
:
10
+
i
,
'rx_gain'
:
20
+
i
,
'txrx_active'
:
'INACTIVE'
}
cls
.
requestShared
(
imain
,
'RU%d'
%
i
,
ru
)
@
classmethod
def
CELL
(
i
,
ctx
):
cell
=
{
'ru'
:
{
...
...
@@ -191,7 +215,7 @@ class RFTestCase(AmariTestCase):
'ru_ref'
:
cls
.
ref
(
'RU%d'
%
i
),
}
}
cell
+
=
cls
.
CELLcfg
(
i
)
cell
|
=
cls
.
CELLcfg
(
i
)
cell
|=
ctx
cls
.
requestShared
(
imain
,
'RU%d.CELL'
%
i
,
cell
)
...
...
@@ -215,28 +239,6 @@ class RFTestCase(AmariTestCase):
# 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 dl_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.
#
...
...
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