diff --git a/LCU/StationTest/rsp_version.sh b/LCU/StationTest/rsp_version.sh index 1e41c9f4da624926ac67ad3c146aad5f57045770..f48d536cb60effd82815d44b78c2c43bb2109e09 100755 --- a/LCU/StationTest/rsp_version.sh +++ b/LCU/StationTest/rsp_version.sh @@ -1,16 +1,31 @@ -#!/bin/bash - -# -# Get version info from the RSP boards and compare this with the expected golden result. -# - -rm -f *.log -rm -f *.diff -rspctl --version > rsp_version.log -diff rsp_version.log gold/rsp_version.gold > rsp_version.diff -if [ -e rsp_version.log ] && [ -e gold/rsp_version.gold ] && [ -e rsp_version.diff ] && ! [ -s rsp_version.diff ]; then - # The files exists AND the diff has size 0 - echo "RSP version test went OK" -else - echo "RSP version test went wrong" -fi +#!/bin/bash +# +# Get version info from the RSP boards and compare this with the expected golden result. +# +# Modified voor INT stations, M.J.Norden 14-10-2010 + +let rspboards=`sed -n 's/^\s*RS\.N_RSPBOARDS\s*=\s*\([0-9][0-9]*\).*$/\1/p' /opt/lofar/etc/RemoteStation.conf` + +rm -f rsp_version*.log +rm -f rsp_version*.diff +rspctl --version > rsp_version.log + +if [ $rspboards == 12 ]; then + # This is a NL station + diff rsp_version.log gold/rsp_version.gold > rsp_version.diff + if [ -e rsp_version.log ] && [ -e gold/rsp_version.gold ] && [ -e rsp_version.diff ] && ! [ -s rsp_version.diff ]; then + # The files exists AND the diff has size 0 + echo "RSP version test went OK" + else + echo "RSP version test went wrong" + fi +else + # This is a INT station + diff rsp_version.log gold/rsp_version_int.gold > rsp_version_int.diff + if [ -e rsp_version.log ] && [ -e gold/rsp_version_int.gold ] && [ -e rsp_version_int.diff ] && ! [ -s rsp_version_int.diff ]; then + # The files exists AND the diff has size 0 + echo "RSP version test went OK" + else + echo "RSP version test went wrong" + fi +fi \ No newline at end of file diff --git a/LCU/StationTest/tbb_prbs_tester.sh b/LCU/StationTest/tbb_prbs_tester.sh index 314cdefc6cd5a579891d874ccf2716fb877fffb6..ca1d254275390456b483e54c8d0ad4cf1c01f3c8 100755 --- a/LCU/StationTest/tbb_prbs_tester.sh +++ b/LCU/StationTest/tbb_prbs_tester.sh @@ -3,12 +3,15 @@ # # Test the LVDS interfaces between RCU -> RSP -> TBB using the Pseudo Random generator in the RCUs. # +# Modified for INT station 14-10-2010 M.J.Norden + let rspboards=`sed -n 's/^\s*RS\.N_RSPBOARDS\s*=\s*\([0-9][0-9]*\).*$/\1/p' /opt/lofar/etc/RemoteStation.conf` +let tbboards=`sed -n 's/^\s*RS\.N_TBBOARDS\s*=\s*\([0-9][0-9]*\).*$/\1/p' /opt/lofar/etc/RemoteStation.conf` let nof_rcu=8*$rspboards -rm -f *.log -rm -f *.diff +rm -f prbs_dir*.log +rm -f prbs_dir*.diff rm -f ./prbs/*.* rm -r ./prbs/.svn @@ -41,11 +44,24 @@ cd .. python prbs_dir_test.py rspctl --rcuprsg=0 -echo "" -diff prbs_dir_test.log ./gold/prbs_dir_test.gold > prbs_dir_test.diff -if [ -e prbs_dir_test.log ] && [ -e ./gold/prbs_dir_test.gold ] && [ -e prbs_dir_test.diff ] && ! [ -s prbs_dir_test.diff ]; then - # The files exists AND has the diff size 0 - echo "RCU -> RSP -> TBB interfaces test went OK" +if [ $tbboards == 6 ]; then + # This is a NL station + diff prbs_dir_test.log ./gold/prbs_dir_test.gold > prbs_dir_test.diff + if [ -e prbs_dir_test.log ] && [ -e ./gold/prbs_dir_test.gold ] && [ -e prbs_dir_test.diff ] && ! [ -s prbs_dir_test.diff ]; then + # The files exists AND has the diff size 0 + echo "RCU -> RSP -> TBB interfaces test went OK" + else + echo "RCU -> RSP -> TBB interfaces test went wrong" + fi else - echo "RCU -> RSP -> TBB interfaces test went wrong" + # This is a INT station + diff prbs_dir_test.log ./gold/prbs_dir_test_int.gold > prbs_dir_test_int.diff + if [ -e prbs_dir_test.log ] && [ -e ./gold/prbs_dir_test_int.gold ] && [ -e prbs_dir_test_int.diff ] && ! [ -s prbs_dir_test_int.diff ]; then + # The files exists AND has the diff size 0 + echo "RCU -> RSP -> TBB interfaces test went OK" + else + echo "RCU -> RSP -> TBB interfaces test went wrong" + fi fi + + diff --git a/LCU/StationTest/tbb_size.sh b/LCU/StationTest/tbb_size.sh index bb54250a43a44392a800a639cae54f3c215fe49e..943ec4fac47c5dc2895a62b5013a556b4c8ad41f 100755 --- a/LCU/StationTest/tbb_size.sh +++ b/LCU/StationTest/tbb_size.sh @@ -1,16 +1,32 @@ -#!/bin/bash - -# -# Get version info from the TBB boards and compare this with the expected golden result. -# - -rm -f tbb_size.log -rm -f tbb_size.diff -tbbctl --size > tbb_size.log -diff tbb_size.log gold/tbb_size.gold > tbb_size.diff -if [ -e tbb_size.log ] && [ -e gold/tbb_size.gold ] && [ -e tbb_size.diff ] && ! [ -s tbb_size.diff ]; then - # The files exists AND has the diff size 0 - echo "TBB memory size test went OK" -else - echo "TBB memory size test went wrong" -fi +#!/bin/bash + +# +# Get version info from the TBB boards and compare this with the expected golden result. +# +# Modified for INT stations, 14-10-2010, M.J.Norden + +rm -f tbb_size*.log +rm -f tbb_size*.diff +tbbctl --size > tbb_size.log + +let tbboards=`sed -n 's/^\s*RS\.N_TBBOARDS\s*=\s*\([0-9][0-9]*\).*$/\1/p' /opt/lofar/etc/RemoteStation.conf` + +if [ $tbboards == 6 ]; then + # This is a NL station + diff tbb_size.log gold/tbb_size.gold > tbb_size.diff + if [ -e tbb_size.log ] && [ -e gold/tbb_size.gold ] && [ -e tbb_size.diff ] && ! [ -s tbb_size.diff ]; then + # The files exists AND has the diff size 0 + echo "TBB memory size test went OK" + else + echo "TBB memory size test went wrong" + fi +else + # This is a INT station + diff tbb_size.log gold/tbb_size_int.gold > tbb_size_int.diff + if [ -e tbb_size.log ] && [ -e gold/tbb_size_int.gold ] && [ -e tbb_size_int.diff ] && ! [ -s tbb_size_int.diff ]; then + # The files exists AND has the diff size 0 + echo "TBB memory size test went OK" + else + echo "TBB memory size test went wrong" + fi +fi diff --git a/LCU/StationTest/tbb_version.sh b/LCU/StationTest/tbb_version.sh index 0295338c4e87a220df6c28292d54a6f38f94e29e..a3d3f10c01a4882dc64a79f402cbdcb8eba29568 100755 --- a/LCU/StationTest/tbb_version.sh +++ b/LCU/StationTest/tbb_version.sh @@ -1,16 +1,31 @@ -#!/bin/bash - -# -# Get version info from the TBB boards and compare this with the expected golden result. -# - -rm -f tbb_version.log -rm -f tbb_version.diff -tbbctl --version > tbb_version.log -diff tbb_version.log gold/tbb_version.gold > tbb_version.diff -if [ -e tbb_version.log ] && [ -e gold/tbb_version.gold ] && [ -e tbb_version.diff ] && ! [ -s tbb_version.diff ]; then - # The files exists AND has the diff size 0 - echo "TBB version test went OK" -else - echo "TBB version test went wrong" -fi +#!/bin/bash +# +# Get version info from the TBB boards and compare this with the expected golden result. +# +# Modified voor INT stations, M.J.Norden 14-10-2010 + +let tbboards=`sed -n 's/^\s*RS\.N_TBBOARDS\s*=\s*\([0-9][0-9]*\).*$/\1/p' /opt/lofar/etc/RemoteStation.conf` + +rm -f tbb_version*.log +rm -f tbb_version*.diff +tbbctl --version > tbb_version.log + +if [ $tbboards == 6 ]; then + # This is a NL station + diff tbb_version.log gold/tbb_version.gold > tbb_version.diff + if [ -e tbb_version.log ] && [ -e gold/tbb_version.gold ] && [ -e tbb_version.diff ] && ! [ -s tbb_version.diff ]; then + # The files exists AND has the diff size 0 + echo "TBB version test went OK" + else + echo "TBB version test went wrong" + fi +else + # This is a INT station + diff tbb_version.log gold/tbb_version_int.gold > tbb_version_int.diff + if [ -e tbb_version.log ] && [ -e gold/tbb_version_int.gold ] && [ -e tbb_version_int.diff ] && ! [ -s tbb_version_int.diff ]; then + # The files exists AND has the diff size 0 + echo "TBB version test went OK" + else + echo "TBB version test went wrong" + fi +fi