Skip to content
Snippets Groups Projects
Commit d3261107 authored by m.marn's avatar m.marn
Browse files

Update testing script

parent 033a8501
No related branches found
No related tags found
No related merge requests found
This commit is part of merge request !64. Comments created here will be created in the context of that merge request.
......@@ -11,3 +11,4 @@ builds/*
.data
build
build-yocto
test/build-test
......@@ -4,20 +4,48 @@ set -e
SCRIPT_PATH=$(dirname $(readlink -f "$0"))
. $SCRIPT_PATH/../build/latest/silecs_environment
cd $SCRIPT_PATH/../
./configure.sh -r $SCRIPT_PATH/build-test -t x86_64
./build.sh -t x86_64
./install.sh -t x86_64
./configure.sh -r $SCRIPT_PATH/build-test -t yocto
./build.sh -t yocto
./install.sh -t yocto
cd $SCRIPT_PATH
. $SCRIPT_PATH/build-test/latest/silecs_environment
RELATIVE_PATH=$(dirname "$0")
silecs -g $RELATIVE_PATH/AllTypesFESA $RELATIVE_PATH/AllTypesFESA_DU
fesa3 -v $RELATIVE_PATH/AllTypesFESA/src/AllTypesFESA.design
fesa3 -v $RELATIVE_PATH/AllTypesFESA_DU/src/AllTypesFESA_DU.deploy
yocto-fesa3 -c $RELATIVE_PATH/AllTypesFESA gen
yocto-fesa3 -c $RELATIVE_PATH/AllTypesFESA build
yocto-fesa3 -d $RELATIVE_PATH/AllTypesFESA_DU release -f vmla016
yocto-fesa3 -d $RELATIVE_PATH/AllTypesFESA_DU release -f vmla016 -e int
silecs -r $SCRIPT_PATH/AllTypesFESA_DU -e int
read -p "Load the device-mode scl on the PLC and startup the FESA class configure with device-mode device. Then press any key to continue"
cp $RELATIVE_PATH/AllTypesFESA_DU/hosts /common/export/fesa/local/vmla016/AllTypesFESA_DU/
echo "Load the device-mode scl on the PLC and startup the FESA class configure with device-mode device. Make sure that the instance file only contains the one device-mode device."
echo "To start on yocto systems, use the systemd fesa tools. systemctl start fesa@AllTypesFESA_DU, systemctl status fesa@AllTypesFESA_DU, journalctl -u fesa@AllTypesFESA_DU"
echo "Make sure tsts7001-device and tsts7001-block are resolved to tsts7001, by specifying export HOSTALIASES=/opt/fesa/nfs/local/vmla016/AllTypesFESA_DU/hosts,"\
"An alternative if you can not get systemd to work is to rename the PLC in the FESA instance file to tsts7001 and rename the tsts7001-*.silecsparam file to tsts7001.silecsparam within /etc/fesa/params/"
echo "If you wish to avoid testing with systemd tools, you can synchronize the class and copy over startManually_AllTypesFESA_DU_M.sh. Since this is not done automatically by the fesa yocto release scripts"
read -p "Then press any key to continue"
$SCRIPT_PATH/cmwTester.py --int
read -p "Load the block-mode scl on the PLC and startup the FESA class configured with block-mode device. Then press any key to continue"
echo "Load the device-mode scl on the PLC and startup the FESA class configure with block-mode device. Make sure that the instance file only contains the one block-mode device."
echo "To start on yocto systems, use the systemd fesa tools. systemctl start fesa@AllTypesFESA_DU, systemctl status fesa@AllTypesFESA_DU, journalctl -u fesa@AllTypesFESA_DU"
echo "Make sure tsts7001-device and tsts7001-block are resolved to tsts7001, by specifying export HOSTALIASES=/opt/fesa/nfs/local/vmla016/AllTypesFESA_DU/hosts,"\
"An alternative if you can not get systemd to work is to rename the PLC in the FESA instance file to tsts7001 and rename the tsts7001-*.silecsparam file to tsts7001.silecsparam within /etc/fesa/params/"
read -p "Then press any key to continue"
$SCRIPT_PATH/cmwTester.py --int --block-mode
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment