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
常顺宇
OpenXG-RAN
Commits
36a9f701
Commit
36a9f701
authored
Jul 19, 2019
by
Raphael Defosseux
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CI: initial support for X2 HO (net control)
Signed-off-by:
Raphael Defosseux
<
raphael.defosseux@eurecom.fr
>
parent
d07d91c2
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
293 additions
and
133 deletions
+293
-133
ci-scripts/Jenkinsfile-gitlab
ci-scripts/Jenkinsfile-gitlab
+22
-1
ci-scripts/main.py
ci-scripts/main.py
+192
-6
ci-scripts/xml_files/f1_usrp210_band7_test_05mhz.xml
ci-scripts/xml_files/f1_usrp210_band7_test_05mhz.xml
+0
-1
ci-scripts/xml_files/x2ho_enb_usrp210_band13_full_terminate.xml
...ipts/xml_files/x2ho_enb_usrp210_band13_full_terminate.xml
+46
-0
ci-scripts/xml_files/x2ho_enb_usrp210_band13_test_05mhz_tm1.xml
...ipts/xml_files/x2ho_enb_usrp210_band13_test_05mhz_tm1.xml
+33
-125
No files found.
ci-scripts/Jenkinsfile-gitlab
View file @
36a9f701
...
...
@@ -44,7 +44,7 @@ pipeline {
disableConcurrentBuilds
()
timestamps
()
gitLabConnection
(
'OAI GitLab'
)
gitlabBuilds
(
builds:
[
"Build eNb-USRP"
,
"Build basic-sim"
,
"Build phy-sim"
,
"Build eNb-ethernet"
,
"Build UE-ethernet"
,
"Analysis with cppcheck"
,
"Test phy-sim"
,
"Test basic-sim"
,
"Test L2-sim"
,
"Test-Mono-FDD-Band7"
,
"Test-Mono-TDD-Band40"
,
"Test-IF4p5-FDD-Band7"
,
"Test-IF4p5-TDD-Band40"
,
"Test-Mono-FDD-Band13"
,
"Test-IF4p5-TDD-Band38-Multi-RRU"
])
gitlabBuilds
(
builds:
[
"Build eNb-USRP"
,
"Build basic-sim"
,
"Build phy-sim"
,
"Build eNb-ethernet"
,
"Build UE-ethernet"
,
"Analysis with cppcheck"
,
"Test phy-sim"
,
"Test basic-sim"
,
"Test L2-sim"
,
"Test-Mono-FDD-Band7"
,
"Test-Mono-TDD-Band40"
,
"Test-IF4p5-FDD-Band7"
,
"Test-IF4p5-TDD-Band40"
,
"Test-Mono-FDD-Band13"
,
"Test-IF4p5-TDD-Band38-Multi-RRU"
,
"Test-Mono-FDD-Band13-X2-HO"
])
ansiColor
(
'xterm'
)
}
...
...
@@ -481,6 +481,26 @@ pipeline {
}
}
}
stage
(
"Test X2 Handover - FDD - Band 13 - B210"
)
{
steps
{
script
{
sh
"sleep 60"
triggerSlaveJob
(
'eNB-CI-MONO-FDD-Band13-X2HO-B210'
,
'Test-Mono-FDD-Band13-X2-HO'
)
}
}
post
{
always
{
script
{
finalizeSlaveJob
(
'eNB-CI-MONO-FDD-Band13-X2HO-B210'
)
}
}
failure
{
script
{
currentBuild
.
result
=
'FAILURE'
}
}
}
}
stage
(
"Test IF4p5 - TDD - Band 38 - B210 - MultiRRU"
)
{
steps
{
script
{
...
...
@@ -523,6 +543,7 @@ pipeline {
stage
(
"Test MONOLITHIC - FDD - Band 13 - B210"
)
{
steps
{
script
{
sh
"sleep 60"
triggerSlaveJob
(
'eNB-CI-MONO-FDD-Band13-B210'
,
'Test-Mono-FDD-Band13'
)
}
}
...
...
ci-scripts/main.py
View file @
36a9f701
...
...
@@ -63,6 +63,12 @@ UE_STATUS_DETACHING = 1
UE_STATUS_ATTACHING
=
2
UE_STATUS_ATTACHED
=
3
X2_HO_REQ_STATE__IDLE
=
0
X2_HO_REQ_STATE__TARGET_RECEIVES_REQ
=
1
X2_HO_REQ_STATE__TARGET_RRC_RECFG_COMPLETE
=
2
X2_HO_REQ_STATE__TARGET_SENDS_SWITCH_REQ
=
3
X2_HO_REQ_STATE__SOURCE_RECEIVES_REQ_ACK
=
10
#-----------------------------------------------------------
# Import
#-----------------------------------------------------------
...
...
@@ -144,6 +150,10 @@ class SSHConnection():
self
.
htmlUEFailureMsg
=
''
self
.
picocom_closure
=
False
self
.
idle_sleep_time
=
0
self
.
x2_ho_options
=
'network'
self
.
x2NbENBs
=
0
self
.
x2ENBBsIds
=
[]
self
.
x2ENBConnectedUEs
=
[]
self
.
htmlTabRefs
=
[]
self
.
htmlTabNames
=
[]
self
.
htmlTabIcons
=
[]
...
...
@@ -792,7 +802,10 @@ class SSHConnection():
# self.command('stdbuf -o0 adb -s ' + device_id + ' shell am broadcast -a android.intent.action.AIRPLANE_MODE --ez state true', '\$', 60)
# a dedicated script has to be installed inside the UE
# airplane mode on means call /data/local/tmp/off
self
.
command
(
'stdbuf -o0 adb -s '
+
device_id
+
' shell /data/local/tmp/off'
,
'\$'
,
60
)
if
device_id
==
'84B7N16418004022'
:
self
.
command
(
'stdbuf -o0 adb -s '
+
device_id
+
' shell "su - root -c /data/local/tmp/off"'
,
'\$'
,
60
)
else
:
self
.
command
(
'stdbuf -o0 adb -s '
+
device_id
+
' shell /data/local/tmp/off'
,
'\$'
,
60
)
#airplane mode off means call /data/local/tmp/on
logging
.
debug
(
'
\u001B
[1mUE ('
+
device_id
+
') Initialize Completed
\u001B
[0m'
)
self
.
close
()
...
...
@@ -1179,7 +1192,10 @@ class SSHConnection():
def
AttachUE_common
(
self
,
device_id
,
statusQueue
,
lock
):
try
:
self
.
open
(
self
.
ADBIPAddress
,
self
.
ADBUserName
,
self
.
ADBPassword
)
self
.
command
(
'stdbuf -o0 adb -s '
+
device_id
+
' shell /data/local/tmp/on'
,
'\$'
,
60
)
if
device_id
==
'84B7N16418004022'
:
self
.
command
(
'stdbuf -o0 adb -s '
+
device_id
+
' shell "su - root -c /data/local/tmp/on"'
,
'\$'
,
60
)
else
:
self
.
command
(
'stdbuf -o0 adb -s '
+
device_id
+
' shell /data/local/tmp/on'
,
'\$'
,
60
)
time
.
sleep
(
2
)
max_count
=
45
count
=
max_count
...
...
@@ -1206,9 +1222,15 @@ class SSHConnection():
count
=
count
-
1
if
count
==
15
or
count
==
30
:
logging
.
debug
(
'
\u001B
[1;30;43m Retry UE ('
+
device_id
+
') Flight Mode Off
\u001B
[0m'
)
self
.
command
(
'stdbuf -o0 adb -s '
+
device_id
+
' shell /data/local/tmp/off'
,
'\$'
,
60
)
if
device_id
==
'84B7N16418004022'
:
self
.
command
(
'stdbuf -o0 adb -s '
+
device_id
+
' shell "su - root -c /data/local/tmp/off"'
,
'\$'
,
60
)
else
:
self
.
command
(
'stdbuf -o0 adb -s '
+
device_id
+
' shell /data/local/tmp/off'
,
'\$'
,
60
)
time
.
sleep
(
0.5
)
self
.
command
(
'stdbuf -o0 adb -s '
+
device_id
+
' shell /data/local/tmp/on'
,
'\$'
,
60
)
if
device_id
==
'84B7N16418004022'
:
self
.
command
(
'stdbuf -o0 adb -s '
+
device_id
+
' shell "su - root -c /data/local/tmp/on"'
,
'\$'
,
60
)
else
:
self
.
command
(
'stdbuf -o0 adb -s '
+
device_id
+
' shell /data/local/tmp/on'
,
'\$'
,
60
)
time
.
sleep
(
0.5
)
logging
.
debug
(
'
\u001B
[1mWait UE ('
+
device_id
+
') a second until mDataConnectionState=2 ('
+
str
(
max_count
-
count
)
+
' times)
\u001B
[0m'
)
time
.
sleep
(
1
)
...
...
@@ -1285,7 +1307,10 @@ class SSHConnection():
def
DetachUE_common
(
self
,
device_id
):
try
:
self
.
open
(
self
.
ADBIPAddress
,
self
.
ADBUserName
,
self
.
ADBPassword
)
self
.
command
(
'stdbuf -o0 adb -s '
+
device_id
+
' shell /data/local/tmp/off'
,
'\$'
,
60
)
if
device_id
==
'84B7N16418004022'
:
self
.
command
(
'stdbuf -o0 adb -s '
+
device_id
+
' shell "su - root -c /data/local/tmp/off"'
,
'\$'
,
60
)
else
:
self
.
command
(
'stdbuf -o0 adb -s '
+
device_id
+
' shell /data/local/tmp/off'
,
'\$'
,
60
)
logging
.
debug
(
'
\u001B
[1mUE ('
+
device_id
+
') Detach Completed
\u001B
[0m'
)
self
.
close
()
except
:
...
...
@@ -2678,7 +2703,36 @@ class SSHConnection():
isRRU
=
False
isSlave
=
False
slaveReceivesFrameResyncCmd
=
False
X2HO_state
=
X2_HO_REQ_STATE__IDLE
X2HO_inNbProcedures
=
0
X2HO_outNbProcedures
=
0
for
line
in
enb_log_file
.
readlines
():
if
X2HO_state
==
X2_HO_REQ_STATE__IDLE
:
result
=
re
.
search
(
'target eNB Receives X2 HO Req X2AP_HANDOVER_REQ'
,
str
(
line
))
if
result
is
not
None
:
X2HO_state
=
X2_HO_REQ_STATE__TARGET_RECEIVES_REQ
result
=
re
.
search
(
'source eNB receives the X2 HO ACK X2AP_HANDOVER_REQ_ACK'
,
str
(
line
))
if
result
is
not
None
:
X2HO_state
=
X2_HO_REQ_STATE__SOURCE_RECEIVES_REQ_ACK
if
X2HO_state
==
X2_HO_REQ_STATE__TARGET_RECEIVES_REQ
:
result
=
re
.
search
(
'Received LTE_RRCConnectionReconfigurationComplete from UE'
,
str
(
line
))
if
result
is
not
None
:
X2HO_state
=
X2_HO_REQ_STATE__TARGET_RRC_RECFG_COMPLETE
if
X2HO_state
==
X2_HO_REQ_STATE__TARGET_RRC_RECFG_COMPLETE
:
result
=
re
.
search
(
'issue rrc_eNB_send_PATH_SWITCH_REQ'
,
str
(
line
))
if
result
is
not
None
:
X2HO_state
=
X2_HO_REQ_STATE__TARGET_SENDS_SWITCH_REQ
if
X2HO_state
==
X2_HO_REQ_STATE__TARGET_SENDS_SWITCH_REQ
:
result
=
re
.
search
(
'received path switch ack S1AP_PATH_SWITCH_REQ_ACK'
,
str
(
line
))
if
result
is
not
None
:
X2HO_state
=
X2_HO_REQ_STATE__IDLE
X2HO_inNbProcedures
+=
1
if
X2HO_state
==
X2_HO_REQ_STATE__SOURCE_RECEIVES_REQ_ACK
:
result
=
re
.
search
(
'source eNB receives the X2 UE CONTEXT RELEASE X2AP_UE_CONTEXT_RELEASE'
,
str
(
line
))
if
result
is
not
None
:
X2HO_state
=
X2_HO_REQ_STATE__IDLE
X2HO_outNbProcedures
+=
1
if
self
.
eNBOptions
[
int
(
self
.
eNB_instance
)]
!=
''
:
res1
=
re
.
search
(
'max_rxgain (?P<requested_option>[0-9]+)'
,
self
.
eNBOptions
[
int
(
self
.
eNB_instance
)])
res2
=
re
.
search
(
'max_rxgain (?P<applied_option>[0-9]+)'
,
str
(
line
))
...
...
@@ -2806,6 +2860,14 @@ class SSHConnection():
rrcMsg
=
' -- '
+
str
(
rrcReestablishReject
)
+
' were rejected'
logging
.
debug
(
'
\u001B
[1;30;43m '
+
rrcMsg
+
'
\u001B
[0m'
)
self
.
htmleNBFailureMsg
+=
rrcMsg
+
'
\n
'
if
X2HO_inNbProcedures
>
0
:
rrcMsg
=
'eNB completed '
+
str
(
X2HO_inNbProcedures
)
+
' X2 Handover Connection procedure(s)'
logging
.
debug
(
'
\u001B
[1;30;43m '
+
rrcMsg
+
'
\u001B
[0m'
)
self
.
htmleNBFailureMsg
+=
rrcMsg
+
'
\n
'
if
X2HO_outNbProcedures
>
0
:
rrcMsg
=
'eNB completed '
+
str
(
X2HO_outNbProcedures
)
+
' X2 Handover Release procedure(s)'
logging
.
debug
(
'
\u001B
[1;30;43m '
+
rrcMsg
+
'
\u001B
[0m'
)
self
.
htmleNBFailureMsg
+=
rrcMsg
+
'
\n
'
if
self
.
eNBOptions
[
int
(
self
.
eNB_instance
)]
!=
''
:
res1
=
re
.
search
(
'drx_Config_present prSetup'
,
self
.
eNBOptions
[
int
(
self
.
eNB_instance
)])
if
res1
is
not
None
:
...
...
@@ -3272,6 +3334,116 @@ class SSHConnection():
time
.
sleep
(
self
.
idle_sleep_time
)
self
.
CreateHtmlTestRow
(
str
(
self
.
idle_sleep_time
)
+
' sec'
,
'OK'
,
ALL_PROCESSES_OK
)
def
X2_Status
(
self
,
idx
,
fileName
):
cmd
=
"curl --silent http://"
+
self
.
EPCIPAddress
+
":9999/stats | jq '.' > "
+
fileName
message
=
cmd
+
'
\n
'
logging
.
debug
(
cmd
)
subprocess
.
run
(
cmd
,
shell
=
True
)
if
idx
==
0
:
cmd
=
"jq '.mac_stats | length' "
+
fileName
strNbEnbs
=
subprocess
.
check_output
(
cmd
,
shell
=
True
,
universal_newlines
=
True
)
self
.
x2NbENBs
=
int
(
strNbEnbs
.
strip
())
cnt
=
0
while
cnt
<
self
.
x2NbENBs
:
cmd
=
"jq '.mac_stats["
+
str
(
cnt
)
+
"].bs_id' "
+
fileName
bs_id
=
subprocess
.
check_output
(
cmd
,
shell
=
True
,
universal_newlines
=
True
)
self
.
x2ENBBsIds
[
idx
].
append
(
bs_id
.
strip
())
cmd
=
"jq '.mac_stats["
+
str
(
cnt
)
+
"].ue_mac_stats | length' "
+
fileName
stNbUEs
=
subprocess
.
check_output
(
cmd
,
shell
=
True
,
universal_newlines
=
True
)
nbUEs
=
int
(
stNbUEs
.
strip
())
ueIdx
=
0
self
.
x2ENBConnectedUEs
[
idx
].
append
([])
while
ueIdx
<
nbUEs
:
cmd
=
"jq '.mac_stats["
+
str
(
cnt
)
+
"].ue_mac_stats["
+
str
(
ueIdx
)
+
"].rnti' "
+
fileName
rnti
=
subprocess
.
check_output
(
cmd
,
shell
=
True
,
universal_newlines
=
True
)
self
.
x2ENBConnectedUEs
[
idx
][
cnt
].
append
(
rnti
.
strip
())
ueIdx
+=
1
cnt
+=
1
msg
=
"FlexRan Controller is connected to "
+
str
(
self
.
x2NbENBs
)
+
" eNB(s)"
logging
.
debug
(
msg
)
message
+=
msg
+
'
\n
'
cnt
=
0
while
cnt
<
self
.
x2NbENBs
:
msg
=
" -- eNB: "
+
str
(
self
.
x2ENBBsIds
[
idx
][
cnt
])
+
" is connected to "
+
str
(
len
(
self
.
x2ENBConnectedUEs
[
idx
][
cnt
]))
+
" UE(s)"
logging
.
debug
(
msg
)
message
+=
msg
+
'
\n
'
ueIdx
=
0
while
ueIdx
<
len
(
self
.
x2ENBConnectedUEs
[
idx
][
cnt
]):
msg
=
" -- UE rnti: "
+
str
(
self
.
x2ENBConnectedUEs
[
idx
][
cnt
][
ueIdx
])
logging
.
debug
(
msg
)
message
+=
msg
+
'
\n
'
ueIdx
+=
1
cnt
+=
1
return
message
def
Perform_X2_Handover
(
self
):
html_queue
=
SimpleQueue
()
fullMessage
=
'<pre style="background-color:white">'
msg
=
'Doing X2 Handover w/ option '
+
self
.
x2_ho_options
logging
.
debug
(
msg
)
fullMessage
+=
msg
+
'
\n
'
if
self
.
x2_ho_options
==
'network'
:
if
self
.
flexranCtrlInstalled
and
self
.
flexranCtrlStarted
:
self
.
x2ENBBsIds
=
[]
self
.
x2ENBConnectedUEs
=
[]
self
.
x2ENBBsIds
.
append
([])
self
.
x2ENBBsIds
.
append
([])
self
.
x2ENBConnectedUEs
.
append
([])
self
.
x2ENBConnectedUEs
.
append
([])
fullMessage
+=
self
.
X2_Status
(
0
,
self
.
testCase_id
+
'_pre_ho.json'
)
msg
=
"Activating the X2 Net control on each eNB"
logging
.
debug
(
msg
)
fullMessage
+=
msg
+
'
\n
'
eNB_cnt
=
self
.
x2NbENBs
cnt
=
0
while
cnt
<
eNB_cnt
:
cmd
=
"curl -XPOST http://"
+
self
.
EPCIPAddress
+
":9999/rrc/x2_ho_net_control/enb/"
+
str
(
self
.
x2ENBBsIds
[
0
][
cnt
])
+
"/1"
logging
.
debug
(
cmd
)
fullMessage
+=
cmd
+
'
\n
'
subprocess
.
run
(
cmd
,
shell
=
True
)
cnt
+=
1
# Waiting for the activation to be active
time
.
sleep
(
10
)
msg
=
"Switching UE(s) from eNB to eNB"
logging
.
debug
(
msg
)
fullMessage
+=
msg
+
'
\n
'
cnt
=
0
while
cnt
<
eNB_cnt
:
ueIdx
=
0
while
ueIdx
<
len
(
self
.
x2ENBConnectedUEs
[
0
][
cnt
]):
cmd
=
"curl -XPOST http://"
+
self
.
EPCIPAddress
+
":9999/rrc/ho/senb/"
+
str
(
self
.
x2ENBBsIds
[
0
][
cnt
])
+
"/ue/"
+
str
(
self
.
x2ENBConnectedUEs
[
0
][
cnt
][
ueIdx
])
+
"/tenb/"
+
str
(
self
.
x2ENBBsIds
[
0
][
eNB_cnt
-
cnt
-
1
])
logging
.
debug
(
cmd
)
fullMessage
+=
cmd
+
'
\n
'
subprocess
.
run
(
cmd
,
shell
=
True
)
ueIdx
+=
1
cnt
+=
1
time
.
sleep
(
10
)
# check
logging
.
debug
(
"Checking the Status after X2 Handover"
)
fullMessage
+=
self
.
X2_Status
(
1
,
self
.
testCase_id
+
'_post_ho.json'
)
cnt
=
0
x2Status
=
True
while
cnt
<
eNB_cnt
:
if
len
(
self
.
x2ENBConnectedUEs
[
0
][
cnt
])
==
len
(
self
.
x2ENBConnectedUEs
[
1
][
cnt
]):
x2Status
=
False
cnt
+=
1
if
x2Status
:
msg
=
"X2 Handover was successful"
logging
.
debug
(
msg
)
fullMessage
+=
msg
+
'</pre>'
html_queue
.
put
(
fullMessage
)
self
.
CreateHtmlTestRowQueue
(
'N/A'
,
'OK'
,
len
(
self
.
UEDevices
),
html_queue
)
else
:
msg
=
"X2 Handover FAILED"
logging
.
error
(
msg
)
fullMessage
+=
msg
+
'</pre>'
html_queue
.
put
(
fullMessage
)
self
.
CreateHtmlTestRowQueue
(
'N/A'
,
'OK'
,
len
(
self
.
UEDevices
),
html_queue
)
else
:
self
.
CreateHtmlTestRow
(
'Cannot perform requested X2 Handover'
,
'KO'
,
ALL_PROCESSES_OK
)
def
LogCollectBuild
(
self
):
if
(
self
.
eNBIPAddress
!=
''
and
self
.
eNBUserName
!=
''
and
self
.
eNBPassword
!=
''
):
IPAddress
=
self
.
eNBIPAddress
...
...
@@ -3785,7 +3957,7 @@ def Usage():
print
(
'------------------------------------------------------------'
)
def
CheckClassValidity
(
action
,
id
):
if
action
!=
'Build_eNB'
and
action
!=
'WaitEndBuild_eNB'
and
action
!=
'Initialize_eNB'
and
action
!=
'Terminate_eNB'
and
action
!=
'Initialize_UE'
and
action
!=
'Terminate_UE'
and
action
!=
'Attach_UE'
and
action
!=
'Detach_UE'
and
action
!=
'Build_OAI_UE'
and
action
!=
'Initialize_OAI_UE'
and
action
!=
'Terminate_OAI_UE'
and
action
!=
'DataDisable_UE'
and
action
!=
'DataEnable_UE'
and
action
!=
'CheckStatusUE'
and
action
!=
'Ping'
and
action
!=
'Iperf'
and
action
!=
'Reboot_UE'
and
action
!=
'Initialize_FlexranCtrl'
and
action
!=
'Terminate_FlexranCtrl'
and
action
!=
'Initialize_HSS'
and
action
!=
'Terminate_HSS'
and
action
!=
'Initialize_MME'
and
action
!=
'Terminate_MME'
and
action
!=
'Initialize_SPGW'
and
action
!=
'Terminate_SPGW'
and
action
!=
'Initialize_CatM_module'
and
action
!=
'Terminate_CatM_module'
and
action
!=
'Attach_CatM_module'
and
action
!=
'Detach_CatM_module'
and
action
!=
'Ping_CatM_module'
and
action
!=
'IdleSleep'
:
if
action
!=
'Build_eNB'
and
action
!=
'WaitEndBuild_eNB'
and
action
!=
'Initialize_eNB'
and
action
!=
'Terminate_eNB'
and
action
!=
'Initialize_UE'
and
action
!=
'Terminate_UE'
and
action
!=
'Attach_UE'
and
action
!=
'Detach_UE'
and
action
!=
'Build_OAI_UE'
and
action
!=
'Initialize_OAI_UE'
and
action
!=
'Terminate_OAI_UE'
and
action
!=
'DataDisable_UE'
and
action
!=
'DataEnable_UE'
and
action
!=
'CheckStatusUE'
and
action
!=
'Ping'
and
action
!=
'Iperf'
and
action
!=
'Reboot_UE'
and
action
!=
'Initialize_FlexranCtrl'
and
action
!=
'Terminate_FlexranCtrl'
and
action
!=
'Initialize_HSS'
and
action
!=
'Terminate_HSS'
and
action
!=
'Initialize_MME'
and
action
!=
'Terminate_MME'
and
action
!=
'Initialize_SPGW'
and
action
!=
'Terminate_SPGW'
and
action
!=
'Initialize_CatM_module'
and
action
!=
'Terminate_CatM_module'
and
action
!=
'Attach_CatM_module'
and
action
!=
'Detach_CatM_module'
and
action
!=
'Ping_CatM_module'
and
action
!=
'IdleSleep'
and
action
!=
'Perform_X2_Handover'
:
logging
.
debug
(
'ERROR: test-case '
+
id
+
' has wrong class '
+
action
)
return
False
return
True
...
...
@@ -3884,6 +4056,18 @@ def GetParametersFromXML(action):
else
:
SSH
.
idle_sleep_time
=
int
(
string_field
)
if
action
==
'Perform_X2_Handover'
:
string_field
=
test
.
findtext
(
'x2_ho_options'
)
if
(
string_field
is
None
):
SSH
.
x2_ho_options
=
'network'
else
:
if
string_field
!=
'network'
:
logging
.
error
(
'ERROR: test-case has wrong option '
+
string_field
)
SSH
.
x2_ho_options
=
'network'
else
:
SSH
.
x2_ho_options
=
string_field
#check if given test is in list
#it is in list if one of the strings in 'list' is at the beginning of 'test'
def
test_in_list
(
test
,
list
):
...
...
@@ -4292,6 +4476,8 @@ elif re.match('^TesteNB$', mode, re.IGNORECASE) or re.match('^TestUE$', mode, re
SSH
.
TerminateFlexranCtrl
()
elif
action
==
'IdleSleep'
:
SSH
.
IdleSleep
()
elif
action
==
'Perform_X2_Handover'
:
SSH
.
Perform_X2_Handover
()
else
:
sys
.
exit
(
'Invalid action'
)
if
SSH
.
prematureExit
:
...
...
ci-scripts/xml_files/f1_usrp210_band7_test_05mhz.xml
View file @
36a9f701
...
...
@@ -24,7 +24,6 @@
<htmlTabRef>
test-f1-05
</htmlTabRef>
<htmlTabName>
Test-F1-CU-DU-05MHz
</htmlTabName>
<htmlTabIcon>
tasks
</htmlTabIcon>
<repeatCount>
4
</repeatCount>
<repeatCount>
2
</repeatCount>
<TestCaseRequestedList>
030201
...
...
ci-scripts/xml_files/x2ho_enb_usrp210_band13_full_terminate.xml
0 → 100644
View file @
36a9f701
<!--
Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The OpenAirInterface Software Alliance licenses this file to You under
the OAI Public License, Version 1.1 (the "License"); you may not use this file
except in compliance with the License.
You may obtain a copy of the License at
http://www.openairinterface.org/?page_id=698
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
For more information about the OpenAirInterface (OAI) Software Alliance:
contact@openairinterface.org
-->
<testCaseList>
<htmlTabRef>
test-x2-ho-full-end
</htmlTabRef>
<htmlTabName>
Test-X2-HO-Full-Terminate
</htmlTabName>
<htmlTabIcon>
tasks
</htmlTabIcon>
<TestCaseRequestedList>
030201 030202
</TestCaseRequestedList>
<TestCaseExclusionList></TestCaseExclusionList>
<testCase
id=
"030201"
>
<class>
Terminate_eNB
</class>
<desc>
Terminate Master eNB
</desc>
<eNB_instance>
0
</eNB_instance>
<eNB_serverId>
0
</eNB_serverId>
</testCase>
<testCase
id=
"030202"
>
<class>
Terminate_eNB
</class>
<desc>
Terminate Slave eNB
</desc>
<eNB_instance>
1
</eNB_instance>
<eNB_serverId>
1
</eNB_serverId>
</testCase>
</testCaseList>
ci-scripts/xml_files/x2ho_enb_usrp210_band13_test_05mhz_tm1.xml
View file @
36a9f701
...
...
@@ -19,27 +19,25 @@
For more information about the OpenAirInterface (OAI) Software Alliance:
contact@openairinterface.org
030101 040301 040501 040603 040604 040605 040606 040607 040641 040642 040643 040644 040401 040201 030201
030102 000010 040301 040502 000011 040302 000001 000012 040303 000002 000013 040503 040401 040201 030201
030103 000020 040301 040504 000021 040302 000001 000022 040303 000002 040504 000023 040401 040201 030201
030101 000002 030102 040301 040501 040601 040641 050401 000002 040502 040602 040642 050402 000002 040503 040603 040643 040401 040201 030201 030202
-->
<testCaseList>
<htmlTabRef>
test-05-tm1
</htmlTabRef>
<htmlTabName>
Test-05MHz-TM1
</htmlTabName>
<htmlTabRef>
test-
x2-ho-
05-tm1
</htmlTabRef>
<htmlTabName>
Test-
X2-HO-FDD-
05MHz-TM1
</htmlTabName>
<htmlTabIcon>
tasks
</htmlTabIcon>
<TestCaseRequestedList>
030201 030202
040101
050102
030101 000002 030102 0
000
01 030201 030202
030101 000002 030102 0
40301 040501 050401 000002 040502 050402 000002 040503 040401 0402
01 030201 030202
050202
</TestCaseRequestedList>
<TestCaseExclusionList></TestCaseExclusionList>
<testCase
id=
"000001"
>
<class>
IdleSleep
</class>
<desc>
Waiting for
35
seconds
</desc>
<idle_sleep_time_in_sec>
35
</idle_sleep_time_in_sec>
<desc>
Waiting for
60
seconds
</desc>
<idle_sleep_time_in_sec>
60
</idle_sleep_time_in_sec>
</testCase>
<testCase
id=
"000002"
>
...
...
@@ -48,54 +46,6 @@
<idle_sleep_time_in_sec>
10
</idle_sleep_time_in_sec>
</testCase>
<testCase
id=
"000010"
>
<class>
CheckStatusUE
</class>
<desc>
Check UE(s) status before attachment
</desc>
<expectedNbOfConnectedUEs>
0
</expectedNbOfConnectedUEs>
</testCase>
<testCase
id=
"000011"
>
<class>
CheckStatusUE
</class>
<desc>
Check UE(s) status before data disabling
</desc>
<expectedNbOfConnectedUEs>
2
</expectedNbOfConnectedUEs>
</testCase>
<testCase
id=
"000012"
>
<class>
CheckStatusUE
</class>
<desc>
Check UE(s) status after data disabling
</desc>
<expectedNbOfConnectedUEs>
0
</expectedNbOfConnectedUEs>
</testCase>
<testCase
id=
"000013"
>
<class>
CheckStatusUE
</class>
<desc>
Check UE(s) status after data re-enabling
</desc>
<expectedNbOfConnectedUEs>
2
</expectedNbOfConnectedUEs>
</testCase>
<testCase
id=
"000020"
>
<class>
CheckStatusUE
</class>
<desc>
Check UE(s) status before attachment
</desc>
<expectedNbOfConnectedUEs>
0
</expectedNbOfConnectedUEs>
</testCase>
<testCase
id=
"000021"
>
<class>
CheckStatusUE
</class>
<desc>
Check UE(s) status before data disabling
</desc>
<expectedNbOfConnectedUEs>
2
</expectedNbOfConnectedUEs>
</testCase>
<testCase
id=
"000022"
>
<class>
CheckStatusUE
</class>
<desc>
Check UE(s) status after data disabling
</desc>
<expectedNbOfConnectedUEs>
0
</expectedNbOfConnectedUEs>
</testCase>
<testCase
id=
"000023"
>
<class>
CheckStatusUE
</class>
<desc>
Check UE(s) status after data re-enabling
</desc>
<expectedNbOfConnectedUEs>
2
</expectedNbOfConnectedUEs>
</testCase>
<testCase
id=
"050102"
>
<class>
Initialize_FlexranCtrl
</class>
<desc>
Starting Flexran Controller
</desc>
...
...
@@ -122,12 +72,6 @@
<eNB_serverId>
1
</eNB_serverId>
</testCase>
<testCase
id=
"030103"
>
<class>
Initialize_eNB
</class>
<desc>
Initialize eNB (FDD/Band7/5MHz) for RRC Inactivity Timer testing -- with FlexRan Ctl
</desc>
<Initialize_eNB_args>
-O ci-scripts/conf_files/enb.band7.tm1.25PRB.usrpb210.conf
</Initialize_eNB_args>
</testCase>
<testCase
id=
"030201"
>
<class>
Terminate_eNB
</class>
<desc>
Terminate Master eNB
</desc>
...
...
@@ -162,16 +106,6 @@
<desc>
Detach UE
</desc>
</testCase>
<testCase
id=
"040302"
>
<class>
DataDisable_UE
</class>
<desc>
Disabling Data Service on UE
</desc>
</testCase>
<testCase
id=
"040303"
>
<class>
DataEnable_UE
</class>
<desc>
Enabling Data Service on UE
</desc>
</testCase>
<testCase
id=
"040501"
>
<class>
Ping
</class>
<desc>
ping (5MHz - 20 sec)
</desc>
...
...
@@ -193,90 +127,64 @@
<ping_packetloss_threshold>
5
</ping_packetloss_threshold>
</testCase>
<testCase
id=
"040504"
>
<class>
Ping
</class>
<desc>
ping (5MHz - 20 sec)
</desc>
<ping_args>
-c 20
</ping_args>
<ping_packetloss_threshold>
5
</ping_packetloss_threshold>
</testCase>
<testCase
id=
"040505"
>
<class>
Ping
</class>
<desc>
ping (5MHz - 20 sec)
</desc>
<ping_args>
-c 20
</ping_args>
<ping_packetloss_threshold>
5
</ping_packetloss_threshold>
</testCase>
<testCase
id=
"040603"
>
<testCase
id=
"040601"
>
<class>
Iperf
</class>
<desc>
iperf (5MHz - DL/15Mbps/UDP)(30 sec)(balanced profile)
</desc>
<iperf_args>
-u -b 15M -t 30 -i 1
</iperf_args>
<iperf_packetloss_threshold>
50
</iperf_packetloss_threshold>
<iperf_profile>
balanced
</iperf_profile>
</testCase>
<testCase
id=
"040604"
>
<class>
Iperf
</class>
<desc>
iperf (5MHz - DL/15Mbps/UDP)(30 sec)(single-ue profile)
</desc>
<iperf_args>
-u -b 15M -t 30 -i 1
</iperf_args>
<desc>
iperf (5MHz - DL/8Mbps/UDP)(30 sec)
</desc>
<iperf_args>
-u -b 8M -t 30 -i 1
</iperf_args>
<iperf_packetloss_threshold>
50
</iperf_packetloss_threshold>
<iperf_profile>
single-ue
</iperf_profile>
</testCase>
<testCase
id=
"040605"
>
<class>
Iperf
</class>
<desc>
iperf (5MHz - DL/15Mbps/UDP)(30 sec)(unbalanced profile)
</desc>
<iperf_args>
-u -b 15M -t 30 -i 1
</iperf_args>
<iperf_packetloss_threshold>
50
</iperf_packetloss_threshold>
<iperf_profile>
unbalanced
</iperf_profile>
</testCase>
<testCase
id=
"040606"
>
<testCase
id=
"040602"
>
<class>
Iperf
</class>
<desc>
iperf (5MHz - DL/
TCP)(30 sec)(single-ue profile
)
</desc>
<iperf_args>
-
t 30 -i 1 -fm
</iperf_args>
<desc>
iperf (5MHz - DL/
8Mbps/UDP)(30 sec
)
</desc>
<iperf_args>
-
u -b 8M -t 30 -i 1
</iperf_args>
<iperf_packetloss_threshold>
50
</iperf_packetloss_threshold>
<iperf_profile>
single-ue
</iperf_profile>
</testCase>
<testCase
id=
"04060
7
"
>
<testCase
id=
"04060
3
"
>
<class>
Iperf
</class>
<desc>
iperf (5MHz - DL/
TCP)(30 sec)(balanced profile
)
</desc>
<iperf_args>
-
t 30 -i 1 -fm
</iperf_args>
<desc>
iperf (5MHz - DL/
8Mbps/UDP)(30 sec
)
</desc>
<iperf_args>
-
u -b 8M -t 30 -i 1
</iperf_args>
<iperf_packetloss_threshold>
50
</iperf_packetloss_threshold>
<iperf_profile>
balanced
</iperf_profile>
<iperf_profile>
single-ue
</iperf_profile>
</testCase>
<testCase
id=
"040641"
>
<class>
Iperf
</class>
<desc>
iperf (5MHz - UL/
9Mbps/UDP)(30 sec)(balanced profile
)
</desc>
<iperf_args>
-u -b
9
M -t 30 -i 1 -R
</iperf_args>
<desc>
iperf (5MHz - UL/
5Mbps/UDP)(30 sec
)
</desc>
<iperf_args>
-u -b
5
M -t 30 -i 1 -R
</iperf_args>
<iperf_packetloss_threshold>
50
</iperf_packetloss_threshold>
<iperf_profile>
balanced
</iperf_profile>
<iperf_profile>
single-ue
</iperf_profile>
</testCase>
<testCase
id=
"040642"
>
<class>
Iperf
</class>
<desc>
iperf (5MHz - UL/
9Mbps/UDP)(30 sec)(single-ue profile
)
</desc>
<iperf_args>
-u -b
9
M -t 30 -i 1 -R
</iperf_args>
<desc>
iperf (5MHz - UL/
5Mbps/UDP)(30 sec
)
</desc>
<iperf_args>
-u -b
5
M -t 30 -i 1 -R
</iperf_args>
<iperf_packetloss_threshold>
50
</iperf_packetloss_threshold>
<iperf_profile>
single-ue
</iperf_profile>
</testCase>
<testCase
id=
"040643"
>
<class>
Iperf
</class>
<desc>
iperf (5MHz - UL/
TCP)(30 sec)(single-ue profile
)
</desc>
<iperf_args>
-
t 30 -i 1 -fm
-R
</iperf_args>
<desc>
iperf (5MHz - UL/
5Mbps/UDP)(30 sec
)
</desc>
<iperf_args>
-
u -b 5M -t 30 -i 1
-R
</iperf_args>
<iperf_packetloss_threshold>
50
</iperf_packetloss_threshold>
<iperf_profile>
single-ue
</iperf_profile>
</testCase>
<testCase
id=
"040644"
>
<class>
Iperf
</class>
<desc>
iperf (5MHz - UL/TCP)(30 sec)(balanced profile)
</desc>
<iperf_args>
-t 30 -i 1 -fm -R
</iperf_args>
<iperf_packetloss_threshold>
50
</iperf_packetloss_threshold>
<iperf_profile>
balanced
</iperf_profile>
<testCase
id=
"050401"
>
<class>
Perform_X2_Handover
</class>
<desc>
Doing a Flexran-Controlled X2 Handover
</desc>
<x2_ho_options>
network
</x2_ho_options>
</testCase>
<testCase
id=
"050402"
>
<class>
Perform_X2_Handover
</class>
<desc>
Doing a Flexran-Controlled X2 Handover
</desc>
<x2_ho_options>
network
</x2_ho_options>
</testCase>
</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