Commit ee87d2de authored by Yann Garcia's avatar Yann Garcia
Browse files

Review virtualization scripts

parent aff2961b
Loading
Loading
Loading
Loading
+2 −11
Original line number Original line Diff line number Diff line
@@ -261,21 +261,12 @@ $ make && make install


```sh
```sh
$ git clone --recurse-submodules --branch devel https://forge.etsi.org/rep/emtel/NG112.git ./NG112
$ git clone --recurse-submodules --branch devel https://forge.etsi.org/rep/emtel/NG112.git ./NG112
$ cd /home/etsi/dev/NG112/titan-test-system-framework
$ git checkout devel
$ cd /home/etsi/dev/NG112/titan-test-system-framework/ttcn/LibHttp
$ ln -sf module_emtel.mk module.mk
```
```


- Apply patches
- Apply patches
```sh
```sh
$ cd /home/etsi/dev/NG112
$ cd /home/etsi/dev/NG112/
$ cp ./ttcn/patch_lib_common_titan/module.mk ./ttcn/LibCommon/
$ ./install.sh
$ cp ./ttcn/patch_lib_common_titan/ttcn/*.ttcn ./ttcn/LibCommon/ttcn
$ cp ./ttcn/patch_ims_titan/*.ttcn ./ttcn/LibIms/ttcn/
$ cp ./ttcn/patch_ims_titan/module.mk ./ttcn/LibIms/
$ cp ./ttcn/patch_sip_titan/*.ttcn ./ttcn/LibSip/ttcn/
$ cp ./ttcn/patch_sip_titan/module.mk ./ttcn/LibSip/
```
```


- Update your default environment with the content of the script $HOME/dev/NG112/scripts/devenv.bash.ubuntu
- Update your default environment with the content of the script $HOME/dev/NG112/scripts/devenv.bash.ubuntu
Original line number Original line Diff line number Diff line
Subproject commit 5194450f739680aa9a5d516f8c3c3f3b7a782773
Subproject commit 554d6b6b3ce1e51d88267a3c946cd30caac97a55

LibSip @ 44122c65

Original line number Original line Diff line number Diff line
Subproject commit 3fbdde74a0593590270318e1bd033ad65d974393
Subproject commit 44122c6589a3fa7f42825d2475511d08da499ff0
+6 −15
Original line number Original line Diff line number Diff line
@@ -6,25 +6,16 @@ set -vx
echo -e "*****************************\n* Checkout TTF T012 sources\n*****************************\n"
echo -e "*****************************\n* Checkout TTF T012 sources\n*****************************\n"
mkdir -p ${HOME}/dev && cd ${HOME}/dev || exit 1
mkdir -p ${HOME}/dev && cd ${HOME}/dev || exit 1


git clone --branch devel --recurse-submodules --single-branch https://forge.etsi.org/gitlab/emergency-communications/NG112.git ETSI_Ng112
git clone --branch devel --recurse-submodules --single-branch https://forge.etsi.org/gitlab/emergency-communications/NG112.git ETSI_Ng112 || exit 1
cd ${HOME}/dev/ETSI_Ng112/titan-test-system-framework
git checkout devel
cd ./ttcn/LibHttp
ln -sf module_emtel.mk module.mk


echo -e "*****************************\n* Set up environment\n*****************************\n"
echo -e "*****************************\n* Set up environment\n*****************************\n"
cd /home/etsi/dev/ETSI_Ng112/scripts
cd /home/etsi/dev/ETSI_Ng112/scripts || exit 1
ln -sf /home/etsi/dev/ETSI_Ng112/scripts/devenv.bash.ubuntu /home/etsi/devenv.bash
ln -sf /home/etsi/dev/ETSI_Ng112/scripts/devenv.bash.ubuntu /home/etsi/devenv.bash || exit 1
. /home/etsi/devenv.bash
. /home/etsi/devenv.bash || exit 1


echo -e "*****************************\n* Apply patched \n*****************************\n"
echo -e "*****************************\n* Apply patched \n*****************************\n"
cd /home/etsi/dev/ETSI_Ng112
cd /home/etsi/dev/ETSI_Ng112 || exit 1
cp ./ttcn/patch_lib_common_titan/module.mk ./ttcn/LibCommon/
./install.sh || exit 1
cp ./ttcn/patch_lib_common_titan/ttcn/*.ttcn ./ttcn/LibCommon/ttcn/
cp ./ttcn/patch_ims_titan/*.ttcn ./ttcn/LibIms/ttcn/
cp ./ttcn/patch_ims_titan/module.mk ./ttcn/LibIms/
cp ./ttcn/patch_sip_titan/*.ttcn ./ttcn/LibSip/ttcn/
cp ./ttcn/patch_sip_titan/module.mk ./ttcn/LibSip/


echo -e "*****************************\n* Build test suites\n*****************************\n"
echo -e "*****************************\n* Build test suites\n*****************************\n"
ATS_LIST="AtsLIS AtsECRF AtsESRP AtsPSAP AtsBCF"
ATS_LIST="AtsLIS AtsECRF AtsESRP AtsPSAP AtsBCF"
+8 −22
Original line number Original line Diff line number Diff line
@@ -70,28 +70,14 @@ fi


cd /home/vagrant
cd /home/vagrant
echo "" >> /home/vagrant/.bashrc
echo "" >> /home/vagrant/.bashrc
echo "export LD_LIBRARY_PATH=/home/vagrant/dev/TTF009_Ng112/lib:$LD_LIBRARY_PATH" >> /home/vagrant/.bashrc
echo "export LD_LIBRARY_PATH=/home/vagrant/dev/NG112/lib:$LD_LIBRARY_PATH" >> /home/vagrant/.bashrc
echo "export PATH=/home/vagrant/bin:$PATH" >> /home/vagrant/.bashrc
echo "export PATH=/home/vagrant/bin:$PATH" >> /home/vagrant/.bashrc
echo ". ~/devenv.bash" >> /home/vagrant/.bashrc
echo ". ~/devenv.bash" >> /home/vagrant/.bashrc


cd /home/vagrant/dev
cd /home/vagrant/dev
git clone https://forge.etsi.org/gitlab/emergency-communications/NG112 ./TTF009_Ng112
git clone --recurse-submodules --branch=devel https://forge.etsi.org/rep/emtel/NG112.git
cd /home/vagrant/dev/TTF009_Ng112
cd /home/vagrant/dev/NG112
cd /home/vagrant/dev/TTF009_Ng112/ttcn
./install.sh
git clone https://forge.etsi.org/gitlab/LIBS/LibSip.git ./LibSip
git clone https://forge.etsi.org/gitlab/LIBS/LibIms.git ./LibIms
git clone https://forge.etsi.org/gitlab/LIBS/LibCommon.git ./LibCommon
rm -fr asn1 t3q xsd
cd ttcn && rm -fr BTP CALM CAM Common DCC DENM GeoNetworking Ipv6OverGeoNetworking IVIM MapemSpatem Pki Security SremSsem V2G
cd /home/vagrant/dev/TTF009_Ng112/scripts
chmod 775 *.bash devenv.bash.*
cd /home/vagrant/dev/TTF009_Ng112/docker
chmod 775 *.sh
cd /home/vagrant/dev/TTF009_Ng112
chmod 775 ./.jenkins.sh
cd /home/vagrant
ln -sf /home/vagrant/dev/TTF009_Ng112/scripts/devenv.bash.ubuntu /home/vagrant/devenv.bash
. /home/vagrant/devenv.bash


# Install all frameworks
# Install all frameworks


@@ -126,18 +112,18 @@ lcov --version
coveralls-lcov -h
coveralls-lcov -h


# Build TITAN
# Build TITAN
cd /home/vagrant/dev/TTF009_Ng112/scripts
cd /home/vagrant/dev/NG112/scripts
./build_titan.bash
./build_titan.bash
. /home/vagrant/devenv.bash
. /home/vagrant/devenv.bash


# Build the AtsLIS
# Build the AtsLIS
cd /home/vagrant/dev/TTF009_Ng112
cd /home/vagrant/dev/NG112
export ATS=AtsLIS
export ATS=AtsLIS
make
make


# Change user in cfg files
# Change user in cfg files
cd ${HOME}/dev/TTF009_Ng112/scripts
cd ${HOME}/dev/NG112/scripts
./update_user_name.sh TTF009_Ng112
./update_user_name.sh NG112


cd ${OLD_PWD}
cd ${OLD_PWD}