Skip to content
Snippets Groups Projects
Commit b97c06bc authored by Menno Norden's avatar Menno Norden
Browse files

bug 1315: new versions for NL/INT stations

parent ceca7ae7
No related branches found
No related tags found
No related merge requests found
#!/bin/bash #!/bin/bash
#
# # Get version info from the RSP boards and compare this with the expected golden result.
# 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
rm -f *.log let rspboards=`sed -n 's/^\s*RS\.N_RSPBOARDS\s*=\s*\([0-9][0-9]*\).*$/\1/p' /opt/lofar/etc/RemoteStation.conf`
rm -f *.diff
rspctl --version > rsp_version.log rm -f rsp_version*.log
diff rsp_version.log gold/rsp_version.gold > rsp_version.diff rm -f rsp_version*.diff
if [ -e rsp_version.log ] && [ -e gold/rsp_version.gold ] && [ -e rsp_version.diff ] && ! [ -s rsp_version.diff ]; then rspctl --version > rsp_version.log
# The files exists AND the diff has size 0
echo "RSP version test went OK" if [ $rspboards == 12 ]; then
else # This is a NL station
echo "RSP version test went wrong" diff rsp_version.log gold/rsp_version.gold > rsp_version.diff
fi 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
...@@ -3,12 +3,15 @@ ...@@ -3,12 +3,15 @@
# #
# Test the LVDS interfaces between RCU -> RSP -> TBB using the Pseudo Random generator in the RCUs. # 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 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 let nof_rcu=8*$rspboards
rm -f *.log rm -f prbs_dir*.log
rm -f *.diff rm -f prbs_dir*.diff
rm -f ./prbs/*.* rm -f ./prbs/*.*
rm -r ./prbs/.svn rm -r ./prbs/.svn
...@@ -41,11 +44,24 @@ cd .. ...@@ -41,11 +44,24 @@ cd ..
python prbs_dir_test.py python prbs_dir_test.py
rspctl --rcuprsg=0 rspctl --rcuprsg=0
echo "" if [ $tbboards == 6 ]; then
diff prbs_dir_test.log ./gold/prbs_dir_test.gold > prbs_dir_test.diff # This is a NL station
if [ -e prbs_dir_test.log ] && [ -e ./gold/prbs_dir_test.gold ] && [ -e prbs_dir_test.diff ] && ! [ -s prbs_dir_test.diff ]; then diff prbs_dir_test.log ./gold/prbs_dir_test.gold > prbs_dir_test.diff
# The files exists AND has the diff size 0 if [ -e prbs_dir_test.log ] && [ -e ./gold/prbs_dir_test.gold ] && [ -e prbs_dir_test.diff ] && ! [ -s prbs_dir_test.diff ]; then
echo "RCU -> RSP -> TBB interfaces test went OK" # 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 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 fi
#!/bin/bash #!/bin/bash
# #
# Get version info from the TBB boards and compare this with the expected golden result. # 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 rm -f tbb_size*.log
tbbctl --size > tbb_size.log rm -f tbb_size*.diff
diff tbb_size.log gold/tbb_size.gold > tbb_size.diff tbbctl --size > tbb_size.log
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 let tbboards=`sed -n 's/^\s*RS\.N_TBBOARDS\s*=\s*\([0-9][0-9]*\).*$/\1/p' /opt/lofar/etc/RemoteStation.conf`
echo "TBB memory size test went OK"
else if [ $tbboards == 6 ]; then
echo "TBB memory size test went wrong" # This is a NL station
fi 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
#!/bin/bash #!/bin/bash
#
# # Get version info from the TBB boards and compare this with the expected golden result.
# 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
rm -f tbb_version.log 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.diff
tbbctl --version > tbb_version.log rm -f tbb_version*.log
diff tbb_version.log gold/tbb_version.gold > tbb_version.diff rm -f tbb_version*.diff
if [ -e tbb_version.log ] && [ -e gold/tbb_version.gold ] && [ -e tbb_version.diff ] && ! [ -s tbb_version.diff ]; then tbbctl --version > tbb_version.log
# The files exists AND has the diff size 0
echo "TBB version test went OK" if [ $tbboards == 6 ]; then
else # This is a NL station
echo "TBB version test went wrong" diff tbb_version.log gold/tbb_version.gold > tbb_version.diff
fi 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
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