Skip to content

Commit 3acc2de

Browse files
committed
normalize test targets
1 parent cc26462 commit 3acc2de

18 files changed

+35
-35
lines changed

tests/CMakeLists.txt

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -3,54 +3,54 @@
33
# See accompanying file LICENSE_1_0.txt
44
# or copy at http://www.boost.org/LICENSE_1_0.txt)
55

6-
add_executable(static_list static_list.cpp)
7-
target_link_libraries(static_list YOMM2::yomm2)
8-
add_test(NAME static_list COMMAND static_list)
6+
add_executable(test_static_list test_static_list.cpp)
7+
target_link_libraries(test_static_list YOMM2::yomm2)
8+
add_test(NAME test_static_list COMMAND test_static_list)
99

1010
add_executable(test_core test_core.cpp)
1111
target_link_libraries(test_core YOMM2::yomm2)
1212
add_test(NAME test_core COMMAND test_core)
1313

14-
add_executable(templates templates.cpp)
15-
target_link_libraries(templates YOMM2::yomm2)
16-
add_test(NAME templates COMMAND templates)
14+
add_executable(test_templates test_templates.cpp)
15+
target_link_libraries(test_templates YOMM2::yomm2)
16+
add_test(NAME test_templates COMMAND test_templates)
1717

18-
add_executable(compiler compiler.cpp)
19-
target_link_libraries(compiler YOMM2::yomm2)
20-
add_test(NAME compiler COMMAND compiler)
18+
add_executable(test_compiler test_compiler.cpp)
19+
target_link_libraries(test_compiler YOMM2::yomm2)
20+
add_test(NAME test_compiler COMMAND test_compiler)
2121

22-
add_executable(blackbox blackbox.cpp)
23-
target_link_libraries(blackbox YOMM2::yomm2)
24-
add_test(NAME blackbox COMMAND blackbox)
22+
add_executable(test_blackbox test_blackbox.cpp)
23+
target_link_libraries(test_blackbox YOMM2::yomm2)
24+
add_test(NAME test_blackbox COMMAND test_blackbox)
2525

2626
if (NOT WIN32)
27-
add_executable(manual_call manual_call.cpp)
28-
target_link_libraries(manual_call YOMM2::yomm2)
29-
add_test(NAME manual_call COMMAND manual_call)
27+
add_executable(test_manual_call test_manual_call.cpp)
28+
target_link_libraries(test_manual_call YOMM2::yomm2)
29+
add_test(NAME test_manual_call COMMAND test_manual_call)
3030
endif()
3131

32-
add_executable(lab lab.cpp)
33-
target_link_libraries(lab YOMM2::yomm2 ${CMAKE_THREAD_LIBS_INIT})
34-
add_test(NAME lab COMMAND lab)
32+
add_executable(test_lab test_lab.cpp)
33+
target_link_libraries(test_lab YOMM2::yomm2 ${CMAKE_THREAD_LIBS_INIT})
34+
add_test(NAME test_lab COMMAND test_lab)
3535

36-
add_executable(member_method member_method.cpp)
37-
target_link_libraries(member_method YOMM2::yomm2 ${CMAKE_THREAD_LIBS_INIT})
38-
add_test(NAME member_method COMMAND member_method)
36+
add_executable(test_member_method test_member_method.cpp)
37+
target_link_libraries(test_member_method YOMM2::yomm2 ${CMAKE_THREAD_LIBS_INIT})
38+
add_test(NAME test_member_method COMMAND test_member_method)
3939

40-
add_executable(namespaces namespaces.cpp)
41-
target_link_libraries(namespaces YOMM2::yomm2 ${CMAKE_THREAD_LIBS_INIT})
42-
add_test(NAME namespaces COMMAND namespaces)
40+
add_executable(test_namespaces test_namespaces.cpp)
41+
target_link_libraries(test_namespaces YOMM2::yomm2 ${CMAKE_THREAD_LIBS_INIT})
42+
add_test(NAME test_namespaces COMMAND test_namespaces)
4343

44-
add_executable(pointer_to_method pointer_to_method.cpp)
45-
target_link_libraries(pointer_to_method YOMM2::yomm2 ${CMAKE_THREAD_LIBS_INIT})
46-
add_test(NAME pointer_to_method COMMAND pointer_to_method)
44+
add_executable(test_pointer_to_method test_pointer_to_method.cpp)
45+
target_link_libraries(test_pointer_to_method YOMM2::yomm2 ${CMAKE_THREAD_LIBS_INIT})
46+
add_test(NAME test_pointer_to_method COMMAND test_pointer_to_method)
4747

4848
if(YOMM2_ENABLE_BENCHMARKS AND NOT (WIN32 OR APPLE))
4949
add_executable(benchmarks benchmarks.cpp)
5050
target_link_libraries(
5151
benchmarks YOMM2::yomm2 benchmark::benchmark ${CMAKE_THREAD_LIBS_INIT})
52-
add_executable(rdtsc-benchmark rdtsc-benchmark.cpp)
53-
target_link_libraries(rdtsc-benchmark YOMM2::yomm2 ${CMAKE_THREAD_LIBS_INIT})
52+
add_executable(benchmark_rdtsc benchmark_rdtsc.cpp)
53+
target_link_libraries(benchmark_rdtsc YOMM2::yomm2 ${CMAKE_THREAD_LIBS_INIT})
5454
endif()
5555

5656
add_executable(test_virtual_ptr_basic test_virtual_ptr_basic.cpp)
File renamed without changes.

tests/blackbox.cpp renamed to tests/test_blackbox.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
#include <yorel/yomm2/keywords.hpp>
1111

12-
#include "test_helpers.hpp"
12+
#include "test_util.hpp"
1313

1414
#define BOOST_TEST_MODULE yomm2
1515
#include <boost/test/included/unit_test.hpp>

tests/compiler.cpp renamed to tests/test_compiler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#include <yorel/yomm2/keywords.hpp>
55
#include <yorel/yomm2/detail/compiler.hpp>
66

7-
#include "test_helpers.hpp"
7+
#include "test_util.hpp"
88

99
#define BOOST_TEST_MODULE compiler
1010
#include <boost/test/included/unit_test.hpp>

tests/test_generator_forward_decls.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#include <yorel/yomm2.hpp>
1313
#include <yorel/yomm2/generator.hpp>
1414

15-
#include "test_helpers.hpp"
15+
#include "test_util.hpp"
1616

1717
#define BOOST_TEST_MAIN
1818
#define BOOST_TEST_MODULE generator
File renamed without changes.
File renamed without changes.
File renamed without changes.

tests/test_move.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include <yorel/yomm2/keywords.hpp>
22

3-
#include "test_helpers.hpp"
3+
#include "test_util.hpp"
44

55
#define BOOST_TEST_MODULE yomm2
66
#include <boost/test/included/unit_test.hpp>
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

tests/test_virtual_ptr_all.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#include <yorel/yomm2/keywords.hpp>
77
#include <yorel/yomm2/templates.hpp>
88

9-
#include "test_helpers.hpp"
9+
#include "test_util.hpp"
1010

1111
#define BOOST_TEST_MODULE yomm2
1212
#include <boost/test/included/unit_test.hpp>

tests/test_virtual_ptr_basic.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#include <boost/test/included/unit_test.hpp>
1414
#include <boost/test/tools/output_test_stream.hpp>
1515

16-
#include "test_helpers.hpp"
16+
#include "test_util.hpp"
1717

1818
using std::cout;
1919
using namespace yorel::yomm2;

0 commit comments

Comments
 (0)