From f5141f9099b2d6560079d8e7634ea7c63a7235f5 Mon Sep 17 00:00:00 2001
From: Markus Frank <Markus.Frank@cern.ch>
Date: Tue, 28 Feb 2023 17:09:04 +0100
Subject: [PATCH] Test inclusion of files for plugins

---
 examples/ClientTests/CMakeLists.txt             | 17 +++++++++++++++++
 examples/ClientTests/compact/IncludePlugins.xml |  1 +
 2 files changed, 18 insertions(+)

diff --git a/examples/ClientTests/CMakeLists.txt b/examples/ClientTests/CMakeLists.txt
index 31e9120dc..925b5065c 100644
--- a/examples/ClientTests/CMakeLists.txt
+++ b/examples/ClientTests/CMakeLists.txt
@@ -386,6 +386,23 @@ dd4hep_add_test_reg( MiniTel_check_checksum_full
   REGEX_FAIL "Exception;EXCEPTION;ERROR"
 )
 #
+# Test the sequential processing of two xml files
+dd4hep_add_test_reg( include_plugins_command_line
+  COMMAND    "${CMAKE_INSTALL_PREFIX}/bin/run_test_ClientTests.sh"
+  EXEC_ARGS  geoPluginRun -input ${ClientTestsEx_INSTALL}/compact/MiniTel.xml 
+       	     		  -input ${ClientTestsEx_INSTALL}/compact/ExamplePlugins.xml
+  REGEX_PASS "Tested 5 numeric constants for expression evaluation"
+  REGEX_FAIL "Exception;EXCEPTION;ERROR"
+)
+#
+# Test the sequential processing of two xml files
+dd4hep_add_test_reg( include_plugins_command_xml
+  COMMAND    "${CMAKE_INSTALL_PREFIX}/bin/run_test_ClientTests.sh"
+  EXEC_ARGS  geoPluginRun -input ${ClientTestsEx_INSTALL}/compact/IncludePlugins.xml 
+  REGEX_PASS "Tested 5 numeric constants for expression evaluation"
+  REGEX_FAIL "Exception;EXCEPTION;ERROR"
+)
+#
 #      EXEC_ARGS  test_with_root.sh ${script}
 #
 if (DD4HEP_USE_GEANT4)
diff --git a/examples/ClientTests/compact/IncludePlugins.xml b/examples/ClientTests/compact/IncludePlugins.xml
index 408e04588..b527abfb0 100644
--- a/examples/ClientTests/compact/IncludePlugins.xml
+++ b/examples/ClientTests/compact/IncludePlugins.xml
@@ -43,4 +43,5 @@
      <include ref="${DD4hepExamplesINSTALL}/examples/ClientTests/compact/ExamplePlugins.xml"/>
   </plugins>
 
+
 </lccdd>
-- 
GitLab