Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move tests of extensions inside test/ directory (#302)
Split header tests accordingly i.e. test core headers as part of core tests, numeric extension headers as part of numeric tests, etc. It extends the convention of sub-directories already established in `include/boost/gil` directory. It is sensible to follow it in other areas of the source tree (i.e. `test/`, `doc/` and `benchmark/`). Another important reason to move the tests is to enable removal of the top-level `Jamfile` with all its definitions of test-specific requirements. The top-level `Jamfile` is not advised, especially if it specifies build requirements like C++ language version. Those affect non-tests builds e.g. documentation, causing failures during generation of HTML documentation (leads to missing docs).
- Loading branch information
Showing
209 changed files
with
273 additions
and
261 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,18 @@ | ||
# | ||
# Copyright (c) 2017-2019 Mateusz Loskot <mateusz at loskot dot net> | ||
# Copyright (c) 2019 Mateusz Loskot <mateusz at loskot dot net> | ||
# | ||
# Distributed under the Boost Software License, Version 1.0. | ||
# (See accompanying file LICENSE_1_0.txt or copy at | ||
# http://www.boost.org/LICENSE_1_0.txt) | ||
# | ||
message(STATUS "Boost.GIL: Configuring core tests") | ||
add_subdirectory(core) | ||
|
||
foreach(_name | ||
promote_integral) | ||
set(_test t_utility_${_name}) | ||
set(_target test_utility_${_name}) | ||
|
||
add_executable(${_target} "") | ||
target_sources(${_target} PRIVATE ${_name}.cpp) | ||
target_link_libraries(${_target} | ||
PRIVATE | ||
gil_compile_options | ||
gil_include_directories | ||
gil_dependencies) | ||
target_compile_definitions(${_target} PRIVATE BOOST_GIL_USE_CONCEPT_CHECK) | ||
add_test(NAME ${_test} COMMAND ${_target}) | ||
add_subdirectory(legacy) | ||
|
||
unset(_name) | ||
unset(_target) | ||
unset(_test) | ||
endforeach() | ||
add_subdirectory(extension) | ||
|
||
if(GIL_BUILD_HEADERS_TESTS) | ||
add_subdirectory(headers) | ||
endif() | ||
# TODO: Split headers tests into core and extensions, see Jamfile-s | ||
# if(GIL_BUILD_HEADERS_TESTS) | ||
# add_subdirectory(headers) | ||
# endif() | ||
|
||
add_subdirectory(point) | ||
add_subdirectory(channel) | ||
add_subdirectory(color) | ||
add_subdirectory(color_base) | ||
add_subdirectory(pixel) | ||
add_subdirectory(iterator) | ||
add_subdirectory(locator) | ||
add_subdirectory(image) | ||
add_subdirectory(image_view) | ||
add_subdirectory(algorithm) | ||
add_subdirectory(legacy) |
Oops, something went wrong.