A lambda-based C++ unit-testing framework.
Revisão | bd7ed395052012dc6f179bb9d087831347a42127 (tree) |
---|---|
Hora | 2020-01-19 20:51:20 |
Autor | Kaz Nishimura <kazssym@linu...> |
Commiter | Kaz Nishimura |
Move <cppunits/bits/engine.h> to <bits/cppunits/driver.h>
@@ -4,8 +4,8 @@ | ||
4 | 4 | |
5 | 5 | nobase_include_HEADERS = cppunitx/framework cppunitx/engine cppunitx/module \ |
6 | 6 | bits/cppunitx.h bits/cppunitx/registry.h bits/cppunitx/test.h \ |
7 | -bits/cppunitx/module.h \ | |
8 | -cppunitx/bits/engine.h cppunitx/bits/test_runner.h cppunitx/bits/base.h | |
7 | +bits/cppunitx/module.h bits/cppunitx/driver.h \ | |
8 | +cppunitx/bits/test_runner.h cppunitx/bits/base.h | |
9 | 9 | |
10 | 10 | libcppunitx_la_LDFLAGS = -version-info 0:0:0 $(LTLDFLAGS) |
11 | 11 | libcppunitx_la_SOURCES = registry.cpp test.cpp \ |
@@ -0,0 +1,27 @@ | ||
1 | +// cppunitx/bits/engine.h | |
2 | +// Copyright (C) 2018 Kaz Nishimura | |
3 | +// | |
4 | +// This program is free software: you can redistribute it and/or modify it | |
5 | +// under the terms of the GNU General Public License as published by the Free | |
6 | +// Software Foundation, either version 3 of the License, or (at your option) | |
7 | +// any later version. | |
8 | +// | |
9 | +// This program is distributed in the hope that it will be useful, but WITHOUT | |
10 | +// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
11 | +// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | |
12 | +// more details. | |
13 | +// | |
14 | +// You should have received a copy of the GNU General Public License along with | |
15 | +// this program. If not, see <http://www.gnu.org/licenses/>. | |
16 | +// | |
17 | +// SPDX-License-Identifier: GPL-3.0-or-later | |
18 | + | |
19 | +#ifndef _CPPUNITX_BITS_ENGINE_H | |
20 | +#define _CPPUNITX_BITS_ENGINE_H 1 | |
21 | + | |
22 | +namespace cppunitx | |
23 | +{ | |
24 | + extern int main(int argc, char *argv[]); | |
25 | +} | |
26 | + | |
27 | +#endif |
@@ -1,27 +0,0 @@ | ||
1 | -// cppunitx/bits/engine.h | |
2 | -// Copyright (C) 2018 Kaz Nishimura | |
3 | -// | |
4 | -// This program is free software: you can redistribute it and/or modify it | |
5 | -// under the terms of the GNU General Public License as published by the Free | |
6 | -// Software Foundation, either version 3 of the License, or (at your option) | |
7 | -// any later version. | |
8 | -// | |
9 | -// This program is distributed in the hope that it will be useful, but WITHOUT | |
10 | -// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
11 | -// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | |
12 | -// more details. | |
13 | -// | |
14 | -// You should have received a copy of the GNU General Public License along with | |
15 | -// this program. If not, see <http://www.gnu.org/licenses/>. | |
16 | -// | |
17 | -// SPDX-License-Identifier: GPL-3.0-or-later | |
18 | - | |
19 | -#ifndef _CPPUNITX_BITS_ENGINE_H | |
20 | -#define _CPPUNITX_BITS_ENGINE_H 1 | |
21 | - | |
22 | -namespace cppunitx | |
23 | -{ | |
24 | - extern int main(int argc, char *argv[]); | |
25 | -} | |
26 | - | |
27 | -#endif |
@@ -19,7 +19,6 @@ | ||
19 | 19 | #ifndef _CPPUNITX_ENGINE |
20 | 20 | #define _CPPUNITX_ENGINE 1 |
21 | 21 | |
22 | -#include <cppunitx/bits/base.h> | |
23 | -#include <cppunitx/bits/engine.h> | |
22 | +#include <bits/cppunitx/driver.h> | |
24 | 23 | |
25 | 24 | #endif |
@@ -19,7 +19,8 @@ | ||
19 | 19 | #if HAVE_CONFIG_H |
20 | 20 | #include <config.h> |
21 | 21 | #endif |
22 | -#include <cppunitx/bits/engine.h> | |
22 | + | |
23 | +#include <bits/cppunitx/driver.h> | |
23 | 24 | #include <cstdlib> |
24 | 25 | |
25 | 26 | int cppunitx::main(const int argc, char *argv[]) |