Functions
nutools/test/RandomUtils/Providers/CMakeLists.txt File Reference

Functions

 cet_test (SeedMaster_test NO_AUTO LIBRARIES art_Utilities canvas ${MF_MESSAGELOGGER}${MF_UTILITIES}${FHICLCPP}cetlib cetlib_except) set(SuccessfulSeedMasterTests LinearMap01 LinearMapDepr01 LinearMapErr01 PredefinedOfs01 PredefinedOfs02 PredefinedOfsErr01 PredefinedOfsErr02 PredefinedOfsErr04 PredefinedOfsErr05 PredefinedSeed01 PredefinedSeed02 PredefinedSeed03 PredefinedSeed04 PredefinedSeedErr01 PredefinedSeedErr02 PredefinedSeedErr03 Random01 Random02) foreach(SeedMasterTestName $
 
 cet_test (SeedMaster_test ${SeedMasterTestName}HANDBUILT TEST_EXEC SeedMaster_test TEST_ARGS test ${SeedMasterTestName}.fcl"services.NuRandomService"DATAFILES test ${SeedMasterTestName}.fcl messageService.fcl standardMessageDestinations.fcl) endforeach(SeedMasterTestName) set(FailingSeedMasterTests InvalidPolicy PredefinedOfsErr03) foreach(SeedMasterTestName $
 

Function Documentation

cet_test ( SeedMaster_test NO_AUTO LIBRARIES art_Utilities canvas ${MF_MESSAGELOGGER}${MF_UTILITIES}${FHICLCPP}cetlib  cetlib_except)

Definition at line 2 of file CMakeLists.txt.

7  {MF_MESSAGELOGGER}
8  ${MF_UTILITIES}
9  ${FHICLCPP}
10  cetlib
11  cetlib_except
12 )
13 
14 
15 #
16 # Some tests are going to fail at configuration phase. Those are "failing".
17 # Some other tests will have failures when getting a seed:
18 # the errors are expected and those tests are considered successful.
19 # Some more are art-specific and don't test anything in SeedMaster.
20 #
21 
22 
23 # This first batch of tests is for SeedMaster (no art involved, full unit test).
24 # skipped tests: perEvent01, perEventErr01 (require an event loop)
25 set( SuccessfulSeedMasterTests
26  LinearMap01
27  LinearMapDepr01
28  LinearMapErr01
29  PredefinedOfs01
30  PredefinedOfs02
31  PredefinedOfsErr01
32  PredefinedOfsErr02
33  PredefinedOfsErr04
34  PredefinedOfsErr05
35  PredefinedSeed01
36  PredefinedSeed02
37  PredefinedSeed03
38  PredefinedSeed04
39  PredefinedSeedErr01
40  PredefinedSeedErr02
41  PredefinedSeedErr03
42  Random01
43  Random02
44  )
45 foreach( SeedMasterTestName ${SuccessfulSeedMasterTests} )
these are all by getting the vString this is set to true if debugModules is non empty everyDebugEnabled_ is a global scope variable instantiated as false in MessageLogger cc In the ctor of this is set to true if nay one of debugModules is *debugEnabledModules_ contains the specified debugModules If debugEnabled is set to then the effect of LogDebug used during that module is to immediately return A subtlety arose concerning the MessageDrop in circumstances where the framework s event processing structure were not in play In if preModule were never then debugEnabled would remain whatever value it had on construction of the MessageDrop the value was left uninitialized Now it is initialized to true in the ctor for we change debugEnabled MessageDrop s debugEnabled to false Configuring Destinations The each destination has its own tables of what to do about each category and but we get various overall defaults fromm the cfg file as well The limit instructions at the MessageLogger level takes on forms in order of priority of these are
const char expected[]
Definition: Exception_t.cc:22
Design of validation for the cfg PSet for the MessageService The following errors in configuring the message service should be detected and reported rather than proceeding with a because the mysterious behavior they cause is too tough to track down by only the following PSets are as listed in the vstring destinations A as listed in the vstring categories or messageIDs One of the following which are valid as PSets at the main level default not a category PSet for the default At the main only the following vstrings are duplicate names In the statistics duplicate names In the fwkJobReports duplicate names In the categories duplicate names or names matching one of the destinations or statistics or fwkJobReports or a keyword Any destination or category is used as anything other than a PSet debugModules vstring suppressInfo vstring suppressDebug vstring suppressWarning vstring The following are errors
const HLTPathStatus fail
const double a
std::vector< std::string > const tests
Definition: regex_t.cc:57
cet_test ( SeedMaster_test ${SeedMasterTestName}HANDBUILT TEST_EXEC SeedMaster_test TEST_ARGS test ${SeedMasterTestName}.fcl"services.NuRandomService"DATAFILES test ${SeedMasterTestName}.fcl messageService.fcl standardMessageDestinations.  fcl)

Definition at line 46 of file CMakeLists.txt.

46  {SeedMasterTestName} HANDBUILT
47  TEST_EXEC SeedMaster_test
48  TEST_ARGS test${SeedMasterTestName}.fcl "services.NuRandomService"
49  DATAFILES test${SeedMasterTestName}.fcl messageService.fcl standardMessageDestinations.fcl
50  )
51 endforeach( SeedMasterTestName )
52 
53 set( FailingSeedMasterTests
54  InvalidPolicy
55  PredefinedOfsErr03
56  )
57 foreach( SeedMasterTestName ${FailingSeedMasterTests} )
endforeach() cet_test(Stage1_EventGeneration_w HANDBUILT TEST_EXEC art PARG_THREADS--threads $
Definition: CMakeLists.txt:115