Skip to content
Snippets Groups Projects
Commit 42b10a2e authored by Dr. Felix Tobias Schindler's avatar Dr. Felix Tobias Schindler
Browse files

[test.main] add THIS_IS_A_BUILDBOT_BUILD

If defined, all output is suppressed. This can also be used to disable
large tests.
parent 7cb6f34d
No related branches found
No related tags found
No related merge requests found
...@@ -5,6 +5,10 @@ ...@@ -5,6 +5,10 @@
#include "config.h" #include "config.h"
#ifndef THIS_IS_A_BUILDBOT_BUILD
#define THIS_IS_A_BUILDBOT_BUILD 0
#endif
#ifndef DUNE_STUFF_TEST_MAIN_CATCH_EXCEPTIONS #ifndef DUNE_STUFF_TEST_MAIN_CATCH_EXCEPTIONS
#define DUNE_STUFF_TEST_MAIN_CATCH_EXCEPTIONS 0 #define DUNE_STUFF_TEST_MAIN_CATCH_EXCEPTIONS 0
#endif #endif
...@@ -87,9 +91,9 @@ int main(int argc, char** argv) ...@@ -87,9 +91,9 @@ int main(int argc, char** argv)
#endif #endif
DSC::Logger().create( DSC::Logger().create(
#if DUNE_STUFF_TEST_MAIN_ENABLE_DEBUG_LOGGING #if DUNE_STUFF_TEST_MAIN_ENABLE_DEBUG_LOGGING && !THIS_IS_A_BUILDBOT_BUILD
DSC::LOG_CONSOLE | DSC::LOG_INFO | DSC::LOG_DEBUG | DSC::LOG_ERROR DSC::LOG_CONSOLE | DSC::LOG_INFO | DSC::LOG_DEBUG | DSC::LOG_ERROR
#elif DUNE_STUFF_TEST_MAIN_ENABLE_INFO_LOGGING #elif DUNE_STUFF_TEST_MAIN_ENABLE_INFO_LOGGING && !THIS_IS_A_BUILDBOT_BUILD
DSC::LOG_CONSOLE | DSC::LOG_INFO | DSC::LOG_ERROR DSC::LOG_CONSOLE | DSC::LOG_INFO | DSC::LOG_ERROR
#else #else
DSC::LOG_CONSOLE | DSC::LOG_ERROR DSC::LOG_CONSOLE | DSC::LOG_ERROR
...@@ -100,12 +104,12 @@ int main(int argc, char** argv) ...@@ -100,12 +104,12 @@ int main(int argc, char** argv)
""); "");
DSC::TimedLogger().create( DSC::TimedLogger().create(
#if DUNE_STUFF_TEST_MAIN_ENABLE_TIMED_LOGGING && DUNE_STUFF_TEST_MAIN_ENABLE_INFO_LOGGING #if DUNE_STUFF_TEST_MAIN_ENABLE_TIMED_LOGGING && DUNE_STUFF_TEST_MAIN_ENABLE_INFO_LOGGING && !THIS_IS_A_BUILDBOT_BUILD
std::numeric_limits<ssize_t>::max(), std::numeric_limits<ssize_t>::max(),
#else #else
-1, -1,
#endif #endif
#if DUNE_STUFF_TEST_MAIN_ENABLE_TIMED_LOGGING && DUNE_STUFF_TEST_MAIN_ENABLE_DEBUG_LOGGING #if DUNE_STUFF_TEST_MAIN_ENABLE_TIMED_LOGGING && DUNE_STUFF_TEST_MAIN_ENABLE_DEBUG_LOGGING && !THIS_IS_A_BUILDBOT_BUILD
std::numeric_limits<ssize_t>::max() std::numeric_limits<ssize_t>::max()
#else #else
-1 -1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment