From a24d3f0b65e588b7e678af0c95cec0d49478c054 Mon Sep 17 00:00:00 2001
From: Scott Snyder <scott.snyder@cern.ch>
Date: Thu, 26 May 2016 19:47:37 +0200
Subject: [PATCH] 'Get tests working in cmake build.'
 (eflowAthenaPool-00-00-12)

	* Tagging eflowAthenaPool-00-00-12.
	* CMakeLists.txt: Get tests working in cmake build.


Former-commit-id: c0b9d301ee0fb6fd415ca004d9320bd7ac0de268
---
 Reconstruction/eflowAthenaPool/CMakeLists.txt   | 13 +++++++++++++
 Reconstruction/eflowAthenaPool/cmt/requirements |  1 -
 2 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/Reconstruction/eflowAthenaPool/CMakeLists.txt b/Reconstruction/eflowAthenaPool/CMakeLists.txt
index 2a233317dad..c1c0eb6f5dc 100644
--- a/Reconstruction/eflowAthenaPool/CMakeLists.txt
+++ b/Reconstruction/eflowAthenaPool/CMakeLists.txt
@@ -24,3 +24,16 @@ atlas_add_poolcnv_library( eflowAthenaPoolPoolCnv
 # Install files from the package:
 atlas_install_joboptions( share/*.py )
 
+# Set up (a) test(s) for the converter(s):
+if( IS_DIRECTORY ${CMAKE_SOURCE_DIR}/Database/AthenaPOOL/AthenaPoolUtilities )
+   set( AthenaPoolUtilitiesTest_DIR
+      ${CMAKE_SOURCE_DIR}/Database/AthenaPOOL/AthenaPoolUtilities/cmake )
+endif()
+find_package( AthenaPoolUtilitiesTest )
+
+if( ATHENAPOOLUTILITIESTEST_FOUND )
+  run_tpcnv_test( eflowEventTPCnv_17.5.0   AOD-17.5.0-full )
+  run_tpcnv_test( eflowEventTPCnv_18.0.0   AOD-18.0.0-full )
+else()
+   message( WARNING "Couldn't find AthenaPoolUtilitiesTest. No test(s) set up." )
+endif()   
diff --git a/Reconstruction/eflowAthenaPool/cmt/requirements b/Reconstruction/eflowAthenaPool/cmt/requirements
index bea96361ace..40e2d6dad34 100644
--- a/Reconstruction/eflowAthenaPool/cmt/requirements
+++ b/Reconstruction/eflowAthenaPool/cmt/requirements
@@ -35,4 +35,3 @@ apply_pattern athenarun_test \
    options="eflowAthenaPool/eflowEventTPCnv_18.0.0_test.py" \
    pre_script="${ATHENAPOOLUTILITIESROOT}/share/pre_tpcnvtest.sh eflowEventTPCnv_18.0.0" \
    post_script="${ATHENAPOOLUTILITIESROOT}/share/post_tpcnvtest.sh eflowEventTPCnv_18.0.0"
-
-- 
GitLab