From 5938e884123e4952e5cdddb6b26f00535c194bb4 Mon Sep 17 00:00:00 2001 From: Andre Sailer <andre.philippe.sailer@cern.ch> Date: Wed, 25 Feb 2015 15:26:52 +0000 Subject: [PATCH] Turn Markus's ClientTests into overly simple CMake Tests Loop over the xml files and just run converter with different types, based on the tests from examples/SimpleDetector --- examples/ClientTests/CMakeLists.txt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/examples/ClientTests/CMakeLists.txt b/examples/ClientTests/CMakeLists.txt index 46f37fcf1..d0a3cbfc9 100644 --- a/examples/ClientTests/CMakeLists.txt +++ b/examples/ClientTests/CMakeLists.txt @@ -88,3 +88,18 @@ install(DIRECTORY scripts # to do: add corresponding uninstall... #------------------------------------------------------- + + +foreach (file Assemblies BoxTrafos FCC_HcalBarrel IronCylinder LheD_tracker MagnetFields MaterialTester MiniTel SectorBarrelCalorimeter SiliconBlock ) + + foreach( type lcdd gdml vis ) + + SET( test_name "${PackageName}_converter_simple_${type}_${file}" ) + ADD_TEST( t_${test_name} "${CMAKE_INSTALL_PREFIX}/bin/run_test_${PackageName}.sh" + geoConverter -compact2${type} -input ${CMAKE_CURRENT_SOURCE_DIR}/compact/${file}.xml -output ${file}_out.${type} ) + #----- here we simply require that at least 1 volume have been converted + SET_TESTS_PROPERTIES( t_${test_name} PROPERTIES PASS_REGULAR_EXPRESSION " Handled [1-9][0-9]* volumes" ) + + endforeach(type) + +endforeach() -- GitLab