Line data Source code
1 : /*
2 : * File:
3 : * tests/main.cpp
4 : *
5 : * License:
6 : * Copyright (c) 2006-2019 Made to Order Software Corp. All Rights Reserved
7 : *
8 : * https://snapwebsites.org/
9 : * contact@m2osw.com
10 : *
11 : * This program is free software; you can redistribute it and/or modify
12 : * it under the terms of the GNU General Public License as published by
13 : * the Free Software Foundation; either version 2 of the License, or
14 : * (at your option) any later version.
15 : *
16 : * This program is distributed in the hope that it will be useful,
17 : * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 : * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 : * GNU General Public License for more details.
20 : *
21 : * You should have received a copy of the GNU General Public License along
22 : * with this program; if not, write to the Free Software Foundation, Inc.,
23 : * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
24 : *
25 : * Authors:
26 : * Alexis Wilke alexis@m2osw.com
27 : */
28 :
29 : // Tell catch we want it to add the runner code in this file.
30 : #define CATCH_CONFIG_RUNNER
31 :
32 : // self
33 : //
34 : #include "main.h"
35 :
36 : // libutf8 lib
37 : //
38 : #include "libutf8/libutf8.h"
39 : #include "libutf8/version.h"
40 :
41 : // libexcept lib
42 : //
43 : #include "libexcept/exception.h"
44 :
45 : // C++ lib
46 : //
47 : #include <sstream>
48 :
49 :
50 :
51 :
52 :
53 2 : int main(int argc, char * argv[])
54 : {
55 4 : return SNAP_CATCH2_NAMESPACE::snap_catch2_main(
56 : "libutf8"
57 : , LIBUTF8_VERSION_STRING
58 : , argc
59 : , argv
60 6 : , []() { libexcept::set_collect_stack(false); }
61 2 : );
62 6 : }
63 :
64 :
65 : // vim: ts=4 sw=4 et
|