PURIFY
Next-generation radio interferometric imaging
Macros | Functions
common_catch_main.cc File Reference
#include "purify/config.h"
#include <sopt/config.h>
#include <memory>
#include <random>
#include <catch2/catch_all.hpp>
#include "purify/logging.h"
#include <sopt/logging.h>
+ Include dependency graph for common_catch_main.cc:

Go to the source code of this file.

Macros

#define CATCH_CONFIG_RUNNER
 

Functions

std::unique_ptr< std::mt19937_64 > mersenne (new std::mt19937_64(0))
 
int main (int argc, char **argv)
 

Macro Definition Documentation

◆ CATCH_CONFIG_RUNNER

#define CATCH_CONFIG_RUNNER

Definition at line 1 of file common_catch_main.cc.

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 13 of file common_catch_main.cc.

13  {
14  Catch::Session session; // There must be exactly once instance
15 
16  int returnCode = session.applyCommandLine(argc, const_cast<char **>(argv));
17  if (returnCode != 0) // Indicates a command line error
18  return returnCode;
19  mersenne.reset(new std::mt19937_64(session.configData().rngSeed));
20 
21  return session.run();
22 }
std::unique_ptr< std::mt19937_64 > mersenne(new std::mt19937_64(0))

References mersenne().

◆ mersenne()

std::unique_ptr<std::mt19937_64> mersenne ( new   std::mt19937_640)

Referenced by main(), and TEST_CASE().