Line data Source code
1 : // Copyright (c) 2026 Made to Order Software Corp. All Rights Reserved
2 : //
3 : // https://snapwebsites.org/project/magpie
4 : // contact@m2osw.com
5 : //
6 : // This program is free software: you can redistribute it and/or modify
7 : // it under the terms of the GNU General Public License as published by
8 : // the Free Software Foundation, either version 3 of the License, or
9 : // (at your option) any later version.
10 : //
11 : // This program is distributed in the hope that it will be useful,
12 : // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 : // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 : // GNU General Public License for more details.
15 : //
16 : // You should have received a copy of the GNU General Public License
17 : // along with this program. If not, see <https://www.gnu.org/licenses/>.
18 :
19 :
20 : /** \file
21 : * \brief The main() function of the magpie library tests.
22 : *
23 : * This file implements the main() function of the unit tests used to
24 : * verify the magpie library.
25 : *
26 : * It defines any globals (none at this point) and a few basic command
27 : * line options such as --help and --version.
28 : */
29 :
30 : // Tell catch we want it to add the runner code in this file.
31 : #define CATCH_CONFIG_RUNNER
32 :
33 : // self
34 : //
35 : #include "catch_main.h"
36 :
37 :
38 : // snapdev
39 : //
40 : #include <snapdev/not_used.h>
41 :
42 :
43 : // last include
44 : //
45 : #include <snapdev/poison.h>
46 :
47 :
48 :
49 : namespace SNAP_CATCH2_NAMESPACE
50 : {
51 :
52 :
53 : } // namespace SNAP_CATCH2_NAMESPACE
54 :
55 :
56 :
57 : namespace
58 : {
59 :
60 :
61 :
62 :
63 :
64 : } // no name namespace
65 :
66 :
67 2 : int main(int argc, char * argv[])
68 : {
69 2 : return SNAP_CATCH2_NAMESPACE::snap_catch2_main(
70 : "magpie"
71 : , MAGPIE_VERSION_STRING
72 : , argc
73 : , argv
74 : , nullptr
75 : , nullptr
76 : , nullptr
77 : , nullptr
78 2 : );
79 : }
80 :
81 : // vim: ts=4 sw=4 et
|