Commit 6c3f02e5 authored by YannGarcia's avatar YannGarcia
Browse files

Add script to switch in ITS Conformance testing Release 2

parent 79feabf2
Loading
Loading
Loading
Loading

switch_its_r2.sh

0 → 100755
+73 −0
Original line number Diff line number Diff line
#!/bin/bash

#set -e
set -vx

BASE_PATH=`pwd`

git checkout ttf_t024
git submodule update --init --recursive --remote

cd $BASE_PATH/ttcn
git checkout devel

for i in `find $BASE_PATH/ttcn -type d -name "Ats*"`
do
    cd $i
    git checkout devel2
done
for i in `find $BASE_PATH/ttcn/Ats* -type d -name "asn1"`
do
    cd $i
    git checkout testing2
    if [ -f ETSI-ITS-CDD.asn ]
    then
        ln -sf ETSI-ITS-CDD.asn ETSI_ITS_CDD.asn
    elif [ -f IVIM-PDU-Descriptions.asn ]
    then
        ln -sf IVIM-PDU-Descriptions.asn IVIM_PDU_Descriptions.asn
        ln -sf MAPEM-PDU-Descriptions.asn MAPEM_PDU_Descriptions.asn
        ln -sf RTCMEM-PDU-Descriptions.asn RTCMEM_PDU_Descriptions.asn
        ln -sf SPATEM-PDU-Descriptions.asn SPATEM_PDU_Descriptions.asn
        ln -sf SREM-PDU-Descriptions.asn SREM_PDU_Descriptions.asn
        ln -sf SSEM-PDU-Descriptions.asn SSEM_PDU_Descriptions.asn
        ln -sf iso-patched/'ISO14906(2018)EfcDsrcApplicationv6-patched.asn' iso-patched/EfcDsrcApplication.asn
        ln -sf iso-patched/'ISO14906(2018)EfcDsrcGenericv7-patched.asn' iso-patched/EfcDsrcGeneric.asn
        ln -sf iso-patched/ISO24534-3_ElectronicRegistrationIdentificationVehicleDataModule-patched.asn iso-patched/ElectronicRegistrationIdentificationVehicleDataModule.asn
        ln -sf iso-patched/ISO14823-missing.asn iso-patched/GDD.asn
    fi
    SUB_DIRS=`find . -type d`
    if [ "SUB_DIRS" != "" ]
    then
        for j in $SUB_DIRS
        do
            cd $j
            git checkout testing2
            cd -
        done
    fi
done

cd $BASE_PATH
git checkout ttf_t024

if [ ! -f ./titan-test-system-framework ]
then
    git clone --recurse-submodules --single-branch --branch devel https://labs.etsi.org/rep/cti-tools/titan-test-system-framework.git
    cd ./titan-test-system-framework
else
    cd ./titan-test-system-framework
    git checkout devel
fi
cd ./ttcn/LibHttp
ln -sf module_its.mk module.mk

cd $BASE_PATH/ttcn/LibIts
git checkout devel2

cd $BASE_PATH
cp ./ttcn/patch_lib_common_titan/module.mk ./ttcn/LibCommon/
cp ./ttcn/patch_lib_common_titan/ttcn/* ./ttcn/LibCommon/ttcn


exit 0
Compare 4d31ca69 to fdc5adbb
Original line number Diff line number Diff line
Subproject commit 4d31ca6919e16a4f84a14c0344df93be71d03e54
Subproject commit fdc5adbbaaa08e5b583eb90cb66aff370f9310bd