From b64aee03e90325a0e23006b86b5bb56204653a49 Mon Sep 17 00:00:00 2001 From: Whitney Armstrong <warmstrong@anl.gov> Date: Wed, 21 Jul 2021 01:50:02 +0000 Subject: [PATCH] Added detailed check of acts tracking geometry --- .gitlab-ci.yml | 2 +- bin/acts_geo_check | 24 ++++++++++++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100755 bin/acts_geo_check diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b8fdde94..122ef5a4 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -175,11 +175,11 @@ convert_to_gdml: tracking_geometry_debug: stage: test - allow_failure: true needs: - ["common:detector"] script: - root -b -q "scripts/test_ACTS.cxx+(\"${DETECTOR_PATH}/athena.xml\")" | tee geo/tracking_geometry_debug.out + - ./bin/acts_geo_check geo/tracking_geometry_debug.out detector:config_testing: stage: test diff --git a/bin/acts_geo_check b/bin/acts_geo_check new file mode 100755 index 00000000..4a18df66 --- /dev/null +++ b/bin/acts_geo_check @@ -0,0 +1,24 @@ +#!/bin/bash + +logfile=$1 + +# parse the verobse output of scripts/test_ACTS.cxx +res=0 + +nlines=$(grep -in error ${logfile} | grep -in D2A_ | wc -l) +if [[ "$nlines" > "0" ]] ; then + echo " ACTS geometry error: " + grep -in error ${logfile} | grep -in D2A_ + res="1" +fi + + +nlines=$(grep -in warn ${logfile} | grep -in D2A_ | wc -l) +if [[ "$nlines" > "0" ]] ; then + echo " ACTS geometry error: " + grep -in warn ${logfile} | grep -in D2A_ + res="1" +fi + +exit ${res} + -- GitLab