Skip to content
GitLab
Menu
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
f0991907
Commit
f0991907
authored
Dec 16, 2015
by
Rohit Gupta
Browse files
Merge branch 'feature-34-test_framework' into develop
parents
37d7fa8d
84369624
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
cmake_targets/autotests/run_exec_lte-softmodem_tests.py
View file @
f0991907
...
...
@@ -52,11 +52,6 @@ import re
import
numpy
as
np
import
log
import
case01
import
case02
import
case03
import
case04
import
case05
from
openair
import
*
...
...
@@ -840,13 +835,24 @@ def handle_testcaseclass_softmodem (testcase, oldprogramList, logdirOAI5GRepo ,
#This function searches if test case is present in list of test cases that need to be executed by user
def
search_test_case_group
(
testcasename
,
testcasegroup
,
search_
test_case_
group
):
def
search_test_case_group
(
testcasename
,
testcasegroup
,
test_case_
exclude
):
if
search_test_case_group
.
find
(
testcasename
)
>=
0
:
if
test_case_exclude
!=
""
:
testcase_exclusion_list
=
test_case_exclude
.
split
()
for
entry
in
testcase_exclusion_list
:
if
entry
.
find
(
'+'
)
>=
0
:
match
=
re
.
search
(
entry
,
testcasename
)
if
match
:
print
"
\n
Skipping test case as it is found in black list: "
+
testcasename
return
False
else
:
match
=
entry
.
find
(
testcasename
)
if
match
>=
0
:
print
"
\n
Skipping test case as it is found in black list: "
+
testcasename
return
False
if
testcasegroup
==
''
:
return
True
else
:
testcaselist
=
testcasegroup
.
split
()
for
entry
in
testcaselist
:
if
entry
.
find
(
'+'
)
>=
0
:
...
...
@@ -917,7 +923,8 @@ while i < len (sys.argv):
print
"-d: low debug level"
print
"-dd: high debug level"
print
"-p: set the prompt"
print
"-r: Remove the log directory in autotests/"
print
"-r: Remove the log directory in autotests"
print
"-g: Run test cases in a group"
print
"-w: set the password for ssh to localhost"
print
"-l: use local shell instead of ssh connection"
print
"-t: set the time out in second for commands"
...
...
cmake_targets/autotests/test_case_list.xml
View file @
f0991907
This diff is collapsed.
Click to expand it.
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