Skip to content
Snippets Groups Projects
Commit 7e0df24f authored by Dinyar Rabady's avatar Dinyar Rabady
Browse files

Check if SCDAQ actually runs

Belongs to #34.
parent 5f00e8ec
No related branches found
No related tags found
No related merge requests found
Pipeline #4700104 failed
#!/bin/sh #!/bin/bash
echo "building scdaq locally" echo "building scdaq locally"
cd src cd src
make all make all
...@@ -10,6 +10,19 @@ tar -xzvf gmt_testfile.tar.gz ...@@ -10,6 +10,19 @@ tar -xzvf gmt_testfile.tar.gz
cd ../../ cd ../../
echo "Starting scdaq test with GMT P5 capture file: check for crash" echo "Starting scdaq test with GMT P5 capture file: check for crash"
timeout 20s src/scdaq --config test/config/scdaq-gmt.conf | uniq timeout 20s src/scdaq --config test/config/scdaq-gmt.conf | uniq
if [[ $(find -name "*scout_GMT*" | wc -l) -eq 0 ]]; then
echo "SCDAQ test for GMT failed!"
GMT_FAILED=true
fi
echo "Starting scdaq test with CALO P5 capture file: check for crash" echo "Starting scdaq test with CALO P5 capture file: check for crash"
timeout 100s src/scdaq --config test/config/scdaq-calo.conf | uniq timeout 100s src/scdaq --config test/config/scdaq-calo.conf | uniq
if [[ $(find -name "*scout_CALO*" | wc -l) -eq 0 ]]; then
"SCDAQ test for CALO failed!"
CALO_FAILED=true
fi
if [[ $GMT_FAILED = true || $CALO_FAILED = true ]]; then
exit 1
fi
echo "test run finished" echo "test run finished"
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