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
alex037yang
OpenXG-RAN
Commits
275e03e9
Commit
275e03e9
authored
Jan 13, 2016
by
Rohit Gupta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added paramter to override nruns in lte-softmodem test cases
parent
83582738
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
cmake_targets/autotests/run_exec_lte-softmodem_tests.py
cmake_targets/autotests/run_exec_lte-softmodem_tests.py
+9
-3
cmake_targets/autotests/test_case_list.xml
cmake_targets/autotests/test_case_list.xml
+1
-0
No files found.
cmake_targets/autotests/run_exec_lte-softmodem_tests.py
View file @
275e03e9
...
@@ -546,7 +546,8 @@ def wait_testcaseclass_generic_threads(threadListGeneric, timeout = 1):
...
@@ -546,7 +546,8 @@ def wait_testcaseclass_generic_threads(threadListGeneric, timeout = 1):
# \param password password with which to login
# \param password password with which to login
# \param CleanupAluLteBox string that contains commands to stop ALU Bell Labs LTEBox (specified in test_case_list.xml)
# \param CleanupAluLteBox string that contains commands to stop ALU Bell Labs LTEBox (specified in test_case_list.xml)
# \param ExmimoRfStop command to stop EXMIMO Card
# \param ExmimoRfStop command to stop EXMIMO Card
def
handle_testcaseclass_softmodem
(
testcase
,
oldprogramList
,
logdirOAI5GRepo
,
logdirOpenaircnRepo
,
MachineList
,
user
,
password
,
CleanUpAluLteBox
,
ExmimoRfStop
):
# \param nruns_lte-softmodem global parameter to override number of runs (nruns) within the test case
def
handle_testcaseclass_softmodem
(
testcase
,
oldprogramList
,
logdirOAI5GRepo
,
logdirOpenaircnRepo
,
MachineList
,
user
,
password
,
CleanUpAluLteBox
,
ExmimoRfStop
,
nruns_lte_softmodem
):
#We ignore the password sent to this function for secuirity reasons for password present in log files
#We ignore the password sent to this function for secuirity reasons for password present in log files
#It is recommended to add a line in /etc/sudoers that looks something like below. The line below will run sudo without password prompt
#It is recommended to add a line in /etc/sudoers that looks something like below. The line below will run sudo without password prompt
# your_user_name ALL=(ALL:ALL) NOPASSWD: ALL
# your_user_name ALL=(ALL:ALL) NOPASSWD: ALL
...
@@ -560,7 +561,10 @@ def handle_testcaseclass_softmodem (testcase, oldprogramList, logdirOAI5GRepo ,
...
@@ -560,7 +561,10 @@ def handle_testcaseclass_softmodem (testcase, oldprogramList, logdirOAI5GRepo ,
timeout_cmd
=
int
(
float
(
timeout_cmd
))
timeout_cmd
=
int
(
float
(
timeout_cmd
))
#Timeout_thread is more than that of cmd to have room for compilation time, etc
#Timeout_thread is more than that of cmd to have room for compilation time, etc
timeout_thread
=
timeout_cmd
+
300
timeout_thread
=
timeout_cmd
+
300
if
nruns_lte_softmodem
==
''
:
nruns
=
testcase
.
findtext
(
'nruns'
,
default
=
''
)
nruns
=
testcase
.
findtext
(
'nruns'
,
default
=
''
)
else
:
nruns
=
nruns_lte_softmodem
nruns
=
int
(
float
(
nruns
))
nruns
=
int
(
float
(
nruns
))
tags
=
testcase
.
findtext
(
'tags'
,
default
=
''
)
tags
=
testcase
.
findtext
(
'tags'
,
default
=
''
)
eNBMachine
=
testcase
.
findtext
(
'eNB'
,
default
=
''
)
eNBMachine
=
testcase
.
findtext
(
'eNB'
,
default
=
''
)
...
@@ -1148,6 +1152,7 @@ if MachineListGeneric == '':
...
@@ -1148,6 +1152,7 @@ if MachineListGeneric == '':
MachineListGeneric
=
xmlRoot
.
findtext
(
'MachineListGeneric'
,
default
=
''
)
MachineListGeneric
=
xmlRoot
.
findtext
(
'MachineListGeneric'
,
default
=
''
)
TestCaseExclusionList
=
xmlRoot
.
findtext
(
'TestCaseExclusionList'
,
default
=
''
)
TestCaseExclusionList
=
xmlRoot
.
findtext
(
'TestCaseExclusionList'
,
default
=
''
)
ExmimoRfStop
=
xmlRoot
.
findtext
(
'ExmimoRfStop'
,
default
=
''
)
ExmimoRfStop
=
xmlRoot
.
findtext
(
'ExmimoRfStop'
,
default
=
''
)
nruns_lte_softmodem
=
xmlRoot
.
findtext
(
'nruns_lte-softmodem'
,
default
=
''
)
print
"MachineList = "
+
MachineList
print
"MachineList = "
+
MachineList
print
"GitOpenair-cnRepo = "
+
GitOpenaircnRepo
print
"GitOpenair-cnRepo = "
+
GitOpenaircnRepo
...
@@ -1155,6 +1160,7 @@ print "GitOAI5GRepo = " + GitOAI5GRepo
...
@@ -1155,6 +1160,7 @@ print "GitOAI5GRepo = " + GitOAI5GRepo
print
"GitOAI5GBranch = "
+
GitOAI5GRepoBranch
print
"GitOAI5GBranch = "
+
GitOAI5GRepoBranch
print
"GitOpenaircnRepoBranch = "
+
GitOpenaircnRepoBranch
print
"GitOpenaircnRepoBranch = "
+
GitOpenaircnRepoBranch
print
"NFSResultsShare = "
+
NFSResultsShare
print
"NFSResultsShare = "
+
NFSResultsShare
print
"nruns_lte_softmodem = "
+
nruns_lte_softmodem
if
GitOAI5GHeadVersion
==
''
:
if
GitOAI5GHeadVersion
==
''
:
cmd
=
"git show-ref --heads -s "
+
GitOAI5GRepoBranch
cmd
=
"git show-ref --heads -s "
+
GitOAI5GRepoBranch
...
@@ -1345,7 +1351,7 @@ for testcase in testcaseList:
...
@@ -1345,7 +1351,7 @@ for testcase in testcaseList:
print
"testcasename = "
+
testcasename
+
" class = "
+
testcaseclass
print
"testcasename = "
+
testcasename
+
" class = "
+
testcaseclass
threadListGlobal
=
wait_testcaseclass_generic_threads
(
threadListGlobal
,
Timeout_execution
)
threadListGlobal
=
wait_testcaseclass_generic_threads
(
threadListGlobal
,
Timeout_execution
)
cleanOldProgramsAllMachines
(
oai_list
,
CleanUpOldProgs
,
CleanUpAluLteBox
,
ExmimoRfStop
)
cleanOldProgramsAllMachines
(
oai_list
,
CleanUpOldProgs
,
CleanUpAluLteBox
,
ExmimoRfStop
)
handle_testcaseclass_softmodem
(
testcase
,
CleanUpOldProgs
,
logdirOAI5GRepo
,
logdirOpenaircnRepo
,
MachineList
,
user
,
pw
,
CleanUpAluLteBox
,
ExmimoRfStop
)
handle_testcaseclass_softmodem
(
testcase
,
CleanUpOldProgs
,
logdirOAI5GRepo
,
logdirOpenaircnRepo
,
MachineList
,
user
,
pw
,
CleanUpAluLteBox
,
ExmimoRfStop
,
nruns_lte_softmodem
)
elif
(
testcaseclass
==
'compilation'
):
elif
(
testcaseclass
==
'compilation'
):
threadListGlobal
=
handle_testcaseclass_generic
(
testcasename
,
threadListGlobal
,
CleanUpOldProgs
,
logdirOAI5GRepo
,
MachineListGeneric
,
user
,
pw
,
CleanUpAluLteBox
,
Timeout_execution
,
ExmimoRfStop
)
threadListGlobal
=
handle_testcaseclass_generic
(
testcasename
,
threadListGlobal
,
CleanUpOldProgs
,
logdirOAI5GRepo
,
MachineListGeneric
,
user
,
pw
,
CleanUpAluLteBox
,
Timeout_execution
,
ExmimoRfStop
)
elif
(
testcaseclass
==
'execution'
):
elif
(
testcaseclass
==
'execution'
):
...
...
cmake_targets/autotests/test_case_list.xml
View file @
275e03e9
...
@@ -11,6 +11,7 @@
...
@@ -11,6 +11,7 @@
<ExmimoRfStop>
$OPENAIR_DIR/cmake_targets/build_oai -w EXMIMO -c; sudo -S -E $OPENAIR_DIR/cmake_targets/tools/stop_exmimo2; dmesg|tail
</ExmimoRfStop>
<ExmimoRfStop>
$OPENAIR_DIR/cmake_targets/build_oai -w EXMIMO -c; sudo -S -E $OPENAIR_DIR/cmake_targets/tools/stop_exmimo2; dmesg|tail
</ExmimoRfStop>
<Timeout_execution>
36000
</Timeout_execution>
<Timeout_execution>
36000
</Timeout_execution>
<TestCaseExclusionList>
0104+ 015502 015505 015506 015507 015508 015508 015509 015510 015511 015600 015700 016102 016105
</TestCaseExclusionList>
<TestCaseExclusionList>
0104+ 015502 015505 015506 015507 015508 015508 015509 015510 015511 015600 015700 016102 016105
</TestCaseExclusionList>
<nruns_lte-softmodem>
3
</nruns_lte-softmodem>
<MachineListGeneric>
mozart calisson stevens nano amerique
</MachineListGeneric>
<MachineListGeneric>
mozart calisson stevens nano amerique
</MachineListGeneric>
<testCase
id=
"010101"
>
<testCase
id=
"010101"
>
<class>
compilation
</class>
<class>
compilation
</class>
...
...
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