Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Smelkov
slapos
Commits
75a9a6b0
Commit
75a9a6b0
authored
Jan 03, 2024
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
692872f6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
32 deletions
+36
-32
software/ors-amarisoft/test/test.py
software/ors-amarisoft/test/test.py
+35
-31
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 @
75a9a6b0
...
...
@@ -42,19 +42,42 @@ def yload(path):
return
yaml
.
load
(
data_
,
Loader
=
yaml
.
Loader
)
# ---- building blocks to construct a cell ----
# XXX common enb
_
=
{
# TDD/FDD are basic parameters to indicate TDD/FDD mode.
TDD
=
{
'rf_mode'
:
'tdd'
}
FDD
=
{
'rf_mode'
:
'fdd'
}
# LTE/NR return basic parameters for an LTE/NR cell with given downlink frequency and bandwidth.
def
LTE
(
dl_earfcn
,
bandwidth
):
return
{
'cell_type'
:
'lte'
,
'dl_earfcn'
:
dl_earfcn
,
'bandwidth'
:
'%g MHz'
%
bandwidth
,
}
def
NR
(
dl_nr_arfcn
,
nr_band
,
bandwidth
):
return
{
'cell_type'
:
'nr'
,
'dl_nr_arfcn'
:
dl_nr_arfcn
,
'nr_band'
:
nr_band
,
'bandwidth'
:
bandwidth
,
}
# CENB returns basic parameters to indicate a ENB-kind cell.
def
CENB
(
cell_id
,
pci
=
1
,
tac
=
0x1234
):
return
{
'cell_kind'
:
'enb'
,
'pci'
:
1
,
# XXX
'cell_id'
:
'0x01'
,
# XXX
'tac'
:
'0x1234'
,
}
'cell_id'
:
'0x%02x'
%
cell_id
,
'pci'
:
pci
,
'tac'
:
'0x%x'
%
tac
,
}
# XXX common uesim
_
=
{
'cell_kind'
:
'ue'
,
}
# CUE indicates a UE-kind cell.
CUE
=
{
'cell_kind'
:
'ue'
}
# ----
PEER4
=
{
...
...
@@ -95,25 +118,6 @@ PEERCELL5 = {
# XXX explain ENB does not support mixing SDR + CPRI
# TDD/FDD are basic parameters to indicate a TDD/FDD mode.
TDD
=
{
'rf_mode'
:
'tdd'
}
FDD
=
{
'rf_mode'
:
'fdd'
}
# LTE/NR return basic parameters for an LTE/NR cell with given downlink frequency and bandwidth.
def
LTE
(
dl_earfcn
,
bandwidth
):
return
{
'cell_type'
:
'lte'
,
'dl_earfcn'
:
dl_earfcn
,
'bandwidth'
:
'%g MHz'
%
bandwidth
,
}
def
NR
(
dl_nr_arfcn
,
nr_band
,
bandwidth
):
return
{
'cell_type'
:
'nr'
,
'dl_nr_arfcn'
:
dl_nr_arfcn
,
'nr_band'
:
nr_band
,
'bandwidth'
:
bandwidth
,
}
# XXX explain CELL_xy ... XXX goes away
CELL_4t
=
LTE
(
38050
,
5
)
|
TDD
# 2600 MHz
CELL_5t
=
NR
(
523020
,
41
,
10
)
|
TDD
# 2615.1 MHz
...
...
@@ -141,7 +145,7 @@ class ENBTestCase(AmariTestCase):
# ref returns full reference of shared instance with given subreference.
#
# for example if ref
rence of main isn
tance is 'MAIN-INSTANCE'
# for example if ref
erence of main ins
tance is 'MAIN-INSTANCE'
#
# ref('RU') = 'MAIN-INSTANCE.RU'
@
classmethod
...
...
software/ors-amarisoft/test/test.sh
View file @
75a9a6b0
...
...
@@ -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
...
...
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