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
23f090a7
Commit
23f090a7
authored
Sep 21, 2022
by
Lu Xu
👀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add tests
parent
94538336
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
77 additions
and
17 deletions
+77
-17
software/ors-amarisoft/buildout.hash.cfg
software/ors-amarisoft/buildout.hash.cfg
+2
-2
software/ors-amarisoft/config/ue-nr.jinja2.cfg
software/ors-amarisoft/config/ue-nr.jinja2.cfg
+2
-2
software/ors-amarisoft/instance-ue-nr.jinja2.cfg
software/ors-amarisoft/instance-ue-nr.jinja2.cfg
+3
-3
software/ors-amarisoft/test/test.jinja2.py
software/ors-amarisoft/test/test.jinja2.py
+14
-2
software/ors-amarisoft/test/testTDD1900.py
software/ors-amarisoft/test/testTDD1900.py
+14
-2
software/ors-amarisoft/test/testTDD2600.py
software/ors-amarisoft/test/testTDD2600.py
+14
-2
software/ors-amarisoft/test/testTDD3500.py
software/ors-amarisoft/test/testTDD3500.py
+14
-2
software/ors-amarisoft/test/testTDD3700.py
software/ors-amarisoft/test/testTDD3700.py
+14
-2
No files found.
software/ors-amarisoft/buildout.hash.cfg
View file @
23f090a7
...
...
@@ -48,7 +48,7 @@ md5sum = db6bd2f8100df126296f37ecf1845454
[template-lte-ue-nr]
_update_hash_filename_ = instance-ue-nr.jinja2.cfg
md5sum =
bdad76520681f0484b0a289761f5e8a9
md5sum =
cf592371fcc1546f995cef5b4a1af80c
[ue_db.jinja2.cfg]
filename = config/ue_db.jinja2.cfg
...
...
@@ -84,7 +84,7 @@ md5sum = d3304e9b256632a565a281d81573440e
[ue-nr.jinja2.cfg]
filename = config/ue-nr.jinja2.cfg
md5sum =
f2d65c78e0b5ad055c64fd02eabee0b5
md5sum =
05a7a7088b6fa88c5482eeca013d53d7
[sdr-busy-promise]
_update_hash_filename_ = promise/check_sdr_busy.jinja2.py
...
...
software/ors-amarisoft/config/ue-nr.jinja2.cfg
View file @
23f090a7
...
...
@@ -7,8 +7,8 @@ rf_driver: {
args: "dev0=/dev/sdr0",
rx_antenna:"tx_rx",
},
tx_gain: {{ slapparameter_dict.get('tx_gain', slap_configuration['configuration.default_
lte
_tx_gain']) }},
rx_gain: {{ slapparameter_dict.get('rx_gain', slap_configuration['configuration.default_
lte
_rx_gain']) }},
tx_gain: {{ slapparameter_dict.get('tx_gain', slap_configuration['configuration.default_
nr
_tx_gain']) }},
rx_gain: {{ slapparameter_dict.get('rx_gain', slap_configuration['configuration.default_
nr
_rx_gain']) }},
cell_groups: [{
group_type: "nr",
multi_ue: false,
...
...
software/ors-amarisoft/instance-ue-nr.jinja2.cfg
View file @
23f090a7
...
...
@@ -24,6 +24,7 @@ cert = {{ slap_connection['cert-file'] }}
configuration.default_dl_nr_arfcn = {{ default_dl_nr_arfcn }}
configuration.default_nr_bandwidth = {{ default_nr_bandwidth }}
configuration.default_nr_band = {{ default_nr_band}}
configuration.default_nr_tx_gain = {{ default_nr_tx_gain }}
configuration.default_nr_rx_gain = {{ default_nr_rx_gain }}
configuration.default_ssb_nr_arfcn = {{ default_ssb_nr_arfcn }}
...
...
@@ -75,13 +76,13 @@ inline =
[lte-ue-service]
recipe = slapos.cookbook:wrapper
init = ${ltelogs:output} ${directory:log}/ue.log; sleep 2
command-line = ${lte-enb
-sh-wrapper:output}
Fcommand-line = ${lte-ue
-sh-wrapper:output}
wrapper-path = ${directory:service}/lte-ue
mode = 0775
reserve-cpu = True
pidfile = ${directory:run}/ue.pid
hash-files =
${lte-ue-config:output}
${lte-ue-
nr-
config:output}
${lte-ue-sh-wrapper:output}
environment =
LD_LIBRARY_PATH={{ openssl_location }}/lib
...
...
@@ -94,7 +95,6 @@ context =
section directory directory
section slap_configuration slap-configuration
key slapparameter_dict slap-configuration:configuration
raw sib23 {{ sib23 }}
[lte-ue-nr-config]
<= config-base
...
...
software/ors-amarisoft/test/test.jinja2.py
View file @
23f090a7
...
...
@@ -324,7 +324,7 @@ class TestGNBEPCSimCard(ORSTestCase):
self
.
slap
.
waitForInstance
()
# Wait until publish is done
test_ue_db
(
self
)
class
TestUELTE
SimCard
(
ORSTestCase
):
class
TestUELTE
Parameters
(
ORSTestCase
):
@
classmethod
def
getInstanceParameterDict
(
cls
):
return
{
'_'
:
json
.
dumps
(
epc_param_dict
)}
...
...
@@ -338,8 +338,13 @@ class TestUELTESimCard(ORSTestCase):
with
open
(
conf_file
,
'r'
)
as
f
:
conf
=
yaml
.
load
(
f
)
self
.
assertEqual
(
conf
[
'dl_earfcn'
],
ue_param_dict
[
'dl_earfcn'
])
self
.
assertEqual
(
conf
[
'tx_gain'
],
ue_param_dict
[
'tx_gain'
])
self
.
assertEqual
(
conf
[
'rx_gain'
],
ue_param_dict
[
'rx_gain'
])
self
.
assertEqual
(
conf
[
'lte_n_rb_dl'
],
ue_param_dict
[
'lte_n_rb_dl'
])
self
.
assertEqual
(
conf
[
'lte_imsi'
],
ue_param_dict
[
'lte_imsi'
])
self
.
assertEqual
(
conf
[
'lte_k'
],
ue_param_dict
[
'lte_k'
])
class
TestUENR
SimCard
(
ORSTestCase
):
class
TestUENR
Parameters
(
ORSTestCase
):
@
classmethod
def
getInstanceParameterDict
(
cls
):
return
{
'_'
:
json
.
dumps
(
epc_param_dict
)}
...
...
@@ -353,3 +358,10 @@ class TestUENRSimCard(ORSTestCase):
with
open
(
conf_file
,
'r'
)
as
f
:
conf
=
yaml
.
load
(
f
)
self
.
assertEqual
(
conf
[
'ssb-nr-arfcn'
],
ue_param_dict
[
'ssb-nr-arfcn'
])
self
.
assertEqual
(
conf
[
'dl_nr_arfcn'
],
ue_param_dict
[
'dl_nr_arfcn'
])
self
.
assertEqual
(
conf
[
'nr_bandwidth'
],
ue_param_dict
[
'nr_bandwidth'
])
self
.
assertEqual
(
conf
[
'nr_band'
],
ue_param_dict
[
'nr_band'
])
self
.
assertEqual
(
conf
[
'nr_tx_gain'
],
ue_param_dict
[
'nr_tx_gain'
])
self
.
assertEqual
(
conf
[
'nr_rx_gain'
],
ue_param_dict
[
'nr_rx_gain'
])
self
.
assertEqual
(
conf
[
'nr_imsi'
],
ue_param_dict
[
'nr_imsi'
])
self
.
assertEqual
(
conf
[
'nr_k'
],
ue_param_dict
[
'nr_k'
])
software/ors-amarisoft/test/testTDD1900.py
View file @
23f090a7
...
...
@@ -324,7 +324,7 @@ class TestGNBEPCSimCard(ORSTestCase):
self
.
slap
.
waitForInstance
()
# Wait until publish is done
test_ue_db
(
self
)
class
TestUELTE
SimCard
(
ORSTestCase
):
class
TestUELTE
Parameters
(
ORSTestCase
):
@
classmethod
def
getInstanceParameterDict
(
cls
):
return
{
'_'
:
json
.
dumps
(
epc_param_dict
)}
...
...
@@ -338,8 +338,13 @@ class TestUELTESimCard(ORSTestCase):
with
open
(
conf_file
,
'r'
)
as
f
:
conf
=
yaml
.
load
(
f
)
self
.
assertEqual
(
conf
[
'dl_earfcn'
],
ue_param_dict
[
'dl_earfcn'
])
self
.
assertEqual
(
conf
[
'tx_gain'
],
ue_param_dict
[
'tx_gain'
])
self
.
assertEqual
(
conf
[
'rx_gain'
],
ue_param_dict
[
'rx_gain'
])
self
.
assertEqual
(
conf
[
'lte_n_rb_dl'
],
ue_param_dict
[
'lte_n_rb_dl'
])
self
.
assertEqual
(
conf
[
'lte_imsi'
],
ue_param_dict
[
'lte_imsi'
])
self
.
assertEqual
(
conf
[
'lte_k'
],
ue_param_dict
[
'lte_k'
])
class
TestUENR
SimCard
(
ORSTestCase
):
class
TestUENR
Parameters
(
ORSTestCase
):
@
classmethod
def
getInstanceParameterDict
(
cls
):
return
{
'_'
:
json
.
dumps
(
epc_param_dict
)}
...
...
@@ -353,3 +358,10 @@ class TestUENRSimCard(ORSTestCase):
with
open
(
conf_file
,
'r'
)
as
f
:
conf
=
yaml
.
load
(
f
)
self
.
assertEqual
(
conf
[
'ssb-nr-arfcn'
],
ue_param_dict
[
'ssb-nr-arfcn'
])
self
.
assertEqual
(
conf
[
'dl_nr_arfcn'
],
ue_param_dict
[
'dl_nr_arfcn'
])
self
.
assertEqual
(
conf
[
'nr_bandwidth'
],
ue_param_dict
[
'nr_bandwidth'
])
self
.
assertEqual
(
conf
[
'nr_band'
],
ue_param_dict
[
'nr_band'
])
self
.
assertEqual
(
conf
[
'nr_tx_gain'
],
ue_param_dict
[
'nr_tx_gain'
])
self
.
assertEqual
(
conf
[
'nr_rx_gain'
],
ue_param_dict
[
'nr_rx_gain'
])
self
.
assertEqual
(
conf
[
'nr_imsi'
],
ue_param_dict
[
'nr_imsi'
])
self
.
assertEqual
(
conf
[
'nr_k'
],
ue_param_dict
[
'nr_k'
])
software/ors-amarisoft/test/testTDD2600.py
View file @
23f090a7
...
...
@@ -324,7 +324,7 @@ class TestGNBEPCSimCard(ORSTestCase):
self
.
slap
.
waitForInstance
()
# Wait until publish is done
test_ue_db
(
self
)
class
TestUELTE
SimCard
(
ORSTestCase
):
class
TestUELTE
Parameters
(
ORSTestCase
):
@
classmethod
def
getInstanceParameterDict
(
cls
):
return
{
'_'
:
json
.
dumps
(
epc_param_dict
)}
...
...
@@ -338,8 +338,13 @@ class TestUELTESimCard(ORSTestCase):
with
open
(
conf_file
,
'r'
)
as
f
:
conf
=
yaml
.
load
(
f
)
self
.
assertEqual
(
conf
[
'dl_earfcn'
],
ue_param_dict
[
'dl_earfcn'
])
self
.
assertEqual
(
conf
[
'tx_gain'
],
ue_param_dict
[
'tx_gain'
])
self
.
assertEqual
(
conf
[
'rx_gain'
],
ue_param_dict
[
'rx_gain'
])
self
.
assertEqual
(
conf
[
'lte_n_rb_dl'
],
ue_param_dict
[
'lte_n_rb_dl'
])
self
.
assertEqual
(
conf
[
'lte_imsi'
],
ue_param_dict
[
'lte_imsi'
])
self
.
assertEqual
(
conf
[
'lte_k'
],
ue_param_dict
[
'lte_k'
])
class
TestUENR
SimCard
(
ORSTestCase
):
class
TestUENR
Parameters
(
ORSTestCase
):
@
classmethod
def
getInstanceParameterDict
(
cls
):
return
{
'_'
:
json
.
dumps
(
epc_param_dict
)}
...
...
@@ -353,3 +358,10 @@ class TestUENRSimCard(ORSTestCase):
with
open
(
conf_file
,
'r'
)
as
f
:
conf
=
yaml
.
load
(
f
)
self
.
assertEqual
(
conf
[
'ssb-nr-arfcn'
],
ue_param_dict
[
'ssb-nr-arfcn'
])
self
.
assertEqual
(
conf
[
'dl_nr_arfcn'
],
ue_param_dict
[
'dl_nr_arfcn'
])
self
.
assertEqual
(
conf
[
'nr_bandwidth'
],
ue_param_dict
[
'nr_bandwidth'
])
self
.
assertEqual
(
conf
[
'nr_band'
],
ue_param_dict
[
'nr_band'
])
self
.
assertEqual
(
conf
[
'nr_tx_gain'
],
ue_param_dict
[
'nr_tx_gain'
])
self
.
assertEqual
(
conf
[
'nr_rx_gain'
],
ue_param_dict
[
'nr_rx_gain'
])
self
.
assertEqual
(
conf
[
'nr_imsi'
],
ue_param_dict
[
'nr_imsi'
])
self
.
assertEqual
(
conf
[
'nr_k'
],
ue_param_dict
[
'nr_k'
])
software/ors-amarisoft/test/testTDD3500.py
View file @
23f090a7
...
...
@@ -324,7 +324,7 @@ class TestGNBEPCSimCard(ORSTestCase):
self
.
slap
.
waitForInstance
()
# Wait until publish is done
test_ue_db
(
self
)
class
TestUELTE
SimCard
(
ORSTestCase
):
class
TestUELTE
Parameters
(
ORSTestCase
):
@
classmethod
def
getInstanceParameterDict
(
cls
):
return
{
'_'
:
json
.
dumps
(
epc_param_dict
)}
...
...
@@ -338,8 +338,13 @@ class TestUELTESimCard(ORSTestCase):
with
open
(
conf_file
,
'r'
)
as
f
:
conf
=
yaml
.
load
(
f
)
self
.
assertEqual
(
conf
[
'dl_earfcn'
],
ue_param_dict
[
'dl_earfcn'
])
self
.
assertEqual
(
conf
[
'tx_gain'
],
ue_param_dict
[
'tx_gain'
])
self
.
assertEqual
(
conf
[
'rx_gain'
],
ue_param_dict
[
'rx_gain'
])
self
.
assertEqual
(
conf
[
'lte_n_rb_dl'
],
ue_param_dict
[
'lte_n_rb_dl'
])
self
.
assertEqual
(
conf
[
'lte_imsi'
],
ue_param_dict
[
'lte_imsi'
])
self
.
assertEqual
(
conf
[
'lte_k'
],
ue_param_dict
[
'lte_k'
])
class
TestUENR
SimCard
(
ORSTestCase
):
class
TestUENR
Parameters
(
ORSTestCase
):
@
classmethod
def
getInstanceParameterDict
(
cls
):
return
{
'_'
:
json
.
dumps
(
epc_param_dict
)}
...
...
@@ -353,3 +358,10 @@ class TestUENRSimCard(ORSTestCase):
with
open
(
conf_file
,
'r'
)
as
f
:
conf
=
yaml
.
load
(
f
)
self
.
assertEqual
(
conf
[
'ssb-nr-arfcn'
],
ue_param_dict
[
'ssb-nr-arfcn'
])
self
.
assertEqual
(
conf
[
'dl_nr_arfcn'
],
ue_param_dict
[
'dl_nr_arfcn'
])
self
.
assertEqual
(
conf
[
'nr_bandwidth'
],
ue_param_dict
[
'nr_bandwidth'
])
self
.
assertEqual
(
conf
[
'nr_band'
],
ue_param_dict
[
'nr_band'
])
self
.
assertEqual
(
conf
[
'nr_tx_gain'
],
ue_param_dict
[
'nr_tx_gain'
])
self
.
assertEqual
(
conf
[
'nr_rx_gain'
],
ue_param_dict
[
'nr_rx_gain'
])
self
.
assertEqual
(
conf
[
'nr_imsi'
],
ue_param_dict
[
'nr_imsi'
])
self
.
assertEqual
(
conf
[
'nr_k'
],
ue_param_dict
[
'nr_k'
])
software/ors-amarisoft/test/testTDD3700.py
View file @
23f090a7
...
...
@@ -324,7 +324,7 @@ class TestGNBEPCSimCard(ORSTestCase):
self
.
slap
.
waitForInstance
()
# Wait until publish is done
test_ue_db
(
self
)
class
TestUELTE
SimCard
(
ORSTestCase
):
class
TestUELTE
Parameters
(
ORSTestCase
):
@
classmethod
def
getInstanceParameterDict
(
cls
):
return
{
'_'
:
json
.
dumps
(
epc_param_dict
)}
...
...
@@ -338,8 +338,13 @@ class TestUELTESimCard(ORSTestCase):
with
open
(
conf_file
,
'r'
)
as
f
:
conf
=
yaml
.
load
(
f
)
self
.
assertEqual
(
conf
[
'dl_earfcn'
],
ue_param_dict
[
'dl_earfcn'
])
self
.
assertEqual
(
conf
[
'tx_gain'
],
ue_param_dict
[
'tx_gain'
])
self
.
assertEqual
(
conf
[
'rx_gain'
],
ue_param_dict
[
'rx_gain'
])
self
.
assertEqual
(
conf
[
'lte_n_rb_dl'
],
ue_param_dict
[
'lte_n_rb_dl'
])
self
.
assertEqual
(
conf
[
'lte_imsi'
],
ue_param_dict
[
'lte_imsi'
])
self
.
assertEqual
(
conf
[
'lte_k'
],
ue_param_dict
[
'lte_k'
])
class
TestUENR
SimCard
(
ORSTestCase
):
class
TestUENR
Parameters
(
ORSTestCase
):
@
classmethod
def
getInstanceParameterDict
(
cls
):
return
{
'_'
:
json
.
dumps
(
epc_param_dict
)}
...
...
@@ -353,3 +358,10 @@ class TestUENRSimCard(ORSTestCase):
with
open
(
conf_file
,
'r'
)
as
f
:
conf
=
yaml
.
load
(
f
)
self
.
assertEqual
(
conf
[
'ssb-nr-arfcn'
],
ue_param_dict
[
'ssb-nr-arfcn'
])
self
.
assertEqual
(
conf
[
'dl_nr_arfcn'
],
ue_param_dict
[
'dl_nr_arfcn'
])
self
.
assertEqual
(
conf
[
'nr_bandwidth'
],
ue_param_dict
[
'nr_bandwidth'
])
self
.
assertEqual
(
conf
[
'nr_band'
],
ue_param_dict
[
'nr_band'
])
self
.
assertEqual
(
conf
[
'nr_tx_gain'
],
ue_param_dict
[
'nr_tx_gain'
])
self
.
assertEqual
(
conf
[
'nr_rx_gain'
],
ue_param_dict
[
'nr_rx_gain'
])
self
.
assertEqual
(
conf
[
'nr_imsi'
],
ue_param_dict
[
'nr_imsi'
])
self
.
assertEqual
(
conf
[
'nr_k'
],
ue_param_dict
[
'nr_k'
])
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