#!/bin/bash

#set -e
set -vx

echo -e "*****************************\n* Install test suites\n*****************************\n"
. /home/etsi/devenv.bash
cd ${HOME}/dev/TTF0002_Its/scripts || exit 1
./update_its_project.bash || exit 1

echo -e "*****************************\n* Build test suites\n*****************************\n"
cd ${HOME}/dev/etsi_its/src
ATS_LIST="AtsCAM AtsDENM AtsGeoNetworking AtsPki AtsSecurity AtsIVIM AtsMapemSpatem AtsRSUsSimulator AtsSremSsem"
for i in ${ATS_LIST}
do
    cd $i/objs
    ../bin/*_generate_makefile.bash
    cd ../..
done

echo -e "*****************************\n* Run test suites\n*****************************\n"

cd ${HOME}

exit 0
