Skip to content
Snippets Groups Projects
Commit f70c663a authored by Jan David Mol's avatar Jan David Mol
Browse files

COB-69: Removed test that was always blinking and kind of ill conceived.

parent 82361bad
No related branches found
No related tags found
1 merge request!54COB-69: Fix COBALT2 tests
...@@ -11,7 +11,6 @@ endforeach() ...@@ -11,7 +11,6 @@ endforeach()
set(_tests set(_tests
tgenerateStationStreams tgenerateStationStreams
tStatusFeedback tStatusFeedback
tProductionParsets
tstartBGL tstartBGL
) )
......
#!/bin/bash
#
# Test whether all parsets in tProductionParsets.in_parsets
# are accepted by runObservation.sh. Does not:
#
# * process blocks
# * read input from stations
# * write output
#
# Note: production parsets are stored by OnlineControl as
# /opt/lofar/var/run/CorrProc_$OBSID.param
. ./testFuncs.sh
# The directory containing the parsets to test
PARSETDIR=tProductionParsets.in_parsets
# Copy extra parsets to test
cp $srcdir/default.parset $PARSETDIR
for PARSET in $PARSETDIR/*
do
echo "****** Testing parset `basename "$PARSET"` ******"
# Reduce the run time to zero
echo "Observation.startTime = 2013-01-01 00:00:00" >> $PARSET
echo "Observation.stopTime = 2013-01-01 00:00:00" >> $PARSET
# Prevent input from being read
sed -i 's/RSP.sources = .*/RSP.sources = [4*null:]/' $PARSET
# Prevent output from being written
echo "Observation.DataProducts.Output_Correlated.filenames=[488*/dev/null]" >> $PARSET
echo "Observation.DataProducts.Output_Correlated.locations=[488*:.]" >> $PARSET
echo "Observation.DataProducts.Output_Beamformed.filenames=[500*/dev/null]" >> $PARSET
echo "Observation.DataProducts.Output_Beamformed.locations=[500*:.]" >> $PARSET
# Run the observation (do NOT throw alarms for running past observations)
timeout 300s runObservation.sh -B -C -F -l 1 -x COBALT_NO_ALARM=1 $PARSET
OBSRESULT=$?
if [ $OBSRESULT -gt 0 ]; then
exit $OBSRESULT
fi
done
# Everything went ok
exit 0
#!/bin/sh
./runctest.sh tProductionParsets
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment