Skip to content

Commit 3f1e767

Browse files
committed
CML tests
1 parent e796314 commit 3f1e767

2 files changed

Lines changed: 30 additions & 22 deletions

File tree

test/CMakeLists.txt

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
1-
# Copyright (c) 2018-2025 Jean-Louis Leroy
1+
# Copyright 2018, 2019, 2021, 2022 Peter Dimov
22
# Distributed under the Boost Software License, Version 1.0.
3-
# See accompanying file LICENSE_1_0.txt
4-
# or copy at http://www.boost.org/LICENSE_1_0.txt)
5-
6-
file(GLOB test_cpp_files "test_*.cpp")
7-
foreach(test_cpp ${test_cpp_files})
8-
cmake_path(REMOVE_EXTENSION test_cpp LAST_ONLY OUTPUT_VARIABLE test)
9-
string(REGEX REPLACE ".*/" "" test ${test})
10-
add_executable(${test} ${test_cpp})
11-
target_link_libraries(${test} Boost::openmethod)
12-
add_test(NAME ${test} COMMAND ${test})
13-
endforeach()
3+
# See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt
4+
5+
include(BoostTestJamfile OPTIONAL RESULT_VARIABLE HAVE_BOOST_TEST)
6+
7+
if(HAVE_BOOST_TEST)
8+
9+
boost_test_jamfile(FILE Jamfile)
10+
11+
endif()

test/Jamfile

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,26 @@ project
2525
# <toolset>clang:<warnings-as-errors>on
2626
;
2727

28-
for local src in [ glob test_*.cpp ]
29-
{
30-
run $(src) ;
31-
}
32-
33-
for local src in [ glob compile_fail_*.cpp ]
34-
{
35-
compile-fail $(src) ;
36-
}
28+
run test_compiler.cpp ;
29+
run test_core.cpp ;
30+
run test_custom_rtti.cpp ;
31+
run test_dispatch.cpp ;
32+
run test_intrusive.cpp ;
33+
run test_member_method.cpp ;
34+
run test_n2216.cpp ;
35+
run test_namespaces.cpp ;
36+
run test_pointer_to_method.cpp ;
37+
run test_policies.cpp ;
38+
run test_rolex.cpp ;
39+
run test_runtime_errors.cpp ;
40+
run test_shared_virtual_ptr_value_semantics.cpp ;
41+
run test_static_list.cpp ;
42+
run test_unique_virtual_ptr_value_semantics.cpp ;
43+
run test_virtual_ptr_dispatch.cpp ;
44+
run test_virtual_ptr_value_semantics.cpp ;
45+
46+
compile-fail compile_fail_not_polymorphic_virtual_ptr.cpp ;
3747

3848
# quick (for CI)
39-
alias quick : test_blackbox ;
49+
alias quick : test_dispatch ;
4050
explicit quick ;

0 commit comments

Comments
 (0)