blob: ca3fed7d9d12a61740be54e552453ef6539ac206 [file] [log] [blame]
onqtam862a3bb2016-04-27 18:19:00 +03001//#define DOCTEST_CONFIG_DISABLE
hardlyb1e7e142014-08-06 00:43:51 +03002
onqtamcae73122016-04-29 14:57:23 +03003#include "doctest.h"
onqtam862a3bb2016-04-27 18:19:00 +03004#define DOCTEST_CONFIG_IMPLEMENT
hardlyb1e7e142014-08-06 00:43:51 +03005#include "doctest.h"
6
7#include <cstdio>
onqtamcae73122016-04-29 14:57:23 +03008#include <cstdlib>
hardlyb1e7e142014-08-06 00:43:51 +03009
10int main(int argc, char** argv) {
11 // initialize
12 doctest::Context context(argc, argv);
hardlyb1e7e142014-08-06 00:43:51 +030013
14 // overrides
15 context.setOption("dt-case-sensitive", true);
onqtam862a3bb2016-04-27 18:19:00 +030016 context.setOption("no-breaks", true);
onqtam0cea9bc2016-04-27 12:59:08 +030017 //context.setOption("dt-no-colors", true);
onqtam80d1f182016-04-27 19:08:51 +030018 context.addFilter("name", "zzz");
hardlyb1e7e142014-08-06 00:43:51 +030019
20 // run
onqtamb91b68e2016-05-04 20:16:19 +030021 int res = context.run();
22
23 if(context.shouldExit())
24 return res;
hardlyb1e7e142014-08-06 00:43:51 +030025
26#if defined(WITH_PAUSE)
27 system("pause");
onqtam8ccce3b2016-04-20 20:46:05 +030028#endif // WITH_PAUSE
hardlyb1e7e142014-08-06 00:43:51 +030029
30 return res;
31}