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
0391daac
Commit
0391daac
authored
Jan 05, 2024
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
f1cbd577
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
5 deletions
+36
-5
software/ors-amarisoft/test/test.py
software/ors-amarisoft/test/test.py
+36
-5
No files found.
software/ors-amarisoft/test/test.py
View file @
0391daac
...
...
@@ -270,21 +270,23 @@ class TestENB_SDR(ENBTestCase):
self
.
assertEqual
(
len
(
nr_cell_list
),
2
)
# basic cell parameters
assertDict
(
cell_list
[
0
],
dict
(
assertMatch
(
self
,
cell_list
,
[
dict
(
# CELL1
uldl_config
=
NO
,
rf_port
=
0
,
n_antenna_dl
=
4
,
n_antenna_ul
=
2
,
dl_earfcn
=
100
,
ul_earfcn
=
18100
,
n_rb_dl
=
25
,
cell_id
=
0x1
,
n_id_cell
=
0x11
,
tac
=
0x101
,
root_sequence_index
=
201
,
))
assertDict
(
cell_list
[
1
],
dict
(
),
dict
(
# CELL2
uldl_config
=
2
,
rf_port
=
1
,
n_antenna_dl
=
4
,
n_antenna_ul
=
2
,
dl_earfcn
=
36100
,
ul_earfcn
=
36100
,
n_rb_dl
=
50
,
cell_id
=
0x2
,
n_id_cell
=
0x12
,
tac
=
0x102
,
root_sequence_index
=
202
,
))
),
])
assertDict
(
nr_cell_list
[
0
],
dict
(
tdd_ul_dl_config
=
NO
,
rf_port
=
2
,
n_antenna_dl
=
4
,
n_antenna_ul
=
2
,
...
...
@@ -309,6 +311,32 @@ class TestENB_SDR(ENBTestCase):
ul_symbols
=
4
,
)})
assertMatch
(
self
,
nr_cell_list
,
[
dict
(
# CELL3
tdd_ul_dl_config
=
NO
,
rf_port
=
2
,
n_antenna_dl
=
4
,
n_antenna_ul
=
2
,
dl_nr_arfcn
=
430100
,
ul_nr_arfcn
=
392100
,
ssb_nr_arfcn
=
429890
,
band
=
1
,
bandwidth
=
15
,
cell_id
=
0x3
,
n_id_cell
=
0x13
,
tac
=
NO
,
root_sequence_index
=
203
,
),
dict
(
# CELL4
rf_port
=
3
,
n_antenna_dl
=
4
,
n_antenna_ul
=
2
,
dl_nr_arfcn
=
510100
,
ul_nr_arfcn
=
510100
,
ssb_nr_arfcn
=
510010
,
band
=
41
,
bandwidth
=
20
,
cell_id
=
0x4
,
n_id_cell
=
0x14
,
tac
=
NO
,
root_sequence_index
=
204
,
),
])
assertDict
(
nr_cell_list
[
1
][
'tdd_ul_dl_config'
],
{
'pattern1'
:
dict
(
period
=
5
,
dl_slots
=
7
,
dl_symbols
=
6
,
ul_slots
=
2
,
ul_symbols
=
4
,
)})
# Carrier Aggregation
assertMatch
(
self
,
cell_list
,
[
{
...
...
@@ -538,3 +566,6 @@ def _matchCollect(v, vok):
# other types, e.g. atomic int/str/... - return as is
assert
type
(
v
)
is
not
tuple
,
v
return
v
# XXX test for assertMatch
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