From ed98378a53a1157fd17ce0628f94beebed1ee263 Mon Sep 17 00:00:00 2001
From: Andre Sailer <andre.philippe.sailer@cern.ch>
Date: Mon, 2 Nov 2020 18:02:33 +0100
Subject: [PATCH] Examples: remove REQUIRES from add_test, option doesn't exist

---
 examples/ClientTests/CMakeLists.txt | 6 ------
 examples/Persistency/CMakeLists.txt | 1 -
 2 files changed, 7 deletions(-)

diff --git a/examples/ClientTests/CMakeLists.txt b/examples/ClientTests/CMakeLists.txt
index e29ac6328..f77c57512 100644
--- a/examples/ClientTests/CMakeLists.txt
+++ b/examples/ClientTests/CMakeLists.txt
@@ -356,7 +356,6 @@ if (DD4HEP_USE_GEANT4)
   dd4hep_add_test_reg( ClientTests_sim_MiniTel_prod_cuts
     COMMAND    "${CMAKE_INSTALL_PREFIX}/bin/run_test_ClientTests.sh"
     EXEC_ARGS  python ${ClientTestsEx_INSTALL}/scripts/MiniTelRegions.py batch
-    REQUIRES   DDG4 Geant4
     REGEX_PASS "minitel_region_1: Set cut  \\[gamma/0\\] = 5.000"
     REGEX_FAIL "Exception;EXCEPTION;ERROR;Error" )
   #
@@ -364,7 +363,6 @@ if (DD4HEP_USE_GEANT4)
   dd4hep_add_test_reg( ClientTests_sim_MiniTel_limitset
     COMMAND    "${CMAKE_INSTALL_PREFIX}/bin/run_test_ClientTests.sh"
     EXEC_ARGS  python ${ClientTestsEx_INSTALL}/scripts/MiniTelRegions.py batch
-    REQUIRES   DDG4 Geant4
     REGEX_PASS "LimitSet:    Particle type: mu-                PDG: 13     : 3.000000"
     REGEX_FAIL "Exception;EXCEPTION;ERROR;Error" )
   #
@@ -372,7 +370,6 @@ if (DD4HEP_USE_GEANT4)
   dd4hep_add_test_reg( ClientTests_sim_UserAnalysis
     COMMAND    "${CMAKE_INSTALL_PREFIX}/bin/run_test_ClientTests.sh"
     EXEC_ARGS  python ${ClientTestsEx_INSTALL}/scripts/MiniTelEnergyDeposits.py batch
-    REQUIRES   DDG4 Geant4
     REGEX_PASS "Entries :      200 "
     REGEX_FAIL "Exception;EXCEPTION;ERROR;Error" )
   #
@@ -380,7 +377,6 @@ if (DD4HEP_USE_GEANT4)
   dd4hep_add_test_reg( ClientTests_sim_TrackingRegion
     COMMAND    "${CMAKE_INSTALL_PREFIX}/bin/run_test_ClientTests.sh"
     EXEC_ARGS  python ${ClientTestsEx_INSTALL}/scripts/TrackingRegion.py batch
-    REQUIRES   DDG4 Geant4
     REGEX_PASS "Placement tracking_volume_1 not converted \\[Veto'ed for simulation\\]"
     REGEX_FAIL "Exception;EXCEPTION;ERROR;Error" )
   #
@@ -389,7 +385,6 @@ if (DD4HEP_USE_GEANT4)
     dd4hep_add_test_reg( ClientTests_sim_${script}
       COMMAND    "${CMAKE_INSTALL_PREFIX}/bin/run_test_ClientTests.sh"
       EXEC_ARGS  python ${ClientTestsEx_INSTALL}/scripts/${script}.py batch
-      REQUIRES   DDG4 Geant4
       REGEX_PASS NONE
       REGEX_FAIL "Exception;EXCEPTION;ERROR;Error" )
   endforeach(script)
@@ -400,7 +395,6 @@ if (DD4HEP_USE_GEANT4)
       COMMAND    "${CMAKE_INSTALL_PREFIX}/bin/run_test_ClientTests.sh"
       EXEC_ARGS  python ${ClientTestsEx_INSTALL}/scripts/MultiCollections.py 
                         -compact ${ClientTestsEx_INSTALL}/compact/${script}.xml -batch
-      REQUIRES   DDG4 Geant4
       REGEX_PASS NONE
       REGEX_FAIL "Exception;EXCEPTION;ERROR;Error" )
   endforeach(script)
diff --git a/examples/Persistency/CMakeLists.txt b/examples/Persistency/CMakeLists.txt
index 1c964ddcc..f7da2ca01 100644
--- a/examples/Persistency/CMakeLists.txt
+++ b/examples/Persistency/CMakeLists.txt
@@ -220,7 +220,6 @@ if (DD4HEP_USE_GEANT4)
   dd4hep_add_test_reg( Persist_CLICSiD_Geant4_LONGTEST
     COMMAND    "${CMAKE_INSTALL_PREFIX}/bin/run_test_Persistency.sh"
     EXEC_ARGS  python ${CMAKE_CURRENT_SOURCE_DIR}/../CLICSiD/scripts/CLICSiD_LoadROOTGeo.py  batch
-    REQUIRES   DDG4 Geant4
     DEPENDS    Persist_CLICSiD_Save_LONGTEST
     REGEX_PASS "\\+\\+\\+ Finished run 0 after 10 events \\(10 events in total\\)"
     REGEX_FAIL "Exception;EXCEPTION;ERROR"
-- 
GitLab