mirror of
https://github.com/mat007/turtle.git
synced 2026-06-22 12:13:43 +00:00
Remove superflous test instantiations
This commit is contained in:
parent
ed8c58d813
commit
a6aa140148
2 changed files with 1 additions and 5 deletions
|
|
@ -35,7 +35,7 @@ set(testsUsingUndefinedCPP test_function test_integration)
|
||||||
foreach(testFile IN LISTS testFiles)
|
foreach(testFile IN LISTS testFiles)
|
||||||
get_filename_component(name ${testFile} NAME_WE)
|
get_filename_component(name ${testFile} NAME_WE)
|
||||||
|
|
||||||
foreach(testVariant IN ITEMS "" _max_args _use_conversions _no_decltype _no_variadic_macros _thread_safe)
|
foreach(testVariant IN ITEMS "" _max_args _use_conversions _thread_safe)
|
||||||
set(curName ${name}${testVariant})
|
set(curName ${name}${testVariant})
|
||||||
add_executable(${curName} ${testFile})
|
add_executable(${curName} ${testFile})
|
||||||
if(name IN_LIST testsUsingUndefinedCPP)
|
if(name IN_LIST testsUsingUndefinedCPP)
|
||||||
|
|
@ -47,8 +47,6 @@ foreach(testFile IN LISTS testFiles)
|
||||||
|
|
||||||
target_compile_definitions(${name}_max_args PRIVATE MOCK_MAX_ARGS=21)
|
target_compile_definitions(${name}_max_args PRIVATE MOCK_MAX_ARGS=21)
|
||||||
target_compile_definitions(${name}_use_conversions PRIVATE MOCK_USE_CONVERSIONS)
|
target_compile_definitions(${name}_use_conversions PRIVATE MOCK_USE_CONVERSIONS)
|
||||||
target_compile_definitions(${name}_no_decltype PRIVATE MOCK_NO_DECLTYPE)
|
|
||||||
target_compile_definitions(${name}_no_variadic_macros PRIVATE MOCK_NO_VARIADIC_MACROS)
|
|
||||||
|
|
||||||
target_link_libraries(${name}_thread_safe PRIVATE Boost::thread)
|
target_link_libraries(${name}_thread_safe PRIVATE Boost::thread)
|
||||||
target_compile_definitions(${name}_thread_safe PRIVATE MOCK_THREAD_SAFE BOOST_THREAD_USES_MOVE)
|
target_compile_definitions(${name}_thread_safe PRIVATE MOCK_THREAD_SAFE BOOST_THREAD_USES_MOVE)
|
||||||
|
|
|
||||||
|
|
@ -26,8 +26,6 @@ rule run-test ( name )
|
||||||
run $(name) defined_1.cpp defined_2.cpp undefined.cpp /boost//unit_test_framework : : : : $(name)_ ;
|
run $(name) defined_1.cpp defined_2.cpp undefined.cpp /boost//unit_test_framework : : : : $(name)_ ;
|
||||||
run $(name) undefined.cpp /boost//unit_test_framework : : : <define>MOCK_MAX_ARGS=21 : $(name)_max_args ;
|
run $(name) undefined.cpp /boost//unit_test_framework : : : <define>MOCK_MAX_ARGS=21 : $(name)_max_args ;
|
||||||
run $(name) undefined.cpp /boost//unit_test_framework : : : <define>MOCK_USE_CONVERSIONS : $(name)_use_conversions ;
|
run $(name) undefined.cpp /boost//unit_test_framework : : : <define>MOCK_USE_CONVERSIONS : $(name)_use_conversions ;
|
||||||
run $(name) undefined.cpp /boost//unit_test_framework : : : <define>MOCK_NO_DECLTYPE : $(name)_no_decltype ;
|
|
||||||
run $(name) undefined.cpp /boost//unit_test_framework : : : <define>MOCK_NO_VARIADIC_MACROS : $(name)_no_variadic_macros ;
|
|
||||||
run $(name) undefined.cpp /boost//unit_test_framework /boost//thread : : : <define>MOCK_THREAD_SAFE <define>BOOST_THREAD_USES_MOVE <threading>multi : $(name)_thread_safe ;
|
run $(name) undefined.cpp /boost//unit_test_framework /boost//thread : : : <define>MOCK_THREAD_SAFE <define>BOOST_THREAD_USES_MOVE <threading>multi : $(name)_thread_safe ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue