forked from bblanchon/ArduinoJson
Moved failing builds to a dedicated folder
This commit is contained in:
@ -8,6 +8,7 @@ link_libraries(ArduinoJson catch)
|
|||||||
|
|
||||||
include_directories(Helpers)
|
include_directories(Helpers)
|
||||||
add_subdirectory(ElementProxy)
|
add_subdirectory(ElementProxy)
|
||||||
|
add_subdirectory(FailingBuilds)
|
||||||
add_subdirectory(IntegrationTests)
|
add_subdirectory(IntegrationTests)
|
||||||
add_subdirectory(JsonArray)
|
add_subdirectory(JsonArray)
|
||||||
add_subdirectory(JsonDeserializer)
|
add_subdirectory(JsonDeserializer)
|
||||||
|
30
extras/tests/FailingBuilds/CMakeLists.txt
Normal file
30
extras/tests/FailingBuilds/CMakeLists.txt
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
# ArduinoJson - arduinojson.org
|
||||||
|
# Copyright Benoit Blanchon 2014-2020
|
||||||
|
# MIT License
|
||||||
|
|
||||||
|
macro(build_should_fail target)
|
||||||
|
set_target_properties(${target}
|
||||||
|
PROPERTIES
|
||||||
|
EXCLUDE_FROM_ALL TRUE
|
||||||
|
EXCLUDE_FROM_DEFAULT_BUILD TRUE
|
||||||
|
)
|
||||||
|
add_test(
|
||||||
|
NAME
|
||||||
|
${target}
|
||||||
|
COMMAND
|
||||||
|
${CMAKE_COMMAND} --build . --target ${target} --config $<CONFIGURATION>
|
||||||
|
WORKING_DIRECTORY
|
||||||
|
${CMAKE_BINARY_DIR}
|
||||||
|
)
|
||||||
|
set_tests_properties(${target}
|
||||||
|
PROPERTIES
|
||||||
|
WILL_FAIL TRUE
|
||||||
|
)
|
||||||
|
endmacro()
|
||||||
|
|
||||||
|
|
||||||
|
add_executable(Issue978 Issue978.cpp)
|
||||||
|
build_should_fail(Issue978)
|
||||||
|
|
||||||
|
add_executable(Issue1189 Issue1189.cpp)
|
||||||
|
build_should_fail(Issue1189)
|
@ -18,34 +18,3 @@ add_executable(MiscTests
|
|||||||
set_target_properties(MiscTests PROPERTIES UNITY_BUILD OFF)
|
set_target_properties(MiscTests PROPERTIES UNITY_BUILD OFF)
|
||||||
|
|
||||||
add_test(Misc MiscTests)
|
add_test(Misc MiscTests)
|
||||||
|
|
||||||
macro(build_should_fail target)
|
|
||||||
set_target_properties(${target}
|
|
||||||
PROPERTIES
|
|
||||||
EXCLUDE_FROM_ALL TRUE
|
|
||||||
EXCLUDE_FROM_DEFAULT_BUILD TRUE
|
|
||||||
)
|
|
||||||
add_test(
|
|
||||||
NAME
|
|
||||||
${target}
|
|
||||||
COMMAND
|
|
||||||
${CMAKE_COMMAND} --build . --target ${target} --config $<CONFIGURATION>
|
|
||||||
WORKING_DIRECTORY
|
|
||||||
${CMAKE_BINARY_DIR}
|
|
||||||
)
|
|
||||||
set_tests_properties(${target}
|
|
||||||
PROPERTIES
|
|
||||||
WILL_FAIL TRUE
|
|
||||||
)
|
|
||||||
endmacro()
|
|
||||||
|
|
||||||
|
|
||||||
add_executable(Issue978
|
|
||||||
Issue978.cpp
|
|
||||||
)
|
|
||||||
build_should_fail(Issue978)
|
|
||||||
|
|
||||||
add_executable(Issue1189
|
|
||||||
Issue1189.cpp
|
|
||||||
)
|
|
||||||
build_should_fail(Issue1189)
|
|
||||||
|
Reference in New Issue
Block a user