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
cdcedbf7
Commit
cdcedbf7
authored
Jan 10, 2024
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
3b76b4fd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
59 additions
and
9 deletions
+59
-9
software/ors-amarisoft/test/test.py
software/ors-amarisoft/test/test.py
+59
-9
No files found.
software/ors-amarisoft/test/test.py
View file @
cdcedbf7
...
...
@@ -413,18 +413,68 @@ class UEsimTestCase(AmariTestCase):
})}
@
classmethod
def
requestAllShared
(
cls
,
imain
):
# XXX RU
# XXX CELL
# XXX UE
def
CELLcfg
(
cls
,
i
):
return
CUE
def
CELL
(
i
,
ctx
):
ucell
=
{}
ucell
|=
CUE
ucell
|=
ctx
@
classmethod
def
requestAllShared
(
cls
,
imain
):
super
().
requestAllShared
(
imain
)
RU
(
1
);
CELL
(
1
,
FDD
|
LTE
(
100
)
|
BW
(
5
)
|
TAC
(
0x101
))
def
UE
(
i
):
ue
=
{
'ue_type'
:
(
'lte'
,
'nr'
)
[(
i
-
1
)
%
2
],
'rue_addr'
:
'host%d'
%
i
,
'sim_algo'
:
(
'xor'
,
'milenage'
,
'tuak'
)
[
i
-
1
],
'imsi'
:
'%015d'
%
i
,
'opc'
:
'%032x'
%
i
,
'amf'
:
'0x%04x'
%
(
0x9000
+
i
),
'sqn'
:
'%012x'
%
i
'k'
:
'FFFF%028x'
%
i
,
'impi'
:
'impi%d@rapid.space'
%
i
,
}
cls
.
requestShared
(
imain
,
'UE%d'
%
i
,
ue
)
UE
(
1
)
UE
(
2
)
UE
(
3
)
# cells
def
test_uesim_conf_cell
(
t
):
assertMatch
(
t
,
t
.
ue_cfg
[
'cell_groups'
],
[
dict
(
group_type
=
'lte'
,
cells
=
[
dict
(
# CELL1
rf_port
=
0
,
n_antenna_dl
=
4
,
n_antenna_ul
=
2
,
dl_earfcn
=
100
,
ul_earfcn
=
18100
,
bandwidth
=
5
,
),
dict
(
# CELL2
rf_port
=
1
,
n_antenna_dl
=
4
,
n_antenna_ul
=
2
,
dl_earfcn
=
40200
,
ul_earfcn
=
40200
,
bandwidth
=
10
,
),
]
),
dict
(
group_type
=
'nr'
,
cells
=
[
dict
(
# CELL3
rf_port
=
2
,
n_antenna_dl
=
4
,
n_antenna_ul
=
2
,
dl_nr_arfcn
=
300300
,
ul_nr_arfcn
=
290700
,
ssb_nr_arfcn
=
300270
,
band
=
74
,
bandwidth
=
15
,
),
dict
(
# CELL4
rf_port
=
3
,
n_antenna_dl
=
4
,
n_antenna_ul
=
2
,
dl_nr_arfcn
=
470400
,
ul_nr_arfcn
=
470400
,
ssb_nr_arfcn
=
470430
,
band
=
40
,
bandwidth
=
20
,
),
]
)
])
# ue parameters
def
test_uesim_ue
(
t
):
# ---- RU mixins ----
...
...
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