Commit 1ca4b082 authored by Yann Garcia's avatar Yann Garcia
Browse files

Update GitLab pipelines to match TTF T036 (ITS rel 2)

parent a131cd94
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -6,7 +6,7 @@


workflow:
workflow:
  rules:
  rules:
    - if: $CI_COMMIT_BRANCH == "devel"
    - if: $CI_COMMIT_BRANCH == "TTF_T043"
    
    
stages:
stages:
  - run
  - run
+3 −3
Original line number Original line Diff line number Diff line
FROM etsiforge/stfubuntu:20.04
FROM etsiforge/stfubuntu:20.04


MAINTAINER ETSI TTF T027
MAINTAINER ETSI TTF T043


LABEL description="TTF_T027_Mec Docker Image"
LABEL description="TTF_T043_Mec Docker Image"


ENV TERM=linux \
ENV TERM=linux \
    HOME=/home/etsi \
    HOME=/home/etsi \
    HOSTNAME=docker-titan-TTF_T027
    HOSTNAME=docker-titan-TTF_T043


COPY home /home/etsi
COPY home /home/etsi


+0 −26
Original line number Original line Diff line number Diff line
#!/bin/bash

ECLIPSE_URL='https://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/2024-03/R/eclipse-cpp-2024-03-R-linux-gtk-x86_64.tar.gz&r=1'
TITAN_URL='https://www.eclipse.org/downloads/download.php?file=/titan/TITAN_Designer_and_Executor_Plugin_7.1.0.zip&r=1'

#set -e
set -vx

echo -e "*****************************\n* Install eclipse\n*****************************\n"

mkdir -p ${HOME}/frameworks
cd ${HOME}/frameworks || exit 1
wget --progress=dot:mega 'http://www.mirrorservice.org/sites/download.eclipse.org/eclipseMirror/technology/epp/downloads/release/2024-03/R/eclipse-cpp-2024-03-R-linux-gtk-x86_64.tar.gz' -Oeclipse-cpp-2024-03-R-linux-gtk-x86_64.tar.gz || exit 1
tar -zxvf ./eclipse-cpp-2024-03-R-linux-gtk-x86_64.tar.gz || exit 1
ln -sf ${HOME}/frameworks/eclipse/eclipse ${HOME}/bin/eclipse
rm -f ./eclipse-cpp-2024-03-R-linux-gtk-x86_64.tar.gz

if wget --progress=dot:mega 'https://www.eclipse.org/downloads/download.php?file=/titan/TITAN_Designer_and_Executor_plugin-8.1.0.zip' -OTITAN_Designer_and_Executor_plugin.zip; then
  eclipse/eclipse -noSplash -application org.eclipse.equinox.p2.director \
    -destination /home/etsi/frameworks/eclipse \
    -repository 'jar:file:///home/etsi/frameworks/TITAN_Designer_and_Executor_plugin.zip!/' \
    -installIU TITAN_Designer.feature.group,TITAN_Executor.feature.group,TITAN_Log_Viewer.feature.group,Titan_external_dependencies.feature.group,Titanium.feature.group,Titanium_external_dependencies.feature.group
  rm -f TITAN_Designer_and_Executor_plugin.zip
fi

cd ${HOME}
+0 −48
Original line number Original line Diff line number Diff line
#!/bin/bash

#set -e
set -vx

echo -e "*****************************\n* Checkout mec_devel sources\n*****************************\n"
mkdir -p ${HOME}/dev && cd ${HOME}/dev || exit 1

git clone --recurse-submodules --branch TTF_T027 https://forge.etsi.org/rep/mec/gs032p3-ttcn-test-suite.git mec_devel
cd ${HOME}/dev/mec_devel/titan-test-system-framework
git checkout devel
cd ${HOME}/dev/mec_devel/ttcn
git clone https://forge.etsi.org/gitlab/LIBS/LibCommon.git ./LibCommon

echo -e "*****************************\n* Set up environment\n*****************************\n"
cd ${HOME}/dev/mec_devel/scripts
ln -sf ${HOME}/dev/mec_devel/scripts/devenv.bash.ubuntu ${HOME}/devenv.bash
. ${HOME}/devenv.bash

echo -e "*****************************\n* Apply patched \n*****************************\n"
cd ${HOME}/dev/mec_devel

cd ./ttcn/LibCommon
ln -sf  ${HOME}/dev/mec_devel/ttcn/patch_lib_common_titan/module.mk module.mk
cd -
cd ./titan-test-system-framework/ttcn/LibHttp
ln -sf module_mec.mk module.mk
cd -

echo -e "*****************************\n* Build Mec test suite\n*****************************\n"
cd ${HOME}/dev/mec_devel
export ATS_LIST="AtsMec_Location AtsMec_Rnis AtsMec_TrafficManagement AtsMec_UEidentity AtsMec_WlanInformation AtsMec_V2XInformationService"
for i in ${ATS_LIST}
do
    export ATS=$i
    make || exit 1
done
rm -fr ./build || exit 1

cd ./etc/AtsMec_Location
ln -sf AtsMec_Sandbox.cf_ AtsMec_Location.cfg

echo -e "*****************************\n* Change sudo in command line\n*****************************\n"
cd ${HOME}/dev/mec_devel/scripts
sed --in-place 's/sudo/echo "etsi" \| sudo -S/' ./run_mtc.bash
sed --in-place 's/sudo/echo "etsi" \| sudo -S/' ./run_ptcs.bash

cd ${HOME}/dev/mec_devel