json/test
Florian Albrechtskirchinger 00c4a4d066 Refactor unit test creation
Add functions for creating tests and to supply test- and
standard-specific build settings.

Raises minimum CMake version to 3.13 in test directory.

json_test_add_test_for(
    <file>
    MAIN <main>
    [CXX_STANDARDS <version_number>...] [FORCE])

Given a <file> unit-foo.cpp, produces

    test-foo_cpp<version_number>

if C++ standard <version_number> is supported by the compiler and
thesource file contains JSON_HAS_CPP_<version_number>.  Use FORCE to
create the test regardless of the file containing
JSON_HAS_CPP_<version_number>.  Test targets are linked against <main>.
CXX_STANDARDS defaults to "11".

json_test_set_test_options(
    all|<tests>
    [CXX_STANDARDS all|<args>...]
    [COMPILE_DEFINITIONS <args>...]
    [COMPILE_FEATURES <args>...]
    [COMPILE_OPTIONS <args>...]
    [LINK_LIBRARIES <args>...]
    [LINK_OPTIONS <args>...])

Supply test- and standard-specific build settings.
Specify multiple tests using a list e.g., "test-foo;test-bar".

Must be called BEFORE the test is created.
2022-03-13 16:11:20 +01:00
..
cmake_add_subdirectory annotate non-reproducible tests #2324 2020-08-30 13:23:34 +02:00
cmake_fetch_content 🐛 properly assign two labels to one test case #2596 2021-01-27 14:22:58 +01:00
cmake_fetch_content2 FetchContent_MakeAvailable (#3351) 2022-03-06 15:33:05 +01:00
cmake_import annotate non-reproducible tests #2324 2020-08-30 13:23:34 +02:00
cmake_import_minver annotate non-reproducible tests #2324 2020-08-30 13:23:34 +02:00
cmake_target_include_directories annotate non-reproducible tests #2324 2020-08-30 13:23:34 +02:00
cuda_example Fix compilation error with NVCC (#3234) 2022-01-02 09:03:56 +01:00
reports added fuzzing results 2016-10-02 11:23:47 +02:00
src Make iterator operator++/--(int) equality-preserving (#3332) 2022-03-08 10:10:50 +01:00
thirdparty Fix extra ";" clang warnings 2021-08-19 17:04:34 +02:00
CMakeLists.txt Refactor unit test creation 2022-03-13 16:11:20 +01:00
Makefile 🔥 remove test Makefile targets (all handled by CMake) 2020-07-16 13:38:25 +02:00