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
66f894d2
Commit
66f894d2
authored
11 years ago
by
Frank Gaede
Browse files
Options
Downloads
Patches
Plain Diff
- added converter tests for CLICSid example
(renamed ILD converter tests)
parent
34c7f775
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
examples/CLICSiD/CMakeLists.txt
+39
-0
39 additions, 0 deletions
examples/CLICSiD/CMakeLists.txt
examples/ILDExDet/CMakeLists.txt
+7
-7
7 additions, 7 deletions
examples/ILDExDet/CMakeLists.txt
with
46 additions
and
7 deletions
examples/CLICSiD/CMakeLists.txt
+
39
−
0
View file @
66f894d2
...
@@ -77,6 +77,16 @@ else()
...
@@ -77,6 +77,16 @@ else()
dd4hep_generate_rootmap
(
${
PackageName
}
)
dd4hep_generate_rootmap
(
${
PackageName
}
)
endif
()
endif
()
#---Testing-------------------------------------------------------------------------
if
(
BUILD_TESTING
)
include
(
CTest
)
enable_testing
()
endif
(
BUILD_TESTING
)
configure_file
(
${
DD4hep_ROOT
}
/cmake/run_test_package.sh run_test_
${
PackageName
}
.sh @ONLY
)
INSTALL
(
PROGRAMS
${
CMAKE_CURRENT_BINARY_DIR
}
/run_test_
${
PackageName
}
.sh
DESTINATION bin
)
#---- configure run environment ---------------
#---- configure run environment ---------------
configure_file
(
${
DD4hep_ROOT
}
/cmake/thisdd4hep_package.sh.in this
${
PackageName
}
.sh @ONLY
)
configure_file
(
${
DD4hep_ROOT
}
/cmake/thisdd4hep_package.sh.in this
${
PackageName
}
.sh @ONLY
)
...
@@ -94,3 +104,32 @@ install(TARGETS ${PackageName}
...
@@ -94,3 +104,32 @@ install(TARGETS ${PackageName}
)
)
# to do: add corresponding uninstall...
# to do: add corresponding uninstall...
#-------------------------------------------------------
#-------------------------------------------------------
####################################
#
# Add Tests foir CLICSid here
#
####################################
SET
(
test_name
"test_converter_clic_lcdd"
)
ADD_TEST
(
t_
${
test_name
}
"
${
CMAKE_INSTALL_PREFIX
}
/bin/run_test_
${
PackageName
}
.sh"
geoConverter -compact2lcdd -input
${
CMAKE_CURRENT_SOURCE_DIR
}
/compact/compact.xml -output ILDExDet.lcdd
)
#----- here we simply require that at least 100 volumes have been converted
SET_TESTS_PROPERTIES
(
t_
${
test_name
}
PROPERTIES PASS_REGULAR_EXPRESSION
" Handled [1-9][0-9][0-9]+ volumes"
)
SET
(
test_name
"test_converter_clic_gdml"
)
ADD_TEST
(
t_
${
test_name
}
"
${
CMAKE_INSTALL_PREFIX
}
/bin/run_test_
${
PackageName
}
.sh"
geoConverter -compact2gdml -input
${
CMAKE_CURRENT_SOURCE_DIR
}
/compact/compact.xml -output ILDExDet.gdml
)
#----- here we simply require that at least 100 volumes have been converted
SET_TESTS_PROPERTIES
(
t_
${
test_name
}
PROPERTIES PASS_REGULAR_EXPRESSION
" Handled [1-9][0-9][0-9]+ volumes"
)
SET
(
test_name
"test_converter_clic_vis"
)
ADD_TEST
(
t_
${
test_name
}
"
${
CMAKE_INSTALL_PREFIX
}
/bin/run_test_
${
PackageName
}
.sh"
geoConverter -compact2vis -input
${
CMAKE_CURRENT_SOURCE_DIR
}
/compact/compact.xml -output ILDExDet.vis
)
#----- here we simply require that at least 100 volumes have been converted
SET_TESTS_PROPERTIES
(
t_
${
test_name
}
PROPERTIES PASS_REGULAR_EXPRESSION
" Handled [1-9][0-9][0-9]+ volumes"
)
# no explicit failed condition
#SET_TESTS_PROPERTIES( t_${test_name} PROPERTIES FAIL_REGULAR_EXPRESSION "TEST_FAILED" )
This diff is collapsed.
Click to expand it.
examples/ILDExDet/CMakeLists.txt
+
7
−
7
View file @
66f894d2
...
@@ -133,28 +133,28 @@ install(TARGETS ${PackageName}
...
@@ -133,28 +133,28 @@ install(TARGETS ${PackageName}
#
#
####################################
####################################
SET
(
test_name
"test_converter_lcdd"
)
SET
(
test_name
"test_converter_
ild_
lcdd"
)
ADD_TEST
(
t_
${
test_name
}
"
${
CMAKE_INSTALL_PREFIX
}
/bin/run_test_
${
PackageName
}
.sh"
ADD_TEST
(
t_
${
test_name
}
"
${
CMAKE_INSTALL_PREFIX
}
/bin/run_test_
${
PackageName
}
.sh"
geoConverter -compact2lcdd -input
${
CMAKE_SOURCE_DIR
}
/
ILDExDet/
compact/ILDEx.xml -output ILDExDet.lcdd
)
geoConverter -compact2lcdd -input
${
CMAKE_
CURRENT_
SOURCE_DIR
}
/compact/ILDEx.xml -output ILDExDet.lcdd
)
#----- here we simply require that at least 100 volumes have been converted
#----- here we simply require that at least 100 volumes have been converted
SET_TESTS_PROPERTIES
(
t_
${
test_name
}
PROPERTIES PASS_REGULAR_EXPRESSION
" Handled [1-9][0-9][0-9]+ volumes"
)
SET_TESTS_PROPERTIES
(
t_
${
test_name
}
PROPERTIES PASS_REGULAR_EXPRESSION
" Handled [1-9][0-9][0-9]+ volumes"
)
SET
(
test_name
"test_converter_gdml"
)
SET
(
test_name
"test_converter_
ild_
gdml"
)
ADD_TEST
(
t_
${
test_name
}
"
${
CMAKE_INSTALL_PREFIX
}
/bin/run_test_
${
PackageName
}
.sh"
ADD_TEST
(
t_
${
test_name
}
"
${
CMAKE_INSTALL_PREFIX
}
/bin/run_test_
${
PackageName
}
.sh"
geoConverter -compact2gdml -input
${
CMAKE_SOURCE_DIR
}
/
ILDExDet/
compact/ILDEx.xml -output ILDExDet.gdml
)
geoConverter -compact2gdml -input
${
CMAKE_
CURRENT_
SOURCE_DIR
}
/compact/ILDEx.xml -output ILDExDet.gdml
)
#----- here we simply require that at least 100 volumes have been converted
#----- here we simply require that at least 100 volumes have been converted
SET_TESTS_PROPERTIES
(
t_
${
test_name
}
PROPERTIES PASS_REGULAR_EXPRESSION
" Handled [1-9][0-9][0-9]+ volumes"
)
SET_TESTS_PROPERTIES
(
t_
${
test_name
}
PROPERTIES PASS_REGULAR_EXPRESSION
" Handled [1-9][0-9][0-9]+ volumes"
)
SET
(
test_name
"test_converter_vis"
)
SET
(
test_name
"test_converter_
ild_
vis"
)
ADD_TEST
(
t_
${
test_name
}
"
${
CMAKE_INSTALL_PREFIX
}
/bin/run_test_
${
PackageName
}
.sh"
ADD_TEST
(
t_
${
test_name
}
"
${
CMAKE_INSTALL_PREFIX
}
/bin/run_test_
${
PackageName
}
.sh"
geoConverter -compact2vis -input
${
CMAKE_SOURCE_DIR
}
/
ILDExDet/
compact/ILDEx.xml -output ILDExDet.vis
)
geoConverter -compact2vis -input
${
CMAKE_
CURRENT_
SOURCE_DIR
}
/compact/ILDEx.xml -output ILDExDet.vis
)
#----- here we simply require that at least 100 volumes have been converted
#----- here we simply require that at least 100 volumes have been converted
SET_TESTS_PROPERTIES
(
t_
${
test_name
}
PROPERTIES PASS_REGULAR_EXPRESSION
" Handled [1-9][0-9][0-9]+ volumes"
)
SET_TESTS_PROPERTIES
(
t_
${
test_name
}
PROPERTIES PASS_REGULAR_EXPRESSION
" Handled [1-9][0-9][0-9]+ volumes"
)
#SET( test_name "test_converter_pandora" )
#SET( test_name "test_converter_pandora" )
#ADD_TEST( t_${test_name} "${CMAKE_INSTALL_PREFIX}/bin/run_test_${PackageName}.sh"
#ADD_TEST( t_${test_name} "${CMAKE_INSTALL_PREFIX}/bin/run_test_${PackageName}.sh"
# geoConverter -compact2pandora -input ${CMAKE_SOURCE_DIR}/
ILDExDet/
compact/ILDEx.xml -output ILDExDet.pandora )
# geoConverter -compact2pandora -input ${CMAKE_
CURRENT_
SOURCE_DIR}/compact/ILDEx.xml -output ILDExDet.pandora )
##----- here we simply require that at least 100 volumes have been converted
##----- here we simply require that at least 100 volumes have been converted
#SET_TESTS_PROPERTIES( t_${test_name} PROPERTIES PASS_REGULAR_EXPRESSION " Handled [1-9][0-9][0-9]+ volumes" )
#SET_TESTS_PROPERTIES( t_${test_name} PROPERTIES PASS_REGULAR_EXPRESSION " Handled [1-9][0-9][0-9]+ volumes" )
...
...
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