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
Labels
Merge Requests
104
Merge Requests
104
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
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
Show 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 @@
# Unit-tests for generic software for Amarisoft 4G/5G stack.
#
# Here we
only verify generated configuration because it is not possible to run
# Amarisoft software on testnodes due to licensing restrictions. End-to-end
# testing complements unit-testing by verifying how LTE works for real
on
# dedicated hardware test setup.
# Here we
verify only generated configurations because it is not possible to
#
run
Amarisoft software on testnodes due to licensing restrictions. End-to-end
# testing complements unit-testing by verifying how LTE works for real
, but it
#
needs
dedicated hardware test setup.
#
# Here we test:
#
# - enb (see TestENB_*)
# - 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
# already verified by test_ors.
...
...
@@ -192,7 +192,7 @@ class AmariTestCase(_AmariTestCase):
# 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.
#
...
...
@@ -217,7 +217,7 @@ class AmariTestCase(_AmariTestCase):
# - 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.
# - 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
):
@
classmethod
def
requestAllShared
(
cls
,
imain
):
...
...
@@ -244,10 +244,10 @@ class RFTestCase4(AmariTestCase):
RU
(
4
);
CELL
(
4
,
TDD
|
NR
(
470400
,
40
)
|
BW
(
20
))
def
test_rf_cfg_txrx_gain
(
t
):
# NOTE even though setting tx_gain/rx_gain
does not make any difference
#
for CPRI case, we still do set it there for consistency. For the
#
reference: for CPRI case the real tx/rx gain is set in RU
# configuration and is verified by RU tests.
# NOTE even though setting tx_gain/rx_gain
in enb.cfg does not make any
#
difference for CPRI case, we still do set it there for consistency.
#
For the reference: for CPRI case the real tx/rx gain is set in
#
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
[
'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