LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
catch_main.cc
Go to the documentation of this file.
1 // vim: set sw=2 expandtab :
2 #include "catch2/catch_session.hpp"
3 
4 #include "cetlib/filepath_maker.h"
7 
8 #include <string>
9 
10 using namespace std;
11 using namespace std::string_literals;
12 
13 int
14 main(int argc, char** argv)
15 {
16  Catch::Session session;
17  std::string fhiclConfigFileName;
18  using namespace Catch::Clara;
19  // Our non-option argument, being non-optional, should be first.
20  auto cli = Arg(fhiclConfigFileName, "config.fcl")("<fhicl-config-file>") |
21  session.cli();
22 
23  session.cli(cli);
24 
25  int result = session.applyCommandLine(argc, argv);
26  if (result == 0) {
27  mf::SetIteration("JobSetup"s);
28  cet::filepath_maker fpm;
29  auto const msg_ps = fhicl::ParameterSet::make(fhiclConfigFileName, fpm);
31  result = session.run();
32  }
33  return (result < 0xff ? result : 0xff);
34 }
void SetIteration(string const &val)
static G4UIterminal * session
static ParameterSet make(intermediate_table const &tbl)
Definition: ParameterSet.cc:68
STL namespace.
void StartMessageFacility(fhicl::ParameterSet const &pset, string const &applicationName)
int main(int argc, char **argv)
Definition: catch_main.cc:14