Commit a0370097 authored by Raphael Defosseux's avatar Raphael Defosseux Committed by Robert Schmidt

chore(ci): adding support to build -t oran_fhlib_5g in CI

Signed-off-by: default avatarRaphael Defosseux <raphael.defosseux@eurecom.fr>
parent a92e1eca
export XRAN_LIB_DIR=/home/oaicicd/phy/fhi_lib/lib/build
export XRAN_DIR=/home/oaicicd/phy/fhi_lib
export RTE_SDK=/home/oaicicd/dpdk-stable-20.11.7
export RTE_INCLUDE=/usr/local/include
export RTE_TARGET=x86_64-native-linuxapp-gcc
export WIRELESS_SDK_TOOLCHAIN=gcc
......@@ -138,6 +138,9 @@ def GetParametersFromXML(action):
proxy_commit = test.findtext('proxy_commit')
if proxy_commit is not None:
CONTAINERS.proxyCommit = proxy_commit
extra_env_vars = test.findtext('extra_env_vars')
if extra_env_vars is not None:
RAN.extra_env_vars = extra_env_vars
elif action == 'WaitEndBuild_eNB':
RAN.Build_eNB_args=test.findtext('Build_eNB_args')
......
......@@ -100,6 +100,7 @@ class RANManagement():
self.node = ''
self.command = ''
self.command_fail = False
self.extra_env_vars = ''
#-----------------------------------------------------------
......@@ -204,8 +205,13 @@ class RANManagement():
else:
logging.debug('Merging with the target branch: ' + self.ranTargetBranch)
mySSH.command('git merge --ff origin/' + self.ranTargetBranch + ' -m "Temporary merge for CI"', '\$', 30)
logging.debug(mySSH.getBefore()) # print what git said when merging/checking out
#logging.debug(mySSH.getBefore()) # print what git said when merging/checking out
mySSH.command('source oaienv', '\$', 5)
# TODO: once we got a stable environment and better CMake management, remove next few lines
if self.extra_env_vars != '':
mySSH.copyout(self.eNBIPAddress, self.eNBUserName, self.eNBPassword, f'./bash_files/{self.extra_env_vars}', '/tmp')
mySSH.command(f'source /tmp/{self.extra_env_vars}', '\$', 5)
mySSH.command('cd cmake_targets', '\$', 5)
mySSH.command('mkdir -p log', '\$', 5)
mySSH.command('chmod 777 log', '\$', 5)
......@@ -286,6 +292,14 @@ class RANManagement():
mySSH = SSH.SSHConnection()
mySSH.open(lIpAddr, lUserName, lPassWord)
mySSH.command('cd ' + lSourcePath + '/cmake_targets', '\$', 3)
# TODO: when stable environment for FHI integration, remove next few lines
if re.search('-t oran_fhlib_5g', self.Build_eNB_args) is not None:
if self.extra_env_vars != '':
mySSH.command(f'source /tmp/{self.extra_env_vars}', '\$', 5)
mySSH.command(f'rm -f /tmp/{self.extra_env_vars}', '\$', 5)
mySSH.command('cp $XRAN_LIB_DIR/libxran.so ran_build/build', '\$', 5)
mySSH.command('ls ran_build/build', '\$', 3)
mySSH.command('ls ran_build/build', '\$', 3)
......@@ -383,8 +397,6 @@ class RANManagement():
mySSH.command('echo $USER; nohup sudo -E tshark -i ' + eth_interface + ' -f "' + fltr + '" -w /tmp/' + pcapfile + ' > /dev/null 2>&1 &','\$', 5)
mySSH.close()
# If tracer options is on, running tshark on EPC side and capture traffic b/ EPC and eNB
if EPC.IPAddress != "none":
localEpcIpAddr = EPC.IPAddress
......
<!--
Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The OpenAirInterface Software Alliance licenses this file to You under
the OAI Public License, Version 1.1 (the "License"); you may not use this file
except in compliance with the License.
You may obtain a copy of the License at
http://www.openairinterface.org/?page_id=698
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
For more information about the OpenAirInterface (OAI) Software Alliance:
contact@openairinterface.org
-->
<testCaseList>
<htmlTabRef>gnb-build-tab</htmlTabRef>
<htmlTabName>Build-gNB</htmlTabName>
<htmlTabIcon>wrench</htmlTabIcon>
<repeatCount>1</repeatCount>
<TestCaseRequestedList>
010101
</TestCaseRequestedList>
<TestCaseExclusionList></TestCaseExclusionList>
<testCase id="010101">
<mode>TesteNB</mode>
<class>Build_eNB</class>
<desc>Build gNB (ORAN FHI 7.2 - Release E)</desc>
<Build_eNB_args>--gNB --ninja -t oran_fhlib_5g</Build_eNB_args>
<forced_workspace_cleanup>True</forced_workspace_cleanup>
<extra_env_vars>vars_fhi_release_e_peafowl.sh</extra_env_vars>
</testCase>
</testCaseList>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment