From 62d3a1907b0ab47bb46fefa07b94e4d0db3228f4 Mon Sep 17 00:00:00 2001
From: Felix Riehn <felix@matilda>
Date: Thu, 14 Oct 2021 19:45:04 +0100
Subject: [PATCH] separate test case for sibyll decay to avoid sibyll
 initialization

---
 tests/modules/testSibyll.cpp | 28 +++++++++++++++++++++++++++-
 1 file changed, 27 insertions(+), 1 deletion(-)

diff --git a/tests/modules/testSibyll.cpp b/tests/modules/testSibyll.cpp
index c5dca766f..140515382 100644
--- a/tests/modules/testSibyll.cpp
+++ b/tests/modules/testSibyll.cpp
@@ -100,7 +100,7 @@ auto sumMomentum(TStackView const& view, CoordinateSystemPtr const& vCS) {
   return sum;
 }
 
-TEST_CASE("SibyllInterface", "modules") {
+TEST_CASE("SibyllInteractionInterface", "modules") {
 
   logging::set_level(logging::level::info);
 
@@ -304,6 +304,32 @@ TEST_CASE("SibyllInterface", "modules") {
     // CHECK(view.getSize() == 20); // also sibyll not stable wrt. to compiler changes
     CHECK(view.getSize() == Approx(100).margin(90)); // this is not physics validation
   }
+}
+
+#include <corsika/framework/geometry/Point.hpp>
+#include <corsika/framework/geometry/RootCoordinateSystem.hpp>
+#include <corsika/framework/geometry/Vector.hpp>
+
+#include <corsika/framework/core/PhysicalUnits.hpp>
+
+#include <corsika/framework/core/ParticleProperties.hpp>
+
+#include <SetupTestEnvironment.hpp>
+#include <SetupTestStack.hpp>
+
+#include <corsika/media/Environment.hpp>
+#include <corsika/media/HomogeneousMedium.hpp>
+#include <corsika/media/NuclearComposition.hpp>
+#include <corsika/media/UniformMagneticField.hpp>
+
+TEST_CASE("SibyllDecayInterface", "modules") {
+  logging::set_level(logging::level::info);
+
+  auto [env, csPtr, nodePtr] = setup::testing::setup_environment(Code::Oxygen);
+  auto const& cs = *csPtr;
+  { [[maybe_unused]] auto const& env_dummy = env; }
+
+  RNGManager<>::getInstance().registerRandomStream("sibyll");
 
   SECTION("DecayInterface") {
 
-- 
GitLab