onqtam | 862a3bb | 2016-04-27 18:19:00 +0300 | [diff] [blame] | 1 | //#define DOCTEST_CONFIG_DISABLE |
hardly | b1e7e14 | 2014-08-06 00:43:51 +0300 | [diff] [blame] | 2 | |
onqtam | cae7312 | 2016-04-29 14:57:23 +0300 | [diff] [blame] | 3 | #include "doctest.h" |
onqtam | 862a3bb | 2016-04-27 18:19:00 +0300 | [diff] [blame] | 4 | #define DOCTEST_CONFIG_IMPLEMENT |
hardly | b1e7e14 | 2014-08-06 00:43:51 +0300 | [diff] [blame] | 5 | #include "doctest.h" |
6 | |||||
7 | #include <cstdio> | ||||
onqtam | cae7312 | 2016-04-29 14:57:23 +0300 | [diff] [blame] | 8 | #include <cstdlib> |
hardly | b1e7e14 | 2014-08-06 00:43:51 +0300 | [diff] [blame] | 9 | |
10 | int main(int argc, char** argv) { | ||||
11 | // initialize | ||||
12 | doctest::Context context(argc, argv); | ||||
hardly | b1e7e14 | 2014-08-06 00:43:51 +0300 | [diff] [blame] | 13 | |
14 | // overrides | ||||
15 | context.setOption("dt-case-sensitive", true); | ||||
onqtam | 862a3bb | 2016-04-27 18:19:00 +0300 | [diff] [blame] | 16 | context.setOption("no-breaks", true); |
onqtam | 0cea9bc | 2016-04-27 12:59:08 +0300 | [diff] [blame] | 17 | //context.setOption("dt-no-colors", true); |
onqtam | 80d1f18 | 2016-04-27 19:08:51 +0300 | [diff] [blame] | 18 | context.addFilter("name", "zzz"); |
hardly | b1e7e14 | 2014-08-06 00:43:51 +0300 | [diff] [blame] | 19 | |
20 | // run | ||||
onqtam | b91b68e | 2016-05-04 20:16:19 +0300 | [diff] [blame] | 21 | int res = context.run(); |
22 | |||||
23 | if(context.shouldExit()) | ||||
24 | return res; | ||||
hardly | b1e7e14 | 2014-08-06 00:43:51 +0300 | [diff] [blame] | 25 | |
26 | #if defined(WITH_PAUSE) | ||||
27 | system("pause"); | ||||
onqtam | 8ccce3b | 2016-04-20 20:46:05 +0300 | [diff] [blame] | 28 | #endif // WITH_PAUSE |
hardly | b1e7e14 | 2014-08-06 00:43:51 +0300 | [diff] [blame] | 29 | |
30 | return res; | ||||
31 | } |