diff --git a/DDTest/CMakeLists.txt b/DDTest/CMakeLists.txt index bd3d7e2d2b5abc91e55d9bddf148c2a1c686f7b8..f46ed49e80bb0a24dad43bd8a760e1f533be26fd 100644 --- a/DDTest/CMakeLists.txt +++ b/DDTest/CMakeLists.txt @@ -15,8 +15,9 @@ add_library(DD4hep::DDTest ALIAS DDTest) dd4hep_use_python_executable() target_include_directories(DDTest INTERFACE include) +## test_example + foreach(TEST_NAME - test_example test_bitfield64 test_bitfieldcoder test_DetType diff --git a/DDTest/src/test_cellDimensions.cc b/DDTest/src/test_cellDimensions.cc index d678ed8f105cbb6c00a943c2558d46c0551437ea..8dd8d93dfd4c9ec864b16dcce0cd6a003a729231 100644 --- a/DDTest/src/test_cellDimensions.cc +++ b/DDTest/src/test_cellDimensions.cc @@ -13,10 +13,10 @@ #include <cmath> -static dd4hep::DDTest test( "CellDimensions" ) ; +int main() { + dd4hep::DDTest test( "CellDimensions" ) ; -int main() { try{ dd4hep::DDSegmentation::CartesianGridXY seg("system:8,barrel:3,layer:8,slice:5,x:16,y:16"); diff --git a/DDTest/src/test_segmentationHandles.cc b/DDTest/src/test_segmentationHandles.cc index 5c0427487184a07d44631f8f744b86b0a5152525..22ebf19f08c2dd4a2031043991ebd25c02f1543d 100644 --- a/DDTest/src/test_segmentationHandles.cc +++ b/DDTest/src/test_segmentationHandles.cc @@ -13,12 +13,14 @@ #include <cmath> -static dd4hep::DDTest test( "CellDimensions" ) ; using namespace dd4hep; using namespace dd4hep::detail; //using dd4hep::DDSegmentation::BitFieldCoder; int main() { + + dd4hep::DDTest test( "CellDimensions" ); + try{ BitFieldCoder bf("system:8,barrel:3,layer:8,slice:5,x:16,y:16"); Segmentation base("CartesianGridXY","Test",&bf);