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
d0bcbf7e
Commit
d0bcbf7e
authored
Jan 10, 2024
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
d2905b07
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
software/ors-amarisoft/test/test.py
software/ors-amarisoft/test/test.py
+8
-8
No files found.
software/ors-amarisoft/test/test.py
View file @
d0bcbf7e
...
@@ -254,7 +254,7 @@ class ENBTestCase(RFTestCase):
...
@@ -254,7 +254,7 @@ class ENBTestCase(RFTestCase):
@
classmethod
@
classmethod
def
setUpClass
(
cls
):
def
setUpClass
(
cls
):
super
().
setUpClass
()
super
().
setUpClass
()
cls
.
enb_cfg
=
yamlpp_load
(
cls
.
ipath
(
'etc/enb.cfg'
))
cls
.
enb_cfg
=
cls
.
rf_cfg
=
yamlpp_load
(
cls
.
ipath
(
'etc/enb.cfg'
))
@
classmethod
@
classmethod
def
getInstanceParameterDict
(
cls
):
def
getInstanceParameterDict
(
cls
):
...
@@ -406,7 +406,7 @@ class UEsimTestCase(RFTestCase):
...
@@ -406,7 +406,7 @@ class UEsimTestCase(RFTestCase):
@
classmethod
@
classmethod
def
setUpClass
(
cls
):
def
setUpClass
(
cls
):
super
().
setUpClass
()
super
().
setUpClass
()
cls
.
ue_cfg
=
yamlpp_load
(
cls
.
ipath
(
'etc/ue.cfg'
))
cls
.
ue_cfg
=
cls
.
rf_cfg
=
yamlpp_load
(
cls
.
ipath
(
'etc/ue.cfg'
))
@
classmethod
@
classmethod
def
getInstanceParameterDict
(
cls
):
def
getInstanceParameterDict
(
cls
):
...
@@ -520,7 +520,7 @@ class SDR4:
...
@@ -520,7 +520,7 @@ class SDR4:
# radio units configuration
# radio units configuration
def
test_enb_conf_ru
(
t
):
def
test_enb_conf_ru
(
t
):
assertMatch
(
t
,
t
.
enb
_cfg
[
'rf_driver'
],
dict
(
assertMatch
(
t
,
t
.
rf
_cfg
[
'rf_driver'
],
dict
(
args
=
'dev0=/dev/sdr2,dev1=/dev/sdr3,dev2=/dev/sdr4,dev3=/dev/sdr5,'
+
args
=
'dev0=/dev/sdr2,dev1=/dev/sdr3,dev2=/dev/sdr4,dev3=/dev/sdr5,'
+
'dev4=/dev/sdr6,dev5=/dev/sdr7,dev6=/dev/sdr8,dev7=/dev/sdr9'
,
'dev4=/dev/sdr6,dev5=/dev/sdr7,dev6=/dev/sdr8,dev7=/dev/sdr9'
,
cpri_mapping
=
NO
,
cpri_mapping
=
NO
,
...
@@ -531,8 +531,8 @@ class SDR4:
...
@@ -531,8 +531,8 @@ class SDR4:
))
))
# XXX -> generic ? XXX no (for cpri case it is all 0 here)
# XXX -> generic ? XXX no (for cpri case it is all 0 here)
t
.
assertEqual
(
t
.
enb
_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
.
enb
_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
)
# Lopcomm4 is mixin to verify Lopcomm driver wrt all LTE/NR x FDD/TDD modes.
# Lopcomm4 is mixin to verify Lopcomm driver wrt all LTE/NR x FDD/TDD modes.
...
@@ -556,7 +556,7 @@ class Lopcomm4:
...
@@ -556,7 +556,7 @@ class Lopcomm4:
# radio units configuration in enb.cfg
# radio units configuration in enb.cfg
def
test_enb_conf_ru
(
t
):
def
test_enb_conf_ru
(
t
):
assertMatch
(
t
,
t
.
enb
_cfg
[
'rf_driver'
],
dict
(
assertMatch
(
t
,
t
.
rf
_cfg
[
'rf_driver'
],
dict
(
args
=
'dev0=/dev/sdr0@1,dev1=/dev/sdr0@2,dev2=/dev/sdr0@3,dev3=/dev/sdr0@4'
,
args
=
'dev0=/dev/sdr0@1,dev1=/dev/sdr0@2,dev2=/dev/sdr0@3,dev3=/dev/sdr0@4'
,
cpri_mapping
=
'hw,hw,hw,hw'
,
cpri_mapping
=
'hw,hw,hw,hw'
,
cpri_mult
=
'4,4,4,4'
,
cpri_mult
=
'4,4,4,4'
,
...
@@ -654,7 +654,7 @@ class Sunwave4:
...
@@ -654,7 +654,7 @@ class Sunwave4:
# radio units configuration in enb.cfg
# radio units configuration in enb.cfg
def
test_enb_conf_ru
(
t
):
def
test_enb_conf_ru
(
t
):
assertMatch
(
t
,
t
.
enb
_cfg
[
'rf_driver'
],
dict
(
assertMatch
(
t
,
t
.
rf
_cfg
[
'rf_driver'
],
dict
(
args
=
'dev0=/dev/sdr1@1,dev1=/dev/sdr1@2,dev2=/dev/sdr1@3,dev3=/dev/sdr1@4'
,
args
=
'dev0=/dev/sdr1@1,dev1=/dev/sdr1@2,dev2=/dev/sdr1@3,dev3=/dev/sdr1@4'
,
cpri_mapping
=
'bf1,bf1,bf1,bf1'
,
cpri_mapping
=
'bf1,bf1,bf1,bf1'
,
cpri_mult
=
'5,5,5,5'
,
cpri_mult
=
'5,5,5,5'
,
...
@@ -677,7 +677,7 @@ class RUMultiType:
...
@@ -677,7 +677,7 @@ class RUMultiType:
# radio units configuration in enb.cfg
# radio units configuration in enb.cfg
def
test_enb_conf_ru
(
t
):
def
test_enb_conf_ru
(
t
):
assertMatch
(
t
,
t
.
enb
_cfg
[
'rf_driver'
],
dict
(
assertMatch
(
t
,
t
.
rf
_cfg
[
'rf_driver'
],
dict
(
args
=
'dev0=/dev/sdr0@1,dev1=/dev/sdr0@2,dev2=/dev/sdr1@3,dev3=/dev/sdr1@4'
,
args
=
'dev0=/dev/sdr0@1,dev1=/dev/sdr0@2,dev2=/dev/sdr1@3,dev3=/dev/sdr1@4'
,
cpri_mapping
=
'hw,hw,bf1,bf1'
,
cpri_mapping
=
'hw,hw,bf1,bf1'
,
cpri_mult
=
'4,4,5,5'
,
cpri_mult
=
'4,4,5,5'
,
...
...
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