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
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Lu Xu
slapos
Commits
4a7f6b9d
Commit
4a7f6b9d
authored
Jan 10, 2024
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
39bd7525
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
13 deletions
+13
-13
software/ors-amarisoft/test/test.py
software/ors-amarisoft/test/test.py
+11
-11
software/ors-amarisoft/test/test.sh
software/ors-amarisoft/test/test.sh
+2
-2
No files found.
software/ors-amarisoft/test/test.py
View file @
4a7f6b9d
...
...
@@ -299,14 +299,14 @@ class ENBTestCase4(RFTestCase4):
'inactivity_timer'
:
1000
+
i
}
# basic enb parameters
def
test_enb_c
onf
_basic
(
t
):
def
test_enb_c
fg
_basic
(
t
):
assertMatch
(
t
,
t
.
enb_cfg
,
dict
(
enb_id
=
0x17
,
gnb_id
=
0x23
,
gnb_id_bits
=
30
,
x2_peers
=
[
'44.1.1.1'
],
xn_peers
=
[
'55.1.1.1'
],
))
# basic cell parameters
def
test_enb_c
onf
_cell
(
t
):
def
test_enb_c
fg
_cell
(
t
):
assertMatch
(
t
,
t
.
enb_cfg
[
'cell_list'
],
[
dict
(
# CELL1
uldl_config
=
NO
,
rf_port
=
0
,
n_antenna_dl
=
4
,
n_antenna_ul
=
2
,
...
...
@@ -347,7 +347,7 @@ class ENBTestCase4(RFTestCase4):
# Carrier Aggregation
def
test_enb_c
onf
_ca
(
t
):
def
test_enb_c
fg
_ca
(
t
):
assertMatch
(
t
,
t
.
enb_cfg
[
'cell_list'
],
[
{
# CELL1
'scell_list'
:
[{
'cell_id'
:
2
}],
# LTE + LTE
...
...
@@ -370,7 +370,7 @@ class ENBTestCase4(RFTestCase4):
# Handover
def
test_enb_c
onf
_ho
(
t
):
def
test_enb_c
fg
_ho
(
t
):
assertMatch
(
t
,
t
.
enb_cfg
[
'cell_list'
],
[
{
# CELL1
'ncell_list'
:
[
...
...
@@ -418,7 +418,7 @@ class SDR4:
}
# radio units configuration
def
test_enb_c
onf
_ru
(
t
):
# XXX enb/ue ?
def
test_enb_c
fg
_ru
(
t
):
# XXX enb/ue ?
assertMatch
(
t
,
t
.
rf_cfg
[
'rf_driver'
],
dict
(
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'
,
...
...
@@ -450,7 +450,7 @@ class Lopcomm4:
}
# radio units configuration in enb.cfg
def
test_enb_c
onf
_ru
(
t
):
def
test_enb_c
fg
_ru
(
t
):
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'
,
cpri_mapping
=
'hw,hw,hw,hw'
,
...
...
@@ -461,7 +461,7 @@ class Lopcomm4:
))
# RU configuration in cu_config.xml
def
test_ru_cu_c
fg
(
t
):
def
test_ru_cu_c
onfig_xml
(
t
):
def
uctx
(
rf_mode
,
cell_type
,
dl_arfcn
,
ul_arfcn
,
bw
,
dl_freq
,
ul_freq
,
tx_gain
,
rx_gain
):
return
{
'tx-array-carriers'
:
{
...
...
@@ -548,7 +548,7 @@ class Sunwave4:
}
# radio units configuration in enb.cfg
def
test_enb_c
onf
_ru
(
t
):
def
test_enb_c
fg
_ru
(
t
):
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'
,
cpri_mapping
=
'bf1,bf1,bf1,bf1'
,
...
...
@@ -571,7 +571,7 @@ class RUMultiType4:
return
Sunwave4
.
RUcfg
(
i
)
# radio units configuration in enb.cfg
def
test_enb_c
onf
_ru
(
t
):
def
test_enb_c
fg
_ru
(
t
):
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'
,
cpri_mapping
=
'hw,hw,bf1,bf1'
,
...
...
@@ -637,7 +637,7 @@ class UEsimTestCase4(RFTestCase4):
UE
(
3
)
# ue parameters
def
test_ue
sim
_ue
(
t
):
def
test_ue
_cfg
_ue
(
t
):
assertMatch
(
t
,
t
.
ue_cfg
[
'ue_list'
],
[
dict
(
as_release
=
13
,
ue_category
=
13
,
rue_addr
=
'host1'
,
...
...
@@ -666,7 +666,7 @@ class UEsimTestCase4(RFTestCase4):
])
# cells
def
test_ue
sim_conf
_cell
(
t
):
def
test_ue
_cfg
_cell
(
t
):
assertMatch
(
t
,
t
.
ue_cfg
[
'cell_groups'
],
[
dict
(
group_type
=
'lte'
,
...
...
software/ors-amarisoft/test/test.sh
View file @
4a7f6b9d
...
...
@@ -18,7 +18,7 @@ export SLAPOS_TEST_LOG_DIRECTORY=`pwd`/snapshot
#time ../k/kpython_for_test -m unittest discover -vf -k SimCard
#time ../k/kpython_for_test -m unittest discover -vf
#time ../k/kpython_for_test -m unittest discover -vf -k TestENB_
#
time ../k/kpython_for_test -m unittest discover -vf -k TestENB_SDR
time
../k/kpython_for_test
-m
unittest discover
-vf
-k
TestENB_SDR
#time ../k/kpython_for_test -m unittest discover -vf -k TestENB_Lopcomm
#time ../k/kpython_for_test -m unittest discover -vf -k TestENB_Sunwave
#time ../k/kpython_for_test -m unittest discover -vf -k TestENB_RUMultiType
...
...
@@ -27,4 +27,4 @@ export SLAPOS_TEST_LOG_DIRECTORY=`pwd`/snapshot
#time ../k/kpython_for_test -m unittest discover -vf -k TestUEsim_Lopcomm
#time ../k/kpython_for_test -m unittest discover -vf -k TestUEsim_Sunwave
#time ../k/kpython_for_test -m unittest discover -vf -k TestUEsim_RUMultiType
time
../k/kpython_for_test
-m
unittest discover
-v
-k
TestAssert
#
time ../k/kpython_for_test -m unittest discover -v -k TestAssert
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