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
canghaiwuhen
OpenXG-RAN
Commits
5d4cde09
Commit
5d4cde09
authored
Oct 30, 2018
by
Raphael Defosseux
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CI: fix basic simulator run
Signed-off-by:
Raphael Defosseux
<
raphael.defosseux@eurecom.fr
>
parent
d354eded
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
8 deletions
+14
-8
ci-scripts/Jenkinsfile-gitlab
ci-scripts/Jenkinsfile-gitlab
+0
-2
ci-scripts/buildOnVM.sh
ci-scripts/buildOnVM.sh
+2
-0
ci-scripts/main.py
ci-scripts/main.py
+8
-5
ci-scripts/runTestOnVM.sh
ci-scripts/runTestOnVM.sh
+4
-1
No files found.
ci-scripts/Jenkinsfile-gitlab
View file @
5d4cde09
...
@@ -328,7 +328,6 @@ pipeline {
...
@@ -328,7 +328,6 @@ pipeline {
}
}
}
}
}
}
/* Disabled for the moment: main.py is pulled over from develop branch for the moment.. problem of location
stage
(
"Test on CI bench #1"
)
{
stage
(
"Test on CI bench #1"
)
{
stages
{
stages
{
stage
(
"Test FDD - Band 7 - B210"
)
{
stage
(
"Test FDD - Band 7 - B210"
)
{
...
@@ -529,7 +528,6 @@ pipeline {
...
@@ -529,7 +528,6 @@ pipeline {
}
}
}
}
}
}
*/
}
}
post
{
post
{
always
{
always
{
...
...
ci-scripts/buildOnVM.sh
View file @
5d4cde09
...
@@ -368,6 +368,7 @@ echo "unzip -qq -DD ../localZip.zip" >> $VM_CMDS
...
@@ -368,6 +368,7 @@ echo "unzip -qq -DD ../localZip.zip" >> $VM_CMDS
if
[[
"
$VM_NAME
"
==
*
"-cppcheck"
*
]]
if
[[
"
$VM_NAME
"
==
*
"-cppcheck"
*
]]
then
then
echo
"mkdir cmake_targets/log"
>>
$VM_CMDS
echo
"mkdir cmake_targets/log"
>>
$VM_CMDS
echo
"chmod 777 cmake_targets/log"
>>
$VM_CMDS
echo
"cp /home/ubuntu/zip-install.txt cmake_targets/log"
>>
$VM_CMDS
echo
"cp /home/ubuntu/zip-install.txt cmake_targets/log"
>>
$VM_CMDS
echo
"echo
\"
cppcheck
$BUILD_OPTIONS
.
\"
"
>>
$VM_CMDS
echo
"echo
\"
cppcheck
$BUILD_OPTIONS
.
\"
"
>>
$VM_CMDS
if
[
$DAEMON
-eq
0
]
if
[
$DAEMON
-eq
0
]
...
@@ -383,6 +384,7 @@ else
...
@@ -383,6 +384,7 @@ else
echo
"source oaienv"
>>
$VM_CMDS
echo
"source oaienv"
>>
$VM_CMDS
echo
"cd cmake_targets/"
>>
$VM_CMDS
echo
"cd cmake_targets/"
>>
$VM_CMDS
echo
"mkdir log"
>>
$VM_CMDS
echo
"mkdir log"
>>
$VM_CMDS
echo
"chmod 777 log"
>>
$VM_CMDS
echo
"cp /home/ubuntu/zip-install.txt log"
>>
$VM_CMDS
echo
"cp /home/ubuntu/zip-install.txt log"
>>
$VM_CMDS
if
[
$DAEMON
-eq
0
]
if
[
$DAEMON
-eq
0
]
then
then
...
...
ci-scripts/main.py
View file @
5d4cde09
...
@@ -268,12 +268,15 @@ class SSHConnection():
...
@@ -268,12 +268,15 @@ class SSHConnection():
self
.
command
(
'git merge --ff origin/develop -m "Temporary merge for CI"'
,
'\$'
,
5
)
self
.
command
(
'git merge --ff origin/develop -m "Temporary merge for CI"'
,
'\$'
,
5
)
self
.
command
(
'source oaienv'
,
'\$'
,
5
)
self
.
command
(
'source oaienv'
,
'\$'
,
5
)
self
.
command
(
'cd cmake_targets'
,
'\$'
,
5
)
self
.
command
(
'cd cmake_targets'
,
'\$'
,
5
)
self
.
command
(
'mkdir -p log'
,
'\$'
,
5
)
self
.
command
(
'mkdir -p log'
,
'\$'
,
5
)
self
.
command
(
'chmod 777 log'
,
'\$'
,
5
)
# no need to remove in log (git clean did the trick)
# no need to remove in log (git clean did the trick)
self
.
command
(
'
echo '
+
self
.
eNBPassword
+
' | sudo -S
stdbuf -o0 ./build_oai '
+
self
.
Build_eNB_args
+
' 2>&1 | stdbuf -o0 tee -a compile_oai_enb.log'
,
'Bypassing the Tests'
,
600
)
self
.
command
(
'stdbuf -o0 ./build_oai '
+
self
.
Build_eNB_args
+
' 2>&1 | stdbuf -o0 tee -a compile_oai_enb.log'
,
'Bypassing the Tests'
,
600
)
self
.
command
(
'mkdir -p build_log_'
+
SSH
.
testCase_id
,
'\$'
,
5
)
self
.
command
(
'mkdir -p build_log_'
+
SSH
.
testCase_id
,
'\$'
,
5
)
self
.
command
(
'echo '
+
self
.
eNBPassword
+
' | sudo -S mv log/* '
+
'build_log_'
+
SSH
.
testCase_id
,
'\$'
,
5
)
self
.
command
(
'mv log/* '
+
'build_log_'
+
SSH
.
testCase_id
,
'\$'
,
5
)
self
.
command
(
'echo '
+
self
.
eNBPassword
+
' | sudo -S mv compile_oai_enb.log '
+
'build_log_'
+
SSH
.
testCase_id
,
'\$'
,
5
)
self
.
command
(
'mv compile_oai_enb.log '
+
'build_log_'
+
SSH
.
testCase_id
,
'\$'
,
5
)
# Workaround to run with develop-nr
self
.
command
(
'if [ -e ran_build ]; then cp -rf ran_build lte_build_oai; fi'
,
'\$'
,
30
)
self
.
close
()
self
.
close
()
self
.
CreateHtmlTestRow
(
self
.
Build_eNB_args
,
'OK'
,
ALL_PROCESSES_OK
)
self
.
CreateHtmlTestRow
(
self
.
Build_eNB_args
,
'OK'
,
ALL_PROCESSES_OK
)
...
@@ -371,7 +374,7 @@ class SSHConnection():
...
@@ -371,7 +374,7 @@ class SSHConnection():
# Launch eNB with the modified config file
# Launch eNB with the modified config file
self
.
command
(
'source oaienv'
,
'\$'
,
5
)
self
.
command
(
'source oaienv'
,
'\$'
,
5
)
self
.
command
(
'cd cmake_targets'
,
'\$'
,
5
)
self
.
command
(
'cd cmake_targets'
,
'\$'
,
5
)
self
.
command
(
'echo "ulimit -c unlimited && ./
ran_build
/build/lte-softmodem -O '
+
self
.
eNBSourceCodePath
+
'/'
+
ci_full_config_file
+
extra_options
+
'" > ./my-lte-softmodem-run'
+
str
(
SSH
.
eNB_instance
)
+
'.sh '
,
'\$'
,
5
)
self
.
command
(
'echo "ulimit -c unlimited && ./
lte_build_oai
/build/lte-softmodem -O '
+
self
.
eNBSourceCodePath
+
'/'
+
ci_full_config_file
+
extra_options
+
'" > ./my-lte-softmodem-run'
+
str
(
SSH
.
eNB_instance
)
+
'.sh '
,
'\$'
,
5
)
self
.
command
(
'chmod 775 ./my-lte-softmodem-run'
+
str
(
SSH
.
eNB_instance
)
+
'.sh '
,
'\$'
,
5
)
self
.
command
(
'chmod 775 ./my-lte-softmodem-run'
+
str
(
SSH
.
eNB_instance
)
+
'.sh '
,
'\$'
,
5
)
self
.
command
(
'echo '
+
self
.
eNBPassword
+
' | sudo -S rm -Rf enb_'
+
SSH
.
testCase_id
+
'.log'
,
'\$'
,
5
)
self
.
command
(
'echo '
+
self
.
eNBPassword
+
' | sudo -S rm -Rf enb_'
+
SSH
.
testCase_id
+
'.log'
,
'\$'
,
5
)
self
.
command
(
'echo '
+
self
.
eNBPassword
+
' | sudo -S -E daemon --inherit --unsafe --name=enb'
+
str
(
SSH
.
eNB_instance
)
+
'_daemon --chdir='
+
self
.
eNBSourceCodePath
+
'/cmake_targets -o '
+
self
.
eNBSourceCodePath
+
'/cmake_targets/enb_'
+
SSH
.
testCase_id
+
'.log ./my-lte-softmodem-run'
+
str
(
SSH
.
eNB_instance
)
+
'.sh'
,
'\$'
,
5
)
self
.
command
(
'echo '
+
self
.
eNBPassword
+
' | sudo -S -E daemon --inherit --unsafe --name=enb'
+
str
(
SSH
.
eNB_instance
)
+
'_daemon --chdir='
+
self
.
eNBSourceCodePath
+
'/cmake_targets -o '
+
self
.
eNBSourceCodePath
+
'/cmake_targets/enb_'
+
SSH
.
testCase_id
+
'.log ./my-lte-softmodem-run'
+
str
(
SSH
.
eNB_instance
)
+
'.sh'
,
'\$'
,
5
)
...
...
ci-scripts/runTestOnVM.sh
View file @
5d4cde09
...
@@ -89,6 +89,8 @@ function start_basic_sim_enb {
...
@@ -89,6 +89,8 @@ function start_basic_sim_enb {
echo
"echo
\"
grep N_RB_DL ci-
$LOC_CONF_FILE
\"
"
>>
$1
echo
"echo
\"
grep N_RB_DL ci-
$LOC_CONF_FILE
\"
"
>>
$1
echo
"grep N_RB_DL ci-
$LOC_CONF_FILE
| sed -e 's#N_RB_DL.*=#N_RB_DL =#'"
>>
$1
echo
"grep N_RB_DL ci-
$LOC_CONF_FILE
| sed -e 's#N_RB_DL.*=#N_RB_DL =#'"
>>
$1
echo
"echo
\"
cd /home/ubuntu/tmp/cmake_targets/basic_simulator/enb/
\"
"
>>
$1
echo
"echo
\"
cd /home/ubuntu/tmp/cmake_targets/basic_simulator/enb/
\"
"
>>
$1
echo
"sudo chmod 777 /home/ubuntu/tmp/cmake_targets/basic_simulator"
>>
$1
echo
"sudo chmod 777 /home/ubuntu/tmp/cmake_targets/basic_simulator/enb/"
>>
$1
echo
"cd /home/ubuntu/tmp/cmake_targets/basic_simulator/enb/"
>>
$1
echo
"cd /home/ubuntu/tmp/cmake_targets/basic_simulator/enb/"
>>
$1
echo
"echo
\"
ulimit -c unlimited && ./lte-softmodem -O /home/ubuntu/tmp/ci-scripts/conf_files/ci-
$LOC_CONF_FILE
\"
> ./my-lte-softmodem-run.sh "
>>
$1
echo
"echo
\"
ulimit -c unlimited && ./lte-softmodem -O /home/ubuntu/tmp/ci-scripts/conf_files/ci-
$LOC_CONF_FILE
\"
> ./my-lte-softmodem-run.sh "
>>
$1
echo
"chmod 775 ./my-lte-softmodem-run.sh"
>>
$1
echo
"chmod 775 ./my-lte-softmodem-run.sh"
>>
$1
...
@@ -105,7 +107,8 @@ function start_basic_sim_ue {
...
@@ -105,7 +107,8 @@ function start_basic_sim_ue {
local
LOC_NB_RBS
=
$4
local
LOC_NB_RBS
=
$4
local
LOC_FREQUENCY
=
$5
local
LOC_FREQUENCY
=
$5
echo
"echo
\"
cd /home/ubuntu/tmp/cmake_targets/basic_simulator/ue
\"
"
>
$1
echo
"echo
\"
cd /home/ubuntu/tmp/cmake_targets/basic_simulator/ue
\"
"
>
$1
echo
"cd /home/ubuntu/tmp/cmake_targets/basic_simulator/ue"
>
$1
echo
"sudo chmod 777 /home/ubuntu/tmp/cmake_targets/basic_simulator/ue"
>>
$1
echo
"cd /home/ubuntu/tmp/cmake_targets/basic_simulator/ue"
>>
$1
echo
"echo
\"
./lte-uesoftmodem -C
${
LOC_FREQUENCY
}
000000 -r
$LOC_NB_RBS
--ue-rxgain 140
\"
> ./my-lte-uesoftmodem-run.sh"
>>
$1
echo
"echo
\"
./lte-uesoftmodem -C
${
LOC_FREQUENCY
}
000000 -r
$LOC_NB_RBS
--ue-rxgain 140
\"
> ./my-lte-uesoftmodem-run.sh"
>>
$1
echo
"chmod 775 ./my-lte-uesoftmodem-run.sh"
>>
$1
echo
"chmod 775 ./my-lte-uesoftmodem-run.sh"
>>
$1
echo
"cat ./my-lte-uesoftmodem-run.sh"
>>
$1
echo
"cat ./my-lte-uesoftmodem-run.sh"
>>
$1
...
...
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