Skip to content
Snippets Groups Projects
Select Git revision
  • debug_fsd
  • master default protected
  • debug_AT
  • standard_fsd_with_ncal
  • standard_fsd
  • debug_RP
  • radim
  • track_l
  • fsd_mr_atc
  • fsd_preproduction
  • geant_unique_id
  • fsd_mr_sim
  • tra_initCbmStack
  • fsd_dev
  • my_master
  • hadronana
  • mcbm_master
  • nightly_master
  • APR21
  • dev_2021_25
  • dev_2021_24
  • dev_2021_23
  • dev_2021_22
  • dev_2021_21
  • dev_2021_20
  • dev_2021_19
  • RC3_APR21
  • dev_2021_18
  • RC2_APR21
  • dev_2021_17
  • RC1_APR21
  • dev_2021_16
  • dev_2021_15
  • dev_2021_14
  • dev_2021_13
  • dev_2021_12
  • dev_2021_11
  • dev_2021_10
38 results

CTestCustom.cmake

Blame
  • Forked from Computing / cbmroot
    1000 commits behind, 13 commits ahead of the upstream repository.
    Florian Uhlig's avatar
    Administrator authored and Florian Uhlig committed
    When uploading logs from failed tests, these logs are currently truncated
    after 102400 bytes. For the long running weekly tests which produces much
    larger log files it happens that the important part of the log file isn't
    send to the CDash server.
    Increase the log file size to 10MB.
    e3c02e7a
    History
    CTestCustom.cmake 3.56 KiB
    # -*- mode: cmake -*-
    
    message(" -- Read CTestCustom.cmake --")
    
    # Maximum size of uploaded test output of failed tests is 100kB
    # or 10MB in case of weekly tests
    # Larger output is cutted
    if(${CBM_TEST_MODEL} MATCHES Weekly)
      set(CTEST_CUSTOM_MAXIMUM_FAILED_TEST_OUTPUT_SIZE "10240000")
    else()
      set(CTEST_CUSTOM_MAXIMUM_FAILED_TEST_OUTPUT_SIZE "102400")
    endif()
    
    # Maximum size of uploaded test output of passed tests is 1kB
    # Larger output is cutted
    set(CTEST_CUSTOM_MAXIMUM_PASSED_TEST_OUTPUT_SIZE "1024")
    
    # -----------------------------------------------------------
    # -- Number of warnings to display
    # -----------------------------------------------------------
    
    set(CTEST_CUSTOM_MAXIMUM_NUMBER_OF_WARNINGS "500" )
    
    # -----------------------------------------------------------
    # -- Number of errors to display
    # -----------------------------------------------------------
    
    set(CTEST_CUSTOM_MAXIMUM_NUMBER_OF_ERRORS   "50" )
    
    # -----------------------------------------------------------
    # -- Warning execptions
    # -----------------------------------------------------------
    
    Set(CTEST_CUSTOM_ERROR_EXCEPTION
        ${CTEST_CUSTOM_ERROR_EXCEPTION}
        "/include/boost"
        "/boost/include"
        "/include/root"
        "/root/include"
        "boost::"
    )
    
    set(CTEST_CUSTOM_WARNING_EXCEPTION
    	${CTEST_CUSTOM_WARNING_EXCEPTION}
    
            "Dict.cxx"
    
            # -- warnings from our external packages
            "external/flib_dpb"
            "external/ipc" 
            "maybe_unused"
            "include/AnalysisTree"
    
            # -- remove intended fall through warnings
            "[[fallthrough]]"
            "CbmMcbm2018UnpackerAlgoTof.cxx.*warning: attributes at the beginning of statement are ignored" 
            "CbmMcbm2018UnpackerAlgoTof.cxx.*warning: this statement may fall through"
            "CbmMcbm2018UnpackerAlgoTof.cxx.*note: here"
            "CbmDeviceUnpackTofMcbm2018.cxx.*warning: attributes at the beginning of statement are ignored"
            "CbmDeviceUnpackTofMcbm2018.cxx.*warning: this statement may fall through"
            "CbmDeviceUnpackTofMcbm2018.cxx.*note: here"
            "CbmMcbm2018TofPar.cxx.*warning: attributes at the beginning of statement are ignored"
            "CbmMcbm2018TofPar.cxx.*warning: this statement may fall through"
            "CbmMcbm2018TofPar.cxx.*note: here"
    
            # -- warnings from a feature we want and which is okay
            "CbmCheckEvents.cxx:86:52"
    
            # -- warnings about to long function for debugging
            "variable tracking size limit exceeded"
    
            # -- warnings from structures for HADAQ memory casting
            "struct hadaq::HadTu"
            "struct hadaq::HadTuId"
            "TrbBridgeTrbNetHeaders.hpp"
            "TrbBridgeTrbNetHeaders.cpp"
            
            # -- warnings from structures for MBS/LMD memory casting
            "struct mbs::Header"
    
            # -- warnings from macosx test machines
            "ld: warning: dylib.*was built for newer macOS version.*than being linked"
            ".*\\^.*"
            "warning.*generated."
    
            # -- don't show pragma message warnings
            "Compiling CBM Configuration"
    
            # -- filter warnings about unused attributes
            "attribute directive ignored"
      )
    
    # -----------------------------------------------------------
    # -- Warning addon's
    # -----------------------------------------------------------
    set(CTEST_CUSTOM_WARNING_MATCH	${CTEST_CUSTOM_WARNING_MATCH}
    	)
    
    
    Set (CTEST_CUSTOM_COVERAGE_EXCLUDE 
         ".*Dict.h"
         ".*Dict.cxx"
         ".*Fair.*"
         ".*GTest.*"
         ".*external/.*"
        )
    
    Set(CTEST_CUSTOM_ERROR_EXCEPTION
        ${CTEST_CUSTOM_ERROR_EXCEPTION}
        # -- warnings from my test machine demac006
        "warning: text-based stub file"
       )