Macros | Functions
catch_main.cc File Reference
#include "catch2/catch.hpp"
#include "cetlib/filepath_maker.h"
#include "fhiclcpp/ParameterSet.h"
#include "messagefacility/MessageLogger/MessageLogger.h"
#include <string>

Go to the source code of this file.

Macros

#define CATCH_CONFIG_RUNNER
 

Functions

int main (int argc, char **argv)
 

Macro Definition Documentation

#define CATCH_CONFIG_RUNNER

Definition at line 2 of file catch_main.cc.

Function Documentation

int main ( int  argc,
char **  argv 
)

Definition at line 15 of file catch_main.cc.

16 {
17  Catch::Session session;
18  std::string fhiclConfigFileName;
19  using namespace Catch::clara;
20  // Our non-option argument, being non-optional, should be first.
21  auto cli = Arg(fhiclConfigFileName, "config.fcl")("<fhicl-config-file>") |
22  session.cli();
23 
24  session.cli(cli);
25 
26  int result = session.applyCommandLine(argc, argv);
27  if (result == 0) {
28  mf::SetIteration("JobSetup"s);
30  auto const msg_ps = fhicl::ParameterSet::make(fhiclConfigFileName, fpm);
32  result = session.run();
33  }
34  return (result < 0xff ? result : 0xff);
35 }
void SetIteration(string const &val)
static QCString result
std::string string
Definition: nybbler.cc:12
static ParameterSet make(intermediate_table const &tbl)
Definition: ParameterSet.cc:68
def cli(ctx)
Definition: main.py:7
void StartMessageFacility(fhicl::ParameterSet const &pset, string const &applicationName)
def session(dburl="sqlite:///:memory:")
Definition: db.py:754
static QCString * s
Definition: config.cpp:1042