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
52d8a443
Commit
52d8a443
authored
Jan 11, 2024
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
e8102fd5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
software/ors-amarisoft/test/test.py
software/ors-amarisoft/test/test.py
+11
-11
No files found.
software/ors-amarisoft/test/test.py
View file @
52d8a443
...
@@ -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
)
...
...
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