Skip to content
Snippets Groups Projects

[meta,cmake] Restructure project and introduce CMake tooling

Merged Giovanna Lazzari Miotto requested to merge feature/cmake-migration into main
Compare and Show latest version
1 file
+ 4
3
Compare changes
  • Side-by-side
  • Inline
+ 4
3
#!/bin/bash
echo "building scdaq locally"
cd src
cd build
cmake ..
make all
cd -
echo "building scdaq locally"
@@ -9,11 +10,11 @@ tar -xzvf calo_testfile.tar.gz
tar -xzvf gmt_testfile.tar.gz
cd ../../
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 build/scdaq --config test/config/scdaq-gmt.conf | uniq
GMTRET="${PIPESTATUS[0]}"
echo "#############################################################################"
echo "Starting scdaq test with CALO P5 capture file: check for crash"
timeout 60s src/scdaq --config test/config/scdaq-calo.conf | uniq
timeout 60s build/scdaq --config test/config/scdaq-calo.conf | uniq
CALORET="${PIPESTATUS[0]}"
if [[ "$GMTRET" -ne 124 ]]; then # We expect to fail with a timeout because scdaq isn't supposed to return.
echo "SCDAQ test for GMT failed with exit code ${GMTRET}!"
Loading