Skip to content
Snippets Groups Projects
Commit 820e11aa authored by Jorrit Schaap's avatar Jorrit Schaap
Browse files

SW-816: Merge remote-tracking branch 'origin/LOFAR-Release-4_0' into SW-816

parents 3bccd791 b21b0bf5
No related branches found
No related tags found
2 merge requests!59Merge LOFAR-Release-4_0 into master,!57Resolve SW-816
Showing
with 1 addition and 1666 deletions
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
#!/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
...@@ -34,7 +34,7 @@ function test_parset { ...@@ -34,7 +34,7 @@ function test_parset {
} }
test_parset $PWD/tStatusFeedback.in_parset_success_1 0 "" test_parset $PWD/tStatusFeedback.in_parset_success_1 0 ""
test_parset $PWD/tStatusFeedback.in_parset_failure_1 1 "-o Cobalt.Nodes=[unreachable]" test_parset $PWD/tStatusFeedback.in_parset_failure_1 255 "-o Cobalt.Nodes=[unreachable]"
# Everything went ok # Everything went ok
exit 0 exit 0
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