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
e375e508
Commit
e375e508
authored
Dec 28, 2023
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
37f84d20
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
software/ors-amarisoft/test/test.sh
software/ors-amarisoft/test/test.sh
+1
-1
software/ors-amarisoft/test/test_ors.py
software/ors-amarisoft/test/test_ors.py
+8
-4
No files found.
software/ors-amarisoft/test/test.sh
View file @
e375e508
...
...
@@ -5,7 +5,7 @@
export
SLAPOS_TEST_DEBUG
=
1
export
SLAPOS_TEST_VERBOSE
=
0
export
SLAPOS_TEST_SKIP_SOFTWARE_CHECK
=
1
export
SLAPOS_TEST_SKIP_SOFTWARE_REBUILD
=
0
export
SLAPOS_TEST_SKIP_SOFTWARE_REBUILD
=
1
rm
-rf
snapshot
mkdir
snapshot
...
...
software/ors-amarisoft/test/test_ors.py
View file @
e375e508
...
...
@@ -162,6 +162,7 @@ def test_enb_conf(self):
self
.
assertEqual
(
conf
[
'tx_gain'
],
[
enb_param_dict
[
'tx_gain'
]]
*
enb_param_dict
[
'n_antenna_dl'
])
self
.
assertEqual
(
conf
[
'rx_gain'
],
[
enb_param_dict
[
'rx_gain'
]]
*
enb_param_dict
[
'n_antenna_ul'
])
self
.
assertEqual
(
len
(
conf
[
'cell_list'
]),
1
)
self
.
assertEqual
(
len
(
conf
[
'nr_cell_list'
]),
0
)
cell
=
conf
[
'cell_list'
][
0
]
self
.
assertEqual
(
cell
[
'inactivity_timer'
],
enb_param_dict
[
'inactivity_timer'
])
self
.
assertEqual
(
cell
[
'uldl_config'
],
6
)
...
...
@@ -191,12 +192,15 @@ def test_enb_conf(self):
def
test_gnb_conf1
(
self
):
conf_file
=
glob
.
glob
(
os
.
path
.
join
(
self
.
slap
.
instance_directory
,
'*'
,
'etc'
,
'
g
nb.cfg'
))[
0
]
self
.
slap
.
instance_directory
,
'*'
,
'etc'
,
'
e
nb.cfg'
))[
0
]
conf
=
yload
(
conf_file
)
self
.
assertEqual
(
conf
[
'tx_gain'
],
gnb_param_dict1
[
'tx_gain'
])
self
.
assertEqual
(
conf
[
'rx_gain'
],
gnb_param_dict1
[
'rx_gain'
])
self
.
assertEqual
(
conf
[
'nr_cell_default'
][
'inactivity_timer'
],
gnb_param_dict1
[
'inactivity_timer'
])
self
.
assertEqual
(
conf
[
'tx_gain'
],
[
gnb_param_dict1
[
'tx_gain'
]]
*
gnb_param_dict1
[
'n_antenna_dl'
])
self
.
assertEqual
(
conf
[
'rx_gain'
],
[
gnb_param_dict1
[
'rx_gain'
]]
*
gnb_param_dict1
[
'n_antenna_ul'
])
self
.
assertEqual
(
len
(
conf
[
'cell_list'
]),
0
)
self
.
assertEqual
(
len
(
conf
[
'nr_cell_list'
]),
1
)
nr_cell
=
conf
[
'nr_cell_list'
][
0
]
self
.
assertEqual
(
nr_cell
[
'inactivity_timer'
],
gnb_param_dict1
[
'inactivity_timer'
])
self
.
assertEqual
(
conf
[
'nr_cell_list'
][
0
][
'dl_nr_arfcn'
],
gnb_param_dict1
[
'dl_nr_arfcn'
])
# XXX + ul_nr_arfcn ?
self
.
assertEqual
(
conf
[
'nr_cell_list'
][
0
][
'band'
],
gnb_param_dict1
[
'nr_band'
])
...
...
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