Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DD4hep
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cepc
externals
mirroring
DD4hep
Commits
661d5974
Commit
661d5974
authored
4 months ago
by
Andre Sailer
Browse files
Options
Downloads
Patches
Plain Diff
DDCad: two tests only if we have DDG4
parent
7cc5ef0d
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
examples/DDCAD/CMakeLists.txt
+23
-21
23 additions, 21 deletions
examples/DDCAD/CMakeLists.txt
with
23 additions
and
21 deletions
examples/DDCAD/CMakeLists.txt
+
23
−
21
View file @
661d5974
...
...
@@ -160,24 +160,26 @@ dd4hep_add_test_reg( DDCAD_Issue1134_overlap_check
REGEX_PASS
"Number of illegal overlaps/extrusions : 0"
REGEX_FAIL
"Exception;ERROR;FAILED"
)
#
# Overlap check of Armin Ilg's example
dd4hep_add_test_reg
(
DDCAD_Issue1134_g4overlap_check
COMMAND
"
${
CMAKE_INSTALL_PREFIX
}
/bin/run_test_DDCAD.sh"
EXEC_ARGS ddsim --compactFile
${
DDCADEx_INSTALL
}
/compact/DD4hep_Issue_1134.xml
--enableG4Gun --runType run
--macroFile
${
DDCADEx_INSTALL
}
/scripts/overlap.mac
REGEX_PASS
"Checking overlaps for volume AV_2.Shape_STL_0.0.tessellated_.* .G4TessellatedSolid. ... OK"
REGEX_FAIL
"EXCEPTION;ERROR;Error;FAILED"
)
#
# Geometry scan of Armin Ilg's example
dd4hep_add_test_reg
(
DDCAD_Issue1134_g4geometry_scan
COMMAND
"
${
CMAKE_INSTALL_PREFIX
}
/bin/run_test_DDCAD.sh"
EXEC_ARGS g4GeometryScan
--compact=file:
${
DDCADEx_INSTALL
}
/compact/DD4hep_Issue_1134.xml
--position=-35,-35,-300 --direction=7,7,60
REGEX_PASS
". -1.29, -1.29, -11.06. Path:./world/AV_2.Shape_STL_0.0.tessellated_.* Shape:G4TessellatedSolid Mat:Gold"
REGEX_FAIL
"EXCEPTION;ERROR;Error;FAILED"
)
#
if
(
TARGET DD4hep::DDG4
)
#
# Overlap check of Armin Ilg's example
dd4hep_add_test_reg
(
DDCAD_Issue1134_g4overlap_check
COMMAND
"
${
CMAKE_INSTALL_PREFIX
}
/bin/run_test_DDCAD.sh"
EXEC_ARGS ddsim --compactFile
${
DDCADEx_INSTALL
}
/compact/DD4hep_Issue_1134.xml
--enableG4Gun --runType run
--macroFile
${
DDCADEx_INSTALL
}
/scripts/overlap.mac
REGEX_PASS
"Checking overlaps for volume AV_2.Shape_STL_0.0.tessellated_.* .G4TessellatedSolid. ... OK"
REGEX_FAIL
"EXCEPTION;ERROR;Error;FAILED"
)
#
# Geometry scan of Armin Ilg's example
dd4hep_add_test_reg
(
DDCAD_Issue1134_g4geometry_scan
COMMAND
"
${
CMAKE_INSTALL_PREFIX
}
/bin/run_test_DDCAD.sh"
EXEC_ARGS g4GeometryScan
--compact=file:
${
DDCADEx_INSTALL
}
/compact/DD4hep_Issue_1134.xml
--position=-35,-35,-300 --direction=7,7,60
REGEX_PASS
". -1.29, -1.29, -11.06. Path:./world/AV_2.Shape_STL_0.0.tessellated_.* Shape:G4TessellatedSolid Mat:Gold"
REGEX_FAIL
"EXCEPTION;ERROR;Error;FAILED"
)
#
endif
()
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment