-
COB-69: Fix COBALT2 tests Closes COB-69 See merge request !54 (cherry picked from commit dc8e4fe3) bfefba62 COB-69: Accept integration test output for COBALT2 after formal commissioning 16fabff0 COB-69: Accept new output for station streams after adding LV614. 50d951bf COB-69: Queue names changed from lofar to otdb prefix, fixed tests accordingly. e0ac1e0a COB-69: Failed test returns different error code on COBALT2. Adjust test accordingly. 2ea72918 COB-69: Use updated queue names for comparing against golden output. 82361bad COB-69: Use parset filename for tests that more closely mimics those in... f70c663a COB-69: Removed test that was always blinking and kind of ill conceived.
COB-69: Fix COBALT2 tests Closes COB-69 See merge request !54 (cherry picked from commit dc8e4fe3) bfefba62 COB-69: Accept integration test output for COBALT2 after formal commissioning 16fabff0 COB-69: Accept new output for station streams after adding LV614. 50d951bf COB-69: Queue names changed from lofar to otdb prefix, fixed tests accordingly. e0ac1e0a COB-69: Failed test returns different error code on COBALT2. Adjust test accordingly. 2ea72918 COB-69: Use updated queue names for comparing against golden output. 82361bad COB-69: Use parset filename for tests that more closely mimics those in... f70c663a COB-69: Removed test that was always blinking and kind of ill conceived.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
tMultiPartTABOutput.run 1.09 KiB
#!/bin/bash
source MessageFuncs.sh
create_queue otdb.task.feedback.dataproducts
# remove any output files from prev runs
rm -f tMultiPartTABOutput-L123881_SAP000_B000_P00?_bf.h5 tMultiPartTABOutput-L123881_SAP000_B000_P00?_bf.raw
outPid=none
trap 'kill -9 $outPid' SIGTERM SIGINT SIGQUIT SIGHUP # don't linger on e.g. Ctrl-C
obsID=123881
./outputProc $obsID &
outPid=$!
./tMultiPartTABOutput
testStatus=$?
[ $testStatus -eq 0 ] || echo "Error: Test exited with status $testStatus"
wait $outPid
outputProcStatus=$?
[ $outputProcStatus -eq 0 ] || echo "Error: outputProc exited with status $outputProcStatus"
# Verify outputs
dataStatus=0
gunzip tMultiPartTABOutput.in_P000.raw.gz && diff tMultiPartTABOutput.in_P000.raw tMultiPartTABOutput-L123881_SAP000_B000_P000_bf.raw || dataStatus=1
gunzip tMultiPartTABOutput.in_P001.raw.gz && diff tMultiPartTABOutput.in_P001.raw tMultiPartTABOutput-L123881_SAP000_B000_P001_bf.raw || dataStatus=1
# final verdict
# outputProc crashes on final meta data. Ignore. We checked the output files.
[ $testStatus -eq 0 -a $dataStatus -eq 0 ] # -a $outputProcStatus -eq 0 ]