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
539af4fd
Commit
539af4fd
authored
Dec 28, 2023
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
0351d5e0
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
15 deletions
+10
-15
software/ors-amarisoft/buildout.hash.cfg
software/ors-amarisoft/buildout.hash.cfg
+1
-1
software/ors-amarisoft/cell/common.json
software/ors-amarisoft/cell/common.json
+1
-2
software/ors-amarisoft/test/test.py
software/ors-amarisoft/test/test.py
+1
-0
software/ors-amarisoft/test/test_ors.py
software/ors-amarisoft/test/test_ors.py
+7
-12
No files found.
software/ors-amarisoft/buildout.hash.cfg
View file @
539af4fd
...
...
@@ -20,7 +20,7 @@ md5sum = f7c9582099537c507b2a25e537b17716
[template-ors]
filename = instance-ors.cfg
md5sum =
8bd6d5390f33cf1d56502b49cf9da52f
md5sum =
f5c76c3443b75569eb18503dce38e783
[slaplte.jinja2]
_update_hash_filename_ = slaplte.jinja2
...
...
software/ors-amarisoft/cell/common.json
View file @
539af4fd
...
...
@@ -39,8 +39,7 @@
"cell_id"
:
{
"title"
:
"Cell ID"
,
"description"
:
"Cell ID"
,
"type"
:
"string"
,
"default"
:
"0x01"
"type"
:
"string"
},
"root_sequence_index"
:
{
"title"
:
"Root Sequence Index"
,
...
...
software/ors-amarisoft/test/test.py
View file @
539af4fd
...
...
@@ -60,6 +60,7 @@ class TestUELTEParameters(ORSTestCase): # XXX adjust
self.assertEqual(conf['tx_gain'], param_dict['tx_gain'])
self.assertEqual(conf['rx_gain'], param_dict['rx_gain'])
1/0 # XXX self.assertEqual(cell['n_rb_dl'], 50)
with open(conf_file, 'r') as f:
for l in f:
if l.startswith('#define N_RB_DL'):
...
...
software/ors-amarisoft/test/test_ors.py
View file @
539af4fd
...
...
@@ -166,34 +166,28 @@ def test_enb_conf(self):
self
.
assertEqual
(
cell
[
'inactivity_timer'
],
enb_param_dict
[
'inactivity_timer'
])
self
.
assertEqual
(
cell
[
'uldl_config'
],
6
)
self
.
assertEqual
(
cell
[
'dl_earfcn'
],
enb_param_dict
[
'dl_earfcn'
])
# XXX + ul_earfcn ?
self
.
assertEqual
(
cell
[
'n_rb_dl'
],
50
)
self
.
assertEqual
(
conf
[
'enb_id'
],
int
(
enb_param_dict
[
'enb_id'
],
16
))
self
.
assertEqual
(
c
onf
[
'cell_list'
][
0
]
[
'n_id_cell'
],
enb_param_dict
[
'pci'
])
self
.
assertEqual
(
c
onf
[
'cell_list'
][
0
]
[
'tac'
],
int
(
enb_param_dict
[
'tac'
],
16
))
self
.
assertEqual
(
c
onf
[
'cell_list'
][
0
]
[
'root_sequence_index'
],
int
(
enb_param_dict
[
'root_sequence_index'
]))
# self.assertEqual(conf['cell_list'][0]['cell_id'], 0) XXX reenable + -> 1 + remove defaults from g
self
.
assertEqual
(
c
ell
[
'n_id_cell'
],
enb_param_dict
[
'pci'
])
self
.
assertEqual
(
c
ell
[
'tac'
],
int
(
enb_param_dict
[
'tac'
],
16
))
self
.
assertEqual
(
c
ell
[
'root_sequence_index'
],
int
(
enb_param_dict
[
'root_sequence_index'
]))
self
.
assertEqual
(
cell
[
'cell_id'
],
1
)
for
p
in
conf
[
'cell_default'
][
'plmn_list'
]:
for
n
in
"plmn attach_without_pdn reserved"
.
split
():
self
.
assertEqual
(
p
[
n
],
enb_param_dict
[
'plmn_list'
][
p
[
'plmn'
]][
n
])
for
p
in
conf
[
'mme_list'
]:
self
.
assertEqual
(
p
[
'mme_addr'
],
enb_param_dict
[
'mme_list'
][
p
[
'mme_addr'
]][
'mme_addr'
])
for
p
in
c
onf
[
'cell_list'
][
0
]
[
'ncell_list'
]:
for
p
in
c
ell
[
'ncell_list'
]:
for
k
in
enb_param_dict
[
'ncell_list'
]:
if
p
[
'dl_earfcn'
]
==
gnb_param_dict1
[
'ncell_list'
][
k
][
'dl_earfcn'
]:
break
conf_ncell
=
enb_param_dict
[
'ncell_list'
][
k
]
self
.
assertEqual
(
p
[
'dl_earfcn'
],
conf_ncell
[
'dl_earfcn'
])
# XXX + ul_earfcn
self
.
assertEqual
(
p
[
'n_id_cell'
],
conf_ncell
[
'pci'
])
self
.
assertEqual
(
p
[
'cell_id'
],
int
(
conf_ncell
[
'cell_id'
],
16
))
self
.
assertEqual
(
p
[
'tac'
],
conf_ncell
[
'tac'
])
with
open
(
conf_file
,
'r'
)
as
f
:
for
l
in
f
:
if
l
.
startswith
(
'#define N_RB_DL'
):
self
.
assertIn
(
'50'
,
l
)
def
test_gnb_conf1
(
self
):
conf_file
=
glob
.
glob
(
os
.
path
.
join
(
...
...
@@ -237,6 +231,7 @@ def test_gnb_conf1(self):
self
.
assertEqual
(
int
(
tdd_config
[
'ul_slots'
]),
1
)
self
.
assertEqual
(
int
(
tdd_config
[
'ul_symbols'
]),
2
)
1
/
0
# XXX
with
open
(
conf_file
,
'r'
)
as
f
:
for
l
in
f
:
if
l
.
startswith
(
'#define NR_BANDWIDTH'
):
...
...
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