Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
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
zzha zzha
OpenXG-RAN
Commits
0d66711f
Commit
0d66711f
authored
Mar 01, 2022
by
hardy
Committed by
Robert Schmidt
Oct 18, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add retx checkers to end-to-end tests
parent
3bc86d69
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
19 additions
and
4 deletions
+19
-4
ci-scripts/cls_oaicitest.py
ci-scripts/cls_oaicitest.py
+1
-1
ci-scripts/main.py
ci-scripts/main.py
+8
-0
ci-scripts/ran.py
ci-scripts/ran.py
+4
-3
ci-scripts/xml_files/fr1_sa_quectel.xml
ci-scripts/xml_files/fr1_sa_quectel.xml
+2
-0
ci-scripts/xml_files/fr1_sa_quectel_162prb.xml
ci-scripts/xml_files/fr1_sa_quectel_162prb.xml
+2
-0
ci-scripts/xml_files/fr1_sa_quectel_stages.xml
ci-scripts/xml_files/fr1_sa_quectel_stages.xml
+2
-0
No files found.
ci-scripts/cls_oaicitest.py
View file @
0d66711f
...
@@ -3128,7 +3128,7 @@ class OaiCiTest():
...
@@ -3128,7 +3128,7 @@ class OaiCiTest():
fileCheck
=
re
.
search
(
'enb_'
,
str
(
RAN
.
eNBLogFiles
[
0
]))
fileCheck
=
re
.
search
(
'enb_'
,
str
(
RAN
.
eNBLogFiles
[
0
]))
if
fileCheck
is
not
None
:
if
fileCheck
is
not
None
:
SSH
.
copyin
(
RAN
.
eNBIPAddress
,
RAN
.
eNBUserName
,
RAN
.
eNBPassword
,
RAN
.
eNBSourceCodePath
+
'/cmake_targets/'
+
RAN
.
eNBLogFiles
[
0
],
'.'
)
SSH
.
copyin
(
RAN
.
eNBIPAddress
,
RAN
.
eNBUserName
,
RAN
.
eNBPassword
,
RAN
.
eNBSourceCodePath
+
'/cmake_targets/'
+
RAN
.
eNBLogFiles
[
0
],
'.'
)
logStatus
=
RAN
.
AnalyzeLogFile_eNB
(
RAN
.
eNBLogFiles
[
0
])
logStatus
=
RAN
.
AnalyzeLogFile_eNB
(
RAN
.
eNBLogFiles
[
0
]
,
HTML
,
RAN
.
ran_checkers
)
if
logStatus
<
0
:
if
logStatus
<
0
:
result
=
logStatus
result
=
logStatus
RAN
.
eNBLogFiles
[
0
]
=
''
RAN
.
eNBLogFiles
[
0
]
=
''
...
...
ci-scripts/main.py
View file @
0d66711f
...
@@ -199,6 +199,14 @@ def GetParametersFromXML(action):
...
@@ -199,6 +199,14 @@ def GetParametersFromXML(action):
else
:
else
:
RAN
.
eNB_serverId
[
RAN
.
eNB_instance
]
=
eNB_serverId
RAN
.
eNB_serverId
[
RAN
.
eNB_instance
]
=
eNB_serverId
#retx checkers
string_field
=
test
.
findtext
(
'd_retx_th'
)
if
(
string_field
is
not
None
):
RAN
.
ran_checkers
[
'd_retx_th'
]
=
[
float
(
x
)
for
x
in
string_field
.
split
(
','
)]
string_field
=
test
.
findtext
(
'u_retx_th'
)
if
(
string_field
is
not
None
):
RAN
.
ran_checkers
[
'u_retx_th'
]
=
[
float
(
x
)
for
x
in
string_field
.
split
(
','
)]
#local variable air_interface
#local variable air_interface
air_interface
=
test
.
findtext
(
'air_interface'
)
air_interface
=
test
.
findtext
(
'air_interface'
)
if
(
air_interface
is
None
)
or
(
air_interface
.
lower
()
not
in
[
'nr'
,
'lte'
,
'ocp'
]):
if
(
air_interface
is
None
)
or
(
air_interface
.
lower
()
not
in
[
'nr'
,
'lte'
,
'ocp'
]):
...
...
ci-scripts/ran.py
View file @
0d66711f
...
@@ -97,7 +97,8 @@ class RANManagement():
...
@@ -97,7 +97,8 @@ class RANManagement():
self
.
eNB_Trace
=
''
#if 'yes', Tshark will be launched at initialization
self
.
eNB_Trace
=
''
#if 'yes', Tshark will be launched at initialization
self
.
eNB_Stats
=
''
#if 'yes', Statistics Monitor will be launched at initialization
self
.
eNB_Stats
=
''
#if 'yes', Statistics Monitor will be launched at initialization
self
.
USRPIPAddress
=
''
self
.
USRPIPAddress
=
''
#checkers from xml
self
.
ran_checkers
=
{}
#-----------------------------------------------------------
#-----------------------------------------------------------
...
@@ -680,7 +681,7 @@ class RANManagement():
...
@@ -680,7 +681,7 @@ class RANManagement():
mySSH
.
close
()
mySSH
.
close
()
mySSH
.
copyin
(
lIpAddr
,
lUserName
,
lPassWord
,
lSourcePath
+
'/cmake_targets/'
+
extracted_log_file
,
'.'
)
mySSH
.
copyin
(
lIpAddr
,
lUserName
,
lPassWord
,
lSourcePath
+
'/cmake_targets/'
+
extracted_log_file
,
'.'
)
logging
.
debug
(
'
\u001B
[1m Analyzing eNB replay logfile
\u001B
[0m'
)
logging
.
debug
(
'
\u001B
[1m Analyzing eNB replay logfile
\u001B
[0m'
)
logStatus
=
self
.
AnalyzeLogFile_eNB
(
extracted_log_file
,
HTML
)
logStatus
=
self
.
AnalyzeLogFile_eNB
(
extracted_log_file
,
HTML
,
self
.
ran_checkers
)
HTML
.
CreateHtmlTestRow
(
self
.
runtime_stats
,
'OK'
,
CONST
.
ALL_PROCESSES_OK
)
HTML
.
CreateHtmlTestRow
(
self
.
runtime_stats
,
'OK'
,
CONST
.
ALL_PROCESSES_OK
)
self
.
eNBLogFiles
[
int
(
self
.
eNB_instance
)]
=
''
self
.
eNBLogFiles
[
int
(
self
.
eNB_instance
)]
=
''
else
:
else
:
...
@@ -713,7 +714,7 @@ class RANManagement():
...
@@ -713,7 +714,7 @@ class RANManagement():
#
#
mySSH
.
copyout
(
self
.
eNBIPAddress
,
self
.
eNBUserName
,
self
.
eNBPassword
,
'./'
+
fileToAnalyze
,
self
.
eNBSourceCodePath
+
'/cmake_targets/'
)
mySSH
.
copyout
(
self
.
eNBIPAddress
,
self
.
eNBUserName
,
self
.
eNBPassword
,
'./'
+
fileToAnalyze
,
self
.
eNBSourceCodePath
+
'/cmake_targets/'
)
logging
.
debug
(
'
\u001B
[1m Analyzing '
+
nodeB_prefix
+
'NB logfile
\u001B
[0m '
+
fileToAnalyze
)
logging
.
debug
(
'
\u001B
[1m Analyzing '
+
nodeB_prefix
+
'NB logfile
\u001B
[0m '
+
fileToAnalyze
)
logStatus
=
self
.
AnalyzeLogFile_eNB
(
fileToAnalyze
,
HTML
)
logStatus
=
self
.
AnalyzeLogFile_eNB
(
fileToAnalyze
,
HTML
,
self
.
ran_checkers
)
if
(
logStatus
<
0
):
if
(
logStatus
<
0
):
HTML
.
CreateHtmlTestRow
(
'N/A'
,
'KO'
,
logStatus
)
HTML
.
CreateHtmlTestRow
(
'N/A'
,
'KO'
,
logStatus
)
#display rt stats for gNB only
#display rt stats for gNB only
...
...
ci-scripts/xml_files/fr1_sa_quectel.xml
View file @
0d66711f
...
@@ -143,6 +143,8 @@
...
@@ -143,6 +143,8 @@
<eNB_instance>
0
</eNB_instance>
<eNB_instance>
0
</eNB_instance>
<eNB_serverId>
0
</eNB_serverId>
<eNB_serverId>
0
</eNB_serverId>
<air_interface>
nr
</air_interface>
<air_interface>
nr
</air_interface>
<d_retx_th>
5,50,100,100
</d_retx_th>
<u_retx_th>
5,50,100,100
</u_retx_th>
</testCase>
</testCase>
</testCaseList>
</testCaseList>
...
...
ci-scripts/xml_files/fr1_sa_quectel_162prb.xml
View file @
0d66711f
...
@@ -133,6 +133,8 @@
...
@@ -133,6 +133,8 @@
<eNB_instance>
0
</eNB_instance>
<eNB_instance>
0
</eNB_instance>
<eNB_serverId>
0
</eNB_serverId>
<eNB_serverId>
0
</eNB_serverId>
<air_interface>
nr
</air_interface>
<air_interface>
nr
</air_interface>
<d_retx_th>
5,50,100,100
</d_retx_th>
<u_retx_th>
5,50,100,100
</u_retx_th>
</testCase>
</testCase>
</testCaseList>
</testCaseList>
...
...
ci-scripts/xml_files/fr1_sa_quectel_stages.xml
View file @
0d66711f
...
@@ -169,6 +169,8 @@
...
@@ -169,6 +169,8 @@
<eNB_instance>
0
</eNB_instance>
<eNB_instance>
0
</eNB_instance>
<eNB_serverId>
0
</eNB_serverId>
<eNB_serverId>
0
</eNB_serverId>
<air_interface>
nr
</air_interface>
<air_interface>
nr
</air_interface>
<d_retx_th>
5,50,100,100
</d_retx_th>
<u_retx_th>
5,50,100,100
</u_retx_th>
</testCase>
</testCase>
</testCaseList>
</testCaseList>
...
...
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