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
zzha zzha
OpenXG-RAN
Commits
3602808a
Commit
3602808a
authored
Dec 19, 2015
by
Rohit Gupta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated for checking Git head versions of OAI 5G repo
parent
d37dc40c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
4 deletions
+18
-4
cmake_targets/autotests/run_exec_lte-softmodem_tests.py
cmake_targets/autotests/run_exec_lte-softmodem_tests.py
+17
-3
cmake_targets/autotests/test_case_list.xml
cmake_targets/autotests/test_case_list.xml
+1
-1
No files found.
cmake_targets/autotests/run_exec_lte-softmodem_tests.py
View file @
3602808a
...
...
@@ -870,7 +870,9 @@ def search_test_case_group(testcasename, testcasegroup, test_case_exclude):
return
True
return
False
def
cleanOldProgramsAllMachines
(
oai_list
,
CleanOldProgs
,
CleanUpAluLteBox
,
ExmimoRfStop
):
for
index
in
oai_list
:
cleanOldPrograms
(
oai_list
[
index
],
CleanUpOldProgs
,
CleanUpAluLteBox
,
ExmimoRfStop
)
#thread1 = myThread(1, "Thread-1", 1)
debug
=
0
...
...
@@ -884,7 +886,7 @@ xmlInputFile="./test_case_list.xml"
NFSResultsDir
=
'/mnt/sradio'
cleanupOldProgramsScript
=
'$OPENAIR_DIR/cmake_targets/autotests/tools/remove_old_programs.bash'
testcasegroup
=
''
cleanUpRemoteMachines
=
False
logdir
=
'/tmp/'
+
'OAITestFrameWork-'
+
getpass
.
getuser
()
+
'/'
logdirOAI5GRepo
=
logdir
+
'openairinterface5g/'
logdirOpenaircnRepo
=
logdir
+
'openair-cn/'
...
...
@@ -924,12 +926,15 @@ while i < len (sys.argv):
elif
arg
==
'-g'
:
testcasegroup
=
sys
.
argv
[
i
+
1
].
replace
(
"
\"
"
,
""
)
i
=
i
+
1
elif
arg
==
'-c'
:
cleanUpRemoteMachines
=
True
elif
arg
==
'-h'
:
print
"-d: low debug level"
print
"-dd: high debug level"
print
"-p: set the prompt"
print
"-r: Remove the log directory in autotests"
print
"-g: Run test cases in a group"
print
"-c: Run cleanup scripts on remote machines"
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"
...
...
@@ -1131,7 +1136,12 @@ for index in oai_list:
cmd
=
cmd
+
'git clone '
+
GitOAI5GRepo
+
'
\n
'
cmd
=
cmd
+
'git clone '
+
GitOpenaircnRepo
+
'
\n
'
cmd
=
cmd
+
'cd '
+
logdirOAI5GRepo
+
'
\n
'
cmd
=
cmd
+
'git checkout '
+
GitOAI5GRepoBranch
+
'
\n
'
cmd
=
cmd
+
'git checkout '
+
GitOAI5GHeadVersion
+
'
\n
'
cmd
=
cmd
+
'git_head = `git ls-remote |grep
\"
'
+
GitOAI5GRepoBranch
+
'
\"
'
cmd
=
cmd
+
'git_head = ($git_head)'
cmd
=
cmd
+
'git_head = ${git_head[0]}'
cmd
=
cmd
+
'if [
\"
$git_head
\"
!=
\"
'
+
GitOAI5GHeadVersion
+
'
\"
]; then echo
\"
error: Git openairinterface5g head version does not match
\"
; fi '
cmd
=
cmd
+
'source oaienv'
+
'
\n
'
cmd
=
cmd
+
'cd '
+
logdirOpenaircnRepo
+
'
\n
'
cmd
=
cmd
+
'git checkout '
+
GitOpenaircnRepoBranch
+
'
\n
'
...
...
@@ -1220,6 +1230,9 @@ if (out != '') :
print
"status = "
+
str
(
status
)
+
"
\n
Check files for error = "
+
out
print
sys
.
exit
(
1
)
if
cleanUpRemoteMachines
==
True
:
cleanOldProgramsAllMachines
(
oai_list
,
CleanOldProgs
,
CleanUpAluLteBox
,
ExmimoRfStop
)
sys
.
exit
(
0
)
threadListGlobal
=
[]
testcaseList
=
xmlRoot
.
findall
(
'testCase'
)
...
...
@@ -1231,6 +1244,7 @@ for testcase in testcaseList:
desc
=
testcase
.
findtext
(
'desc'
,
default
=
''
)
#print "Machine list top level = " + ','.join(MachineList)
if
search_test_case_group
(
testcasename
,
testcasegroup
,
TestCaseExclusionList
)
==
True
:
cleanOldProgramsAllMachines
(
oai_list
,
CleanOldProgs
,
CleanUpAluLteBox
,
ExmimoRfStop
)
if
testcaseclass
==
'lte-softmodem'
:
eNBMachine
=
testcase
.
findtext
(
'eNB'
,
default
=
''
)
UEMachine
=
testcase
.
findtext
(
'UE'
,
default
=
''
)
...
...
cmake_targets/autotests/test_case_list.xml
View file @
3602808a
...
...
@@ -8,7 +8,7 @@
<GitOpenair-cnRepoBranch>
feature-17-test_framework
</GitOpenair-cnRepoBranch>
<CleanUpOldProgs>
oaisim* oaisim_nos1* lte-softmodem* lte-softmodem-nos1* mme_gw* run_epc* run_hss* iperf* hss hss_sim configure_cots_bandrich_ue* wvdial* run_exec_autotests* iperf
</CleanUpOldProgs>
<CleanUpAluLteBox>
/opt/ltebox/tools/stop_ltebox
</CleanUpAluLteBox>
<ExmimoRfStop>
$OPENAIR_DIR/cmake_targets/build_oai -w EXMIMO -c; sudo -S -E $OPENAIR_DIR/cmake_targets/tools/
init_exmimo2 ; cd $OPENAIR_DIR/targets/bin; sudo -E -S octave $OPENAIR_DIR/cmake_targets/tools/exmimo_stop.m ; cd -
</ExmimoRfStop>
<ExmimoRfStop>
$OPENAIR_DIR/cmake_targets/build_oai -w EXMIMO -c; sudo -S -E $OPENAIR_DIR/cmake_targets/tools/
stop_exmimo2
</ExmimoRfStop>
<Timeout_execution>
36000
</Timeout_execution>
<TestCaseExclusionList>
0104+ 015502 015505 015506 015507 015508 015508 015509 015510 015511 015600 015700 016102 016105
</TestCaseExclusionList>
<MachineListGeneric>
calisson stevens mozart nano amerique
</MachineListGeneric>
...
...
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