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 | cf9812f | 2016-04-19 23:54:34 +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> | ||||
hardly | b1e7e14 | 2014-08-06 00:43:51 +0300 | [diff] [blame] | 8 | |
9 | int main(int argc, char** argv) { | ||||
10 | // initialize | ||||
11 | doctest::Context context(argc, argv); | ||||
hardly | b1e7e14 | 2014-08-06 00:43:51 +0300 | [diff] [blame] | 12 | |
13 | // overrides | ||||
14 | context.setOption("dt-case-sensitive", true); | ||||
onqtam | 862a3bb | 2016-04-27 18:19:00 +0300 | [diff] [blame] | 15 | context.setOption("no-breaks", true); |
onqtam | 0cea9bc | 2016-04-27 12:59:08 +0300 | [diff] [blame] | 16 | //context.setOption("dt-no-colors", true); |
onqtam | 80d1f18 | 2016-04-27 19:08:51 +0300 | [diff] [blame^] | 17 | context.addFilter("name", "zzz"); |
hardly | b1e7e14 | 2014-08-06 00:43:51 +0300 | [diff] [blame] | 18 | |
19 | // run | ||||
20 | int res = context.runTests(); | ||||
21 | |||||
22 | #if defined(WITH_PAUSE) | ||||
23 | system("pause"); | ||||
onqtam | 8ccce3b | 2016-04-20 20:46:05 +0300 | [diff] [blame] | 24 | #endif // WITH_PAUSE |
hardly | b1e7e14 | 2014-08-06 00:43:51 +0300 | [diff] [blame] | 25 | |
26 | return res; | ||||
27 | } |