Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
oai
openairinterface5G
Commits
2ca52aaf
Commit
2ca52aaf
authored
Dec 04, 2015
by
Rohit Gupta
Browse files
updated script for UE configuration
parent
008ccf04
Changes
1
Hide whitespace changes
Inline
Side-by-side
cmake_targets/autotests/run_exec_lte-softmodem_tests.py
View file @
2ca52aaf
...
...
@@ -297,7 +297,7 @@ class oaiThread (threading.Thread):
try
:
oai
=
openair
(
'localdomain'
,
self
.
machine
)
oai
.
connect
(
user
,
self
.
password
)
print
"Starting "
+
self
.
threadname
+
"on machine "
+
self
.
machine
print
"Starting "
+
self
.
threadname
+
"
on machine "
+
self
.
machine
result
=
oai
.
send_recv
(
self
.
cmd
,
self
.
sudo
,
self
.
timeout
)
print
"result = "
+
result
print
"Exiting "
+
self
.
threadname
...
...
@@ -639,14 +639,14 @@ def handle_testcaseclass_softmodem (testcase, oldprogramList, logdirOAI5GRepo ,
task_EPC
=
task_EPC
+
'('
+
HSS_compile_prog
+
' '
+
HSS_compile_prog_args
+
' ) > '
+
logfile_compile_HSS
+
' 2>&1
\n
'
if
EPC_pre_exec
!=
""
:
task_EPC
=
task_EPC
+
' ( '
+
EPC_pre_exec
+
' '
+
EPC_pre_exec_args
+
' ) > '
+
logfile_pre_exec_EPC
+
' 2>&1
\n
'
if
EPC_main_exec
!=
""
:
task_EPC
=
task_EPC
+
'('
+
addsudo
(
EPC_main_exec
+
' '
+
EPC_main_exec_args
,
mypassword
)
+
' ) > '
+
logfile_exec_EPC
+
' 2>&1 &
\n
'
task_EPC
=
task_EPC
+
'array_exec_pid+=($!)
\n
'
task_EPC
=
task_EPC
+
'echo EPC_main_exec PID = $!
\n
'
if
HSS_main_exec
!=
""
:
task_EPC
=
task_EPC
+
'('
+
addsudo
(
HSS_main_exec
+
' '
+
HSS_main_exec_args
,
mypassword
)
+
' ) > '
+
logfile_exec_HSS
+
' 2>&1 &
\n
'
task_EPC
=
task_EPC
+
'array_exec_pid+=($!)
\n
'
task_EPC
=
task_EPC
+
'echo HSS_main_exec PID = $!
\n
'
if
EPC_main_exec
!=
""
:
task_EPC
=
task_EPC
+
'('
+
addsudo
(
EPC_main_exec
+
' '
+
EPC_main_exec_args
,
mypassword
)
+
' ) > '
+
logfile_exec_EPC
+
' 2>&1 &
\n
'
task_EPC
=
task_EPC
+
'array_exec_pid+=($!)
\n
'
task_EPC
=
task_EPC
+
'echo EPC_main_exec PID = $!
\n
'
if
EPC_traffic_exec
!=
""
:
task_EPC
=
task_EPC
+
'('
+
EPC_traffic_exec
+
' '
+
EPC_traffic_exec_args
+
' ) > '
+
logfile_traffic_EPC
+
' 2>&1 &
\n
'
task_EPC
=
task_EPC
+
'array_exec_pid+=($!)
\n
'
...
...
@@ -681,15 +681,15 @@ def handle_testcaseclass_softmodem (testcase, oldprogramList, logdirOAI5GRepo ,
cleanOldPrograms
(
oai_UE
,
oldprogramList
,
CleanUpAluLteBox
)
cleanOldPrograms
(
oai_EPC
,
oldprogramList
,
CleanUpAluLteBox
)
print
"Copying files from EPCMachine : "
+
EPCMachine
print
"Copying files from EPCMachine : "
+
EPCMachine
+
"logdir_EPC = "
+
logdir_EPC
ssh
=
SSHSession
(
EPCMachine
,
username
=
user
,
key_file
=
None
,
password
=
password
)
ssh
.
get_all
(
logdir_EPC
,
logdir_local_testcase
)
print
"Copying files from eNBMachine "
+
eNBMachine
print
"Copying files from eNBMachine "
+
eNBMachine
+
"logdir_eNB = "
+
logdir_eNB
ssh
=
SSHSession
(
eNBMachine
,
username
=
user
,
key_file
=
None
,
password
=
password
)
ssh
.
get_all
(
logdir_eNB
,
logdir_local_testcase
)
print
"Copying files from UEMachine : "
+
UEMachine
print
"Copying files from UEMachine : "
+
UEMachine
+
"logdir_UE = "
+
logdir_UE
ssh
=
SSHSession
(
UEMachine
,
username
=
user
,
key_file
=
None
,
password
=
password
)
ssh
.
get_all
(
logdir_UE
,
logdir_local_testcase
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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