From cf92df8465dccfd42cef96460fea3944eb067c2f Mon Sep 17 00:00:00 2001
From: Andre Sailer <andre.philippe.sailer@cern.ch>
Date: Fri, 13 Mar 2015 09:39:07 +0000
Subject: [PATCH] Undo the hack to run Tests in DD4hepInstall folder

---
 examples/ClientTests/CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/examples/ClientTests/CMakeLists.txt b/examples/ClientTests/CMakeLists.txt
index 075865cc3..c978e6475 100644
--- a/examples/ClientTests/CMakeLists.txt
+++ b/examples/ClientTests/CMakeLists.txt
@@ -96,7 +96,7 @@ foreach (file Assemblies BoxTrafos FCC_HcalBarrel IronCylinder LheD_tracker Magn
 
     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 $ENV{DD4hepINSTALL}/examples/ClientTests/compact/${file}.xml -output ${file}_out.${type} )
+      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" )
 
-- 
GitLab