Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openairinterface5G
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
zhangtu
openairinterface5G
Commits
58fa110a
Commit
58fa110a
authored
9 years ago
by
Rohit Gupta
Browse files
Options
Downloads
Patches
Plain Diff
installer support in Gitlab CI
parent
24d24f12
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
cmake_targets/autotests/run_exec_lte-softmodem_tests.py
+17
-2
17 additions, 2 deletions
cmake_targets/autotests/run_exec_lte-softmodem_tests.py
cmake_targets/autotests/test_case_list.xml
+4
-4
4 additions, 4 deletions
cmake_targets/autotests/test_case_list.xml
with
21 additions
and
6 deletions
cmake_targets/autotests/run_exec_lte-softmodem_tests.py
+
17
−
2
View file @
58fa110a
...
...
@@ -1123,6 +1123,7 @@ flag_remove_logdir=False
flag_start_testcase
=
False
nruns_lte_softmodem
=
''
flag_skip_git_head_check
=
False
flag_skip_oai_install
=
False
Timeout_cmd
=
''
print
"
Number of arguments argc =
"
+
str
(
len
(
sys
.
argv
))
#for index in range(1,len(sys.argv) ):
...
...
@@ -1182,6 +1183,8 @@ while i < len (sys.argv):
elif
arg
==
'
--timeout_cmd
'
:
Timeout_cmd
=
sys
.
argv
[
i
+
1
]
i
=
i
+
1
elif
arg
==
'
--skip-oai-install
'
:
flag_skip_oai_install
=
True
elif
arg
==
'
-h
'
:
print
"
-s: This flag *MUST* be set to start the test cases
"
print
"
-r: Remove the log directory in autotests
"
...
...
@@ -1197,6 +1200,7 @@ while i < len (sys.argv):
print
"
-MachineListGeneric : overrides the MachineListGeneric parameter in test_case_list.xml
"
print
"
--skip-git-head-check: skip checking of GitHead remote/local branch (only for debugging)
"
print
"
--timeout_cmd: Override the default parameter (timeout_cmd) in test_case_list.xml. This parameter is in seconds and should be > 120
"
print
"
--skip-oai-install: Skips the openairinterface5g installer
"
sys
.
exit
()
else
:
print
"
Unrecongnized Option: <
"
+
arg
+
"
>. Use -h to see valid options
"
...
...
@@ -1405,6 +1409,17 @@ for oai in oai_list:
else
:
cmd
=
cmd
+
'
if [
\"
$git_head
\"
!=
\"
'
+
GitOAI5GHeadVersion
+
'
\"
]; then echo
\"
error: Git openairinterface5g head version does not match
\"
; fi
\n
'
cmd
=
cmd
+
'
source oaienv
'
+
'
\n
'
if
flag_skip_oai_install
==
False
:
cmd
=
cmd
+
'
source $OPENAIR_DIR/cmake_targets/tools/build_helper
\n
'
cmd
=
cmd
+
'
echo
\"
Installing core OAI dependencies...Start
\"
\n
'
cmd
=
cmd
+
'
$OPENAIR_DIR/cmake_targets/build_oai -I --install-optional-packages
\n
'
cmd
=
cmd
+
'
echo
\"
Installing core OAI dependencies...Finished
\"
\n
'
cmd
=
cmd
+
'
echo
\"
Installing BLADERF OAI dependencies...Start
\"
\n
'
cmd
=
cmd
+
'
check_install_bladerf_driver
\n
'
cmd
=
cmd
+
'
echo
\"
Installing BLADERF OAI dependencies...Finished
\"
\n
'
cmd
=
cmd
+
'
echo
\"
Installing USRP OAI dependencies...Start
\"
\n
'
cmd
=
cmd
+
'
check_install_usrp_uhd_driver
\n
'
cmd
=
cmd
+
'
echo
\"
Installing USRP OAI dependencies...Finished
\"
\n
'
cmd
=
cmd
+
'
cd
'
+
logdirOpenaircnRepo
+
'
\n
'
cmd
=
cmd
+
'
git checkout
'
+
GitOpenaircnRepoBranch
+
'
\n
'
cmd
=
cmd
+
'
env |grep OPENAIR
'
+
'
\n
'
...
...
@@ -1413,7 +1428,7 @@ for oai in oai_list:
#cmd = cmd + 'echo \' ' + cmd + '\' > ' + setup_script + ' 2>&1 \n '
#result = oai_list[index].send_recv(cmd, False, 300 )
write_file
(
setup_script
,
cmd
,
mode
=
"
w
"
)
tempThread
=
oaiThread
(
index
,
'
thread_setup_
'
+
str
(
index
)
+
'
_
'
+
MachineList
[
index
]
,
MachineList
[
index
]
,
user
,
pw
,
cmd
,
False
,
300
)
tempThread
=
oaiThread
(
index
,
'
thread_setup_
'
+
str
(
index
)
+
'
_
'
+
MachineList
[
index
]
,
MachineList
[
index
]
,
user
,
pw
,
cmd
,
False
,
300
0
)
threads_init_setup
.
append
(
tempThread
)
tempThread
.
start
()
index
=
index
+
1
...
...
@@ -1461,7 +1476,7 @@ status, out = commands.getstatusoutput('grep ' + ' -il \'error\' ' + locallogdi
if
(
out
!=
''
)
:
print
"
There is error in setup of machines
"
print
"
status =
"
+
str
(
status
)
+
"
\n
Check files for error =
"
+
out
print
sys
.
exit
(
1
)
print
"
Continuing...
"
cleanOldProgramsAllMachines
(
oai_list
,
CleanUpOldProgs
,
CleanUpAluLteBox
,
ExmimoRfStop
)
if
cleanUpRemoteMachines
==
True
:
...
...
This diff is collapsed.
Click to expand it.
cmake_targets/autotests/test_case_list.xml
+
4
−
4
View file @
58fa110a
...
...
@@ -5551,10 +5551,10 @@
targets/PROJECTS/GENERIC-LTE-EPC/CONF/enb.band7.tm1.usrpb210.epc.remote.conf frame_type \"FDD\"
targets/PROJECTS/GENERIC-LTE-EPC/CONF/enb.band7.tm1.usrpb210.epc.remote.conf nb_antennas_rx 1
targets/PROJECTS/GENERIC-LTE-EPC/CONF/enb.band7.tm1.usrpb210.epc.remote.conf nb_antennas_tx 1
targets/PROJECTS/GENERIC-LTE-EPC/CONF/enb.band7.tm1.usrpb210.epc.remote.conf ENB_INTERFACE_NAME_FOR_S1_MME \"eth
5
\"
targets/PROJECTS/GENERIC-LTE-EPC/CONF/enb.band7.tm1.usrpb210.epc.remote.conf ENB_IPV4_ADDRESS_FOR_S1_MME \"192.168.12.
82
/24\"
targets/PROJECTS/GENERIC-LTE-EPC/CONF/enb.band7.tm1.usrpb210.epc.remote.conf ENB_INTERFACE_NAME_FOR_S1U \"eth
5
\"
targets/PROJECTS/GENERIC-LTE-EPC/CONF/enb.band7.tm1.usrpb210.epc.remote.conf ENB_IPV4_ADDRESS_FOR_S1U \"192.168.12.
82
/24\"
targets/PROJECTS/GENERIC-LTE-EPC/CONF/enb.band7.tm1.usrpb210.epc.remote.conf ENB_INTERFACE_NAME_FOR_S1_MME \"eth
6
\"
targets/PROJECTS/GENERIC-LTE-EPC/CONF/enb.band7.tm1.usrpb210.epc.remote.conf ENB_IPV4_ADDRESS_FOR_S1_MME \"192.168.12.
111
/24\"
targets/PROJECTS/GENERIC-LTE-EPC/CONF/enb.band7.tm1.usrpb210.epc.remote.conf ENB_INTERFACE_NAME_FOR_S1U \"eth
6
\"
targets/PROJECTS/GENERIC-LTE-EPC/CONF/enb.band7.tm1.usrpb210.epc.remote.conf ENB_IPV4_ADDRESS_FOR_S1U \"192.168.12.
111
/24\"
targets/PROJECTS/GENERIC-LTE-EPC/CONF/enb.band7.tm1.usrpb210.epc.remote.conf ENB_PORT_FOR_S1U 2152
targets/PROJECTS/GENERIC-LTE-EPC/CONF/enb.band7.tm1.usrpb210.epc.remote.conf rrh_gw_config "local_if_name=\"eth0\";remote_address=\"10:60:4b:75:80:83\";local_address=\"98:90:96:df:66:07\";local_port=50000;remote_port=50000;tr_preference=\"raw\";rf_preference=\"usrp_b200\";iq_txshift=5;tx_sample_advance=70;tx_scheduling_advance=9;"
</eNB_config_file>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment