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
103
Merge Requests
103
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
fc46d6e8
Commit
fc46d6e8
authored
Jan 02, 2024
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
4f812a25
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
7 deletions
+27
-7
software/ors-amarisoft/test/test.py
software/ors-amarisoft/test/test.py
+27
-7
No files found.
software/ors-amarisoft/test/test.py
View file @
fc46d6e8
...
...
@@ -103,13 +103,16 @@ PEERCELL5 = {
# {LTE,NR}_{TDD,FDD} return basic parameters for an LTE/NR cell given downlink frequency and bandwidth.
def
LTE
_TDD
(
dl_earfcn
,
bandwidth
):
def
LTE
(
dl_earfcn
,
bandwidth
):
return
{
'cell_type'
:
'lte'
,
'rf_mode'
:
'tdd'
,
'dl_earfcn'
:
dl_earfcn
,
'bandwidth'
:
'%g MHz'
%
bandwidth
,
}
def
LTE_TDD
(
dl_earfcn
,
bandwidth
):
_
=
LTE
(
dl_earfcn
,
bandwidth
)
_
[
'rf_mode'
]
=
'tdd'
return
_
def
LTE_FDD
(
dl_earfcn
,
bandwidth
):
_
=
LTE_TDD
(
dl_earfcn
,
bandwidth
);
_
[
'rf_mode'
]
=
'fdd'
return
_
...
...
@@ -233,14 +236,31 @@ class TestENB_CPRI(ENBTestCase):
cell
.
update
(
kw
)
cls
.
requestShared
(
imain
,
'LO%d.CELL'
%
i
,
cell
)
LO_CELL
(
1
,
LTE_TDD
(
100
,
10
))
LO_CELL
(
2
,
LTE_FDD
(
500
,
20
))
LO_CELL
(
3
,
NR_TDD
(
100
,
10
))
LO_CELL
(
4
,
NR_FDD
(
500
,
10
))
LO_CELL
(
1
,
tLTE
(
100
,
10
))
LO_CELL
(
2
,
fLTE
(
500
,
20
))
LO_CELL
(
3
,
tNR
(
100
,
10
))
LO_CELL
(
4
,
fNR
(
500
,
10
))
# XXX + sunwave
def
test_enb_conf
(
self
):
super
().
test_enb_conf
()
conf
=
...
yload
(
'etc/enb.cfg'
)
self
.
assertEqual
(
conf
[
'rf_driver'
][
'args'
],
'dev0=/dev/sdr0@1,dev1=/dev/sdr0@2,dev2=/dev/sdr0@3,dev3=/dev/sdr0@4'
+
# Lopcomm
''
)
# XXX Sunwave
self
.
assertEqual
(
len
(
conf
[
'cell_list'
]),
2
*
2
)
self
.
assertEqual
(
len
(
conf
[
'nr_cell_list'
]),
2
*
2
)
# XXX RU
# XXX CELLs
# XXX CA
...
...
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