61 po::options_description desc_options(
"Allowed options");
83 std::cout << desc_options << std::endl;
90 size_t tests_count = 0;
91 std::vector<std::string> failed_tests;
93 bool list_tests =
false;
260 MLOG(level,
"\nREPORT:");
261 MLOG(level,
" Test run: " << tests_count);
262 MLOG(level,
" Failures: " << failed_tests.size());
264 if (!failed_tests.empty())
266 MLOG(level,
"FAILED TESTS:");
267 BOOST_FOREACH(
auto test_name, failed_tests)
269 MLOG(level,
" " << test_name);
279 MERROR(
"Wrong arguments");
283 return failed_tests.empty() ? 0 : 1;
#define PLAY(filename, genclass)
#define GENERATE_AND_PLAY(genclass)
#define GENERATE(filename, genclass)
Information representing errors in application but application will keep running. ...
std::string mlog_get_default_log_path(const char *default_filename)
void mlog_configure(const std::string &filename_base, bool console, const std::size_t max_log_file_size=MAX_LOG_FILE_SIZE, const std::size_t max_log_files=MAX_LOG_FILES)
const arg_descriptor< bool > arg_help
Level
Represents enumeration for severity level used to determine level of logging.
bool handle_error_helper(const boost::program_options::options_description &desc, F parser)
#define CALL_TEST(test_name, function)
void add_arg(boost::program_options::options_description &description, const arg_descriptor< T, required, dependent, NUM_DEPS > &arg, bool unique=true)
Mainly useful to represent current progress of application.
T get_arg(const boost::program_options::variables_map &vm, const arg_descriptor< T, false, true > &arg)
boost::program_options::basic_parsed_options< charT > parse_command_line(int argc, const charT *const argv[], const boost::program_options::options_description &desc, bool allow_unregistered=false)
#define CATCH_ENTRY_L0(lacation, return_val)
void mlog_set_log_level(int level)