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
lizhongxiao
OpenXG-RAN
Commits
cf55b03f
Commit
cf55b03f
authored
Mar 14, 2019
by
Raphael Defosseux
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CI: rru command line options are checked if applied
Signed-off-by:
Raphael Defosseux
<
raphael.defosseux@eurecom.fr
>
parent
872a99fb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
3 deletions
+20
-3
ci-scripts/main.py
ci-scripts/main.py
+18
-1
ci-scripts/xml_files/if4p5_usrp210_band40_test_05mhz.xml
ci-scripts/xml_files/if4p5_usrp210_band40_test_05mhz.xml
+2
-2
No files found.
ci-scripts/main.py
View file @
cf55b03f
...
@@ -100,6 +100,8 @@ class SSHConnection():
...
@@ -100,6 +100,8 @@ class SSHConnection():
self
.
Initialize_eNB_args
=
''
self
.
Initialize_eNB_args
=
''
self
.
eNBLogFile
=
''
self
.
eNBLogFile
=
''
self
.
eNB_instance
=
''
self
.
eNB_instance
=
''
self
.
eNBOptions
=
''
self
.
rruOptions
=
''
self
.
ping_args
=
''
self
.
ping_args
=
''
self
.
ping_packetloss_threshold
=
''
self
.
ping_packetloss_threshold
=
''
self
.
iperf_args
=
''
self
.
iperf_args
=
''
...
@@ -412,6 +414,7 @@ class SSHConnection():
...
@@ -412,6 +414,7 @@ class SSHConnection():
self
.
command
(
'cd '
+
self
.
eNBSourceCodePath
,
'\$'
,
5
)
self
.
command
(
'cd '
+
self
.
eNBSourceCodePath
,
'\$'
,
5
)
# Initialize_eNB_args usually start with -O and followed by the location in repository
# Initialize_eNB_args usually start with -O and followed by the location in repository
full_config_file
=
self
.
Initialize_eNB_args
.
replace
(
'-O '
,
''
)
full_config_file
=
self
.
Initialize_eNB_args
.
replace
(
'-O '
,
''
)
extra_options
=
''
extIdx
=
full_config_file
.
find
(
'.conf'
)
extIdx
=
full_config_file
.
find
(
'.conf'
)
if
(
extIdx
>
0
):
if
(
extIdx
>
0
):
extra_options
=
full_config_file
[
extIdx
+
5
:]
extra_options
=
full_config_file
[
extIdx
+
5
:]
...
@@ -455,6 +458,8 @@ class SSHConnection():
...
@@ -455,6 +458,8 @@ class SSHConnection():
self
.
command
(
'echo '
+
self
.
eNBPassword
+
' | sudo -S -E daemon --inherit --unsafe --name=enb'
+
str
(
self
.
eNB_instance
)
+
'_daemon --chdir='
+
self
.
eNBSourceCodePath
+
'/cmake_targets -o '
+
self
.
eNBSourceCodePath
+
'/cmake_targets/enb_'
+
self
.
testCase_id
+
'.log ./my-lte-softmodem-run'
+
str
(
self
.
eNB_instance
)
+
'.sh'
,
'\$'
,
5
)
self
.
command
(
'echo '
+
self
.
eNBPassword
+
' | sudo -S -E daemon --inherit --unsafe --name=enb'
+
str
(
self
.
eNB_instance
)
+
'_daemon --chdir='
+
self
.
eNBSourceCodePath
+
'/cmake_targets -o '
+
self
.
eNBSourceCodePath
+
'/cmake_targets/enb_'
+
self
.
testCase_id
+
'.log ./my-lte-softmodem-run'
+
str
(
self
.
eNB_instance
)
+
'.sh'
,
'\$'
,
5
)
if
not
rruCheck
:
if
not
rruCheck
:
self
.
eNBLogFile
=
'enb_'
+
self
.
testCase_id
+
'.log'
self
.
eNBLogFile
=
'enb_'
+
self
.
testCase_id
+
'.log'
if
extra_options
!=
''
:
self
.
eNBOptions
=
extra_options
time
.
sleep
(
6
)
time
.
sleep
(
6
)
doLoop
=
True
doLoop
=
True
loopCounter
=
10
loopCounter
=
10
...
@@ -493,6 +498,8 @@ class SSHConnection():
...
@@ -493,6 +498,8 @@ class SSHConnection():
time
.
sleep
(
6
)
time
.
sleep
(
6
)
else
:
else
:
doLoop
=
False
doLoop
=
False
if
rruCheck
and
extra_options
!=
''
:
self
.
rruOptions
=
extra_options
self
.
CreateHtmlTestRow
(
'-O '
+
config_file
+
extra_options
,
'OK'
,
ALL_PROCESSES_OK
)
self
.
CreateHtmlTestRow
(
'-O '
+
config_file
+
extra_options
,
'OK'
,
ALL_PROCESSES_OK
)
logging
.
debug
(
'
\u001B
[1m Initialize eNB Completed
\u001B
[0m'
)
logging
.
debug
(
'
\u001B
[1m Initialize eNB Completed
\u001B
[0m'
)
...
@@ -1755,7 +1762,18 @@ class SSHConnection():
...
@@ -1755,7 +1762,18 @@ class SSHConnection():
uciStatMsgCount
=
0
uciStatMsgCount
=
0
pdcpFailure
=
0
pdcpFailure
=
0
ulschFailure
=
0
ulschFailure
=
0
self
.
htmleNBFailureMsg
=
''
for
line
in
enb_log_file
.
readlines
():
for
line
in
enb_log_file
.
readlines
():
if
self
.
rruOptions
!=
''
:
res1
=
re
.
search
(
'max_rxgain (?P<requested_option>[0-9]+)'
,
self
.
rruOptions
)
res2
=
re
.
search
(
'max_rxgain (?P<applied_option>[0-9]+)'
,
str
(
line
))
if
res1
is
not
None
and
res2
is
not
None
:
requested_option
=
int
(
res1
.
group
(
'requested_option'
))
applied_option
=
int
(
res2
.
group
(
'applied_option'
))
if
requested_option
==
applied_option
:
self
.
htmleNBFailureMsg
+=
'<span class="glyphicon glyphicon-ok-circle"></span> Command line option(s) correctly applied <span class="glyphicon glyphicon-arrow-right"></span> '
+
self
.
rruOptions
+
'
\n\n
'
else
:
self
.
htmleNBFailureMsg
+=
'<span class="glyphicon glyphicon-ban-circle"></span> Command line option(s) NOT applied <span class="glyphicon glyphicon-arrow-right"></span> '
+
self
.
rruOptions
+
'
\n\n
'
result
=
re
.
search
(
'[Ss]egmentation [Ff]ault'
,
str
(
line
))
result
=
re
.
search
(
'[Ss]egmentation [Ff]ault'
,
str
(
line
))
if
result
is
not
None
:
if
result
is
not
None
:
foundSegFault
=
True
foundSegFault
=
True
...
@@ -1811,7 +1829,6 @@ class SSHConnection():
...
@@ -1811,7 +1829,6 @@ class SSHConnection():
if
result
is
not
None
:
if
result
is
not
None
:
rachCanceledProcedure
+=
1
rachCanceledProcedure
+=
1
enb_log_file
.
close
()
enb_log_file
.
close
()
self
.
htmleNBFailureMsg
=
''
if
uciStatMsgCount
>
0
:
if
uciStatMsgCount
>
0
:
statMsg
=
'eNB showed '
+
str
(
uciStatMsgCount
)
+
' "uci->stat" message(s)'
statMsg
=
'eNB showed '
+
str
(
uciStatMsgCount
)
+
' "uci->stat" message(s)'
logging
.
debug
(
'
\u001B
[1;30;43m '
+
statMsg
+
'
\u001B
[0m'
)
logging
.
debug
(
'
\u001B
[1;30;43m '
+
statMsg
+
'
\u001B
[0m'
)
...
...
ci-scripts/xml_files/if4p5_usrp210_band40_test_05mhz.xml
View file @
cf55b03f
...
@@ -34,14 +34,14 @@
...
@@ -34,14 +34,14 @@
<testCase
id=
"030104"
>
<testCase
id=
"030104"
>
<class>
Initialize_eNB
</class>
<class>
Initialize_eNB
</class>
<desc>
Initialize RRU (TDD/Band40)
</desc>
<desc>
Initialize RRU (TDD/Band40)
</desc>
<Initialize_eNB_args>
-O ci-scripts/conf_files/rru.tdd.band40.conf
</Initialize_eNB_args>
<Initialize_eNB_args>
-O ci-scripts/conf_files/rru.tdd.band40.conf
--RUs.[0].max_rxgain 125
</Initialize_eNB_args>
<eNB_instance>
0
</eNB_instance>
<eNB_instance>
0
</eNB_instance>
</testCase>
</testCase>
<testCase
id=
"030105"
>
<testCase
id=
"030105"
>
<class>
Initialize_eNB
</class>
<class>
Initialize_eNB
</class>
<desc>
Initialize RCC (TDD/Band40/5MHz)
</desc>
<desc>
Initialize RCC (TDD/Band40/5MHz)
</desc>
<Initialize_eNB_args>
-O ci-scripts/conf_files/rcc.band40.tm1.25PRB.FairScheduler.usrpb210.conf
--RUs.[0].max_rxgain 125
</Initialize_eNB_args>
<Initialize_eNB_args>
-O ci-scripts/conf_files/rcc.band40.tm1.25PRB.FairScheduler.usrpb210.conf
</Initialize_eNB_args>
<eNB_instance>
1
</eNB_instance>
<eNB_instance>
1
</eNB_instance>
</testCase>
</testCase>
...
...
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