Skip to content
Snippets Groups Projects
Commit 67b1374c authored by Thomas Owen James's avatar Thomas Owen James :speech_balloon:
Browse files

Added simple test to the CI with one input file captured with passthrough for...

Added simple test to the CI with one input file captured with passthrough for each of uGMT and DEMUX
parent ffef9b2a
No related branches found
No related tags found
2 merge requests!59CMSSW json file,!6Added simple test to the CI with one input file captured with passthrough for each of uGMT and DEMUX
Pipeline #4267167 passed
...@@ -26,3 +26,12 @@ build_rpm_dev: ...@@ -26,3 +26,12 @@ build_rpm_dev:
paths: paths:
- "*.rpm" - "*.rpm"
expire_in: 1 week expire_in: 1 week
run_filetest:
stage: run
script:
- bash scripts/runFileTest.sh
stages:
- build
- run
#!/bin/sh
echo "building scdaq locally"
cd src
make all
cd -
echo "building scdaq locally"
cd test/data
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
echo "Starting scdaq test with CALO P5 capture file: check for crash"
timeout 100s src/scdaq --config test/config/scdaq-calo.conf | uniq
echo "test run finished"
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
# "dma" for XILINX DMA driver # "dma" for XILINX DMA driver
# "filedma" for reading from file and simulating DMA # "filedma" for reading from file and simulating DMA
# #
input:wzdma input:filedma
## Settings for DMA input ## Settings for DMA input
...@@ -31,7 +31,7 @@ NOrbitsPerDMAPacket:20 ...@@ -31,7 +31,7 @@ NOrbitsPerDMAPacket:20
## Extra settings for "filedma" input ## Extra settings for "filedma" input
#input_file:/dev/shm/testdata.bin #input_file:/dev/shm/testdata.bin
input_file:testdata.bin input_file:test/data/calo_testfile.dat
################################################################################ ################################################################################
...@@ -62,11 +62,11 @@ doZS:yes ...@@ -62,11 +62,11 @@ doZS:yes
output_filename_prefix:scout_CALO output_filename_prefix:scout_CALO
output_filename_base:/fff/BU0/ramdisk/scdaq output_filename_base:test/data
max_file_size:8589934592 max_file_size:8589934592
# Always write data to a file regardless of the run status, useful for debugging # Always write data to a file regardless of the run status, useful for debugging
output_force_write:no output_force_write:yes
################################################################################ ################################################################################
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
# "dma" for XILINX DMA driver # "dma" for XILINX DMA driver
# "filedma" for reading from file and simulating DMA # "filedma" for reading from file and simulating DMA
# #
input:wzdma input:filedma
## Settings for DMA input ## Settings for DMA input
...@@ -31,7 +31,7 @@ NOrbitsPerDMAPacket:20 ...@@ -31,7 +31,7 @@ NOrbitsPerDMAPacket:20
## Extra settings for "filedma" input ## Extra settings for "filedma" input
#input_file:/dev/shm/testdata.bin #input_file:/dev/shm/testdata.bin
input_file:testdata.bin input_file:test/data/gmt_testfile.dat
################################################################################ ################################################################################
## ##
...@@ -61,12 +61,13 @@ doZS:yes ...@@ -61,12 +61,13 @@ doZS:yes
output_filename_prefix:scout_GMT output_filename_prefix:scout_GMT
output_filename_base:test/data
#output_filename_base:/fff/BU0/ramdisk/scdaq #output_filename_base:/fff/BU0/ramdisk/scdaq
max_file_size:8589934592 max_file_size:8589934592
# Always write data to a file regardless of the run status, useful for debugging # Always write data to a file regardless of the run status, useful for debugging
output_force_write:no output_force_write:yes
################################################################################ ################################################################################
......
File added
File added
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