Skip to content
Snippets Groups Projects

WIP: [Futurev4] Port DDG4-related tests from Detector

Open Michal Mazurek requested to merge mimazure-follow-725 into Futurev4
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE extension PUBLIC '-//QM/2.3/Extension//EN' 'http://www.codesourcery.com/qm/dtds/2.3/-//qm/2.3/extension//en.dtd'>
<!--
(c) Copyright 2021 CERN for the benefit of the LHCb Collaboration
This software is distributed under the terms of the GNU General Public
Licence version 3 (GPL Version 3), copied verbatim in the file "COPYING".
In applying this licence, CERN does not waive the privileges and immunities
granted to it by virtue of its status as an Intergovernmental Organization
or submit itself to any jurisdiction.
-->
<!--
Analyse the ROOT output of a DDG4 script.
-->
<extension class="GaudiTest.GaudiExeTest" kind="test">
<argument name="prerequisites"><set>
<tuple><text>ddg4_vp</text><enumeral>PASS</enumeral></tuple>
</set></argument>
<argument name="program"><text>root</text></argument>
<argument name="args"><set>
<text>-b</text>
<text>-q</text>
<text>$DETECTOR_PROJECT_ROOT/examples/VP_ana_ddg4.C("ddg4_vp.root", "ddg4_vp_histos.root")</text>
</set></argument>
<argument name="use_temp_dir"><enumeral>true</enumeral></argument>
<argument name="validator"><text>
import subprocess
try:
output = subprocess.check_output(["rootls", "-t", "ddg4_vp_histos.root:*"], text=True)
except subprocess.CalledProcessError:
causes.append("failed to list histogram output file")
result["output.summary"] = result.Quote(output)
if not (len(output.splitlines()) >= 50):
causes.append('output.summary is too short')
</text></argument>
</extension>
Loading