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
90fbc26d
Commit
90fbc26d
authored
Jan 04, 2024
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
965ac914
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
18 deletions
+21
-18
software/ors-amarisoft/test/test.py
software/ors-amarisoft/test/test.py
+20
-17
software/ors-amarisoft/test/test.sh
software/ors-amarisoft/test/test.sh
+1
-1
No files found.
software/ors-amarisoft/test/test.py
View file @
90fbc26d
...
...
@@ -226,7 +226,8 @@ class TestENB_SDR(ENBTestCase):
'ru_ref'
:
cls
.
ref
(
'SDR%d'
%
i
),
}
}
cell
.
update
(
CENB
(
i
,
10
+
i
,
0x1234
))
cell
.
update
(
CENB
(
i
,
0x10
+
i
,
0x100
+
i
))
cell
.
update
({
'root_sequence_index'
:
200
+
i
})
cell
.
update
(
ctx
)
cls
.
requestShared
(
imain
,
'SDR%d.CELL'
%
i
,
cell
)
...
...
@@ -248,13 +249,9 @@ class TestENB_SDR(ENBTestCase):
self
.
assertEqual
(
conf
[
'tx_gain'
],
[
11
]
*
4
+
[
12
]
*
4
+
[
13
]
*
4
+
[
14
]
*
4
)
self
.
assertEqual
(
conf
[
'rx_gain'
],
[
21
]
*
2
+
[
22
]
*
2
+
[
23
]
*
2
+
[
24
]
*
2
)
cell_list
=
conf
[
'cell_list'
]
nr_cell_list
=
conf
[
'nr_cell_list'
]
self
.
assertEqual
(
len
(
cell_list
),
2
)
self
.
assertEqual
(
len
(
nr_cell_list
),
2
)
# assertDict asserts that d slice with keys from dok == dok.
# dok[k]=NO means d[k] must be absent.
# XXX -> assertDictMatch ?
class
NOClass
:
def
__repr__
(
self
):
return
'ø'
...
...
@@ -265,20 +262,26 @@ class TestENB_SDR(ENBTestCase):
d_
[
k
]
=
d
.
get
(
k
,
NO
)
self
.
assertEqual
(
d_
,
dok
)
cell_list
=
conf
[
'cell_list'
]
nr_cell_list
=
conf
[
'nr_cell_list'
]
self
.
assertEqual
(
len
(
cell_list
),
2
)
self
.
assertEqual
(
len
(
nr_cell_list
),
2
)
assertDict
(
cell_list
[
0
],
dict
(
rf_port
=
0
,
n_antenna_dl
=
4
,
n_antenna_ul
=
2
,
cell_id
=
0x01
,
n_id_cell
=
11
,
tac
=
0x1234
,
dl_earfcn
=
100
,
ul_earfcn
=
18100
,
uldl_config
=
NO
,
rf_port
=
0
,
n_antenna_dl
=
4
,
n_antenna_ul
=
2
,
dl_earfcn
=
100
,
ul_earfcn
=
18100
,
n_rb_dl
=
25
,
uldl_config
=
NO
,
root_sequence_index
=
204
cell_id
=
0x1
,
n_id_cell
=
0x11
,
tac
=
0x101
,
root_sequence_index
=
201
,
))
assertDict
(
cell_list
[
1
],
dict
(
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
,
))
# XXX inactivity_timer
# XXX CELLs
...
...
software/ors-amarisoft/test/test.sh
View file @
90fbc26d
...
...
@@ -3,7 +3,7 @@
(
cd
..
&&
/usr/bin/python3 ../../update-hash
)
export
SLAPOS_TEST_DEBUG
=
1
export
SLAPOS_TEST_VERBOSE
=
0
export
SLAPOS_TEST_VERBOSE
=
1
export
SLAPOS_TEST_SKIP_SOFTWARE_CHECK
=
1
export
SLAPOS_TEST_SKIP_SOFTWARE_REBUILD
=
1
...
...
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