add tests for headers

This commit is contained in:
BlackMATov
2023-07-20 22:01:06 +07:00
parent 29078d7d77
commit 865072da96
12 changed files with 162 additions and 0 deletions

View File

@@ -18,5 +18,11 @@ target_link_libraries(${PROJECT_NAME}.singles PRIVATE
meta.hpp.vendors::doctest
meta.hpp.vendors::fmt)
target_compile_definitions(${PROJECT_NAME} PRIVATE
META_HPP_HEADERS_BUILD)
target_compile_definitions(${PROJECT_NAME}.singles PRIVATE
META_HPP_SINGLES_BUILD)
add_test(${PROJECT_NAME} ${PROJECT_NAME})
add_test(${PROJECT_NAME} ${PROJECT_NAME}.singles)

View File

@@ -19,3 +19,9 @@ target_link_libraries(${PROJECT_NAME}.singles PRIVATE
meta.hpp.vendors::gbench
meta.hpp.vendors::rttr
meta.hpp.vendors::vmath.hpp)
target_compile_definitions(${PROJECT_NAME} PRIVATE
META_HPP_HEADERS_BUILD)
target_compile_definitions(${PROJECT_NAME}.singles PRIVATE
META_HPP_SINGLES_BUILD)

View File

@@ -16,5 +16,11 @@ target_link_libraries(${PROJECT_NAME}.singles PRIVATE
meta.hpp::setup_targets
meta.hpp.vendors::doctest)
target_compile_definitions(${PROJECT_NAME} PRIVATE
META_HPP_HEADERS_BUILD)
target_compile_definitions(${PROJECT_NAME}.singles PRIVATE
META_HPP_SINGLES_BUILD)
add_test(${PROJECT_NAME} ${PROJECT_NAME})
add_test(${PROJECT_NAME} ${PROJECT_NAME}.singles)

View File

@@ -0,0 +1,16 @@
/*******************************************************************************
* This file is part of the "https://github.com/blackmatov/meta.hpp"
* For conditions of distribution and use, see copyright notice in LICENSE.md
* Copyright (C) 2021-2023, by Matvey Cherevko (blackmatov@gmail.com)
******************************************************************************/
#if defined(META_HPP_HEADERS_BUILD)
# include <meta.hpp/meta_binds.hpp>
#else
# include <meta.hpp/meta_all.hpp>
#endif
#include <doctest/doctest.h>
TEST_CASE("meta/meta_headers/binds") {
}

View File

@@ -0,0 +1,16 @@
/*******************************************************************************
* This file is part of the "https://github.com/blackmatov/meta.hpp"
* For conditions of distribution and use, see copyright notice in LICENSE.md
* Copyright (C) 2021-2023, by Matvey Cherevko (blackmatov@gmail.com)
******************************************************************************/
#if defined(META_HPP_HEADERS_BUILD)
# include <meta.hpp/meta_indices.hpp>
#else
# include <meta.hpp/meta_all.hpp>
#endif
#include <doctest/doctest.h>
TEST_CASE("meta/meta_headers/indices") {
}

View File

@@ -0,0 +1,16 @@
/*******************************************************************************
* This file is part of the "https://github.com/blackmatov/meta.hpp"
* For conditions of distribution and use, see copyright notice in LICENSE.md
* Copyright (C) 2021-2023, by Matvey Cherevko (blackmatov@gmail.com)
******************************************************************************/
#if defined(META_HPP_HEADERS_BUILD)
# include <meta.hpp/meta_invoke.hpp>
#else
# include <meta.hpp/meta_all.hpp>
#endif
#include <doctest/doctest.h>
TEST_CASE("meta/meta_headers/invoke") {
}

View File

@@ -0,0 +1,16 @@
/*******************************************************************************
* This file is part of the "https://github.com/blackmatov/meta.hpp"
* For conditions of distribution and use, see copyright notice in LICENSE.md
* Copyright (C) 2021-2023, by Matvey Cherevko (blackmatov@gmail.com)
******************************************************************************/
#if defined(META_HPP_HEADERS_BUILD)
# include <meta.hpp/meta_registry.hpp>
#else
# include <meta.hpp/meta_all.hpp>
#endif
#include <doctest/doctest.h>
TEST_CASE("meta/meta_headers/registry") {
}

View File

@@ -0,0 +1,16 @@
/*******************************************************************************
* This file is part of the "https://github.com/blackmatov/meta.hpp"
* For conditions of distribution and use, see copyright notice in LICENSE.md
* Copyright (C) 2021-2023, by Matvey Cherevko (blackmatov@gmail.com)
******************************************************************************/
#if defined(META_HPP_HEADERS_BUILD)
# include <meta.hpp/meta_states.hpp>
#else
# include <meta.hpp/meta_all.hpp>
#endif
#include <doctest/doctest.h>
TEST_CASE("meta/meta_headers/states") {
}

View File

@@ -0,0 +1,16 @@
/*******************************************************************************
* This file is part of the "https://github.com/blackmatov/meta.hpp"
* For conditions of distribution and use, see copyright notice in LICENSE.md
* Copyright (C) 2021-2023, by Matvey Cherevko (blackmatov@gmail.com)
******************************************************************************/
#if defined(META_HPP_HEADERS_BUILD)
# include <meta.hpp/meta_types.hpp>
#else
# include <meta.hpp/meta_all.hpp>
#endif
#include <doctest/doctest.h>
TEST_CASE("meta/meta_headers/types") {
}

View File

@@ -0,0 +1,16 @@
/*******************************************************************************
* This file is part of the "https://github.com/blackmatov/meta.hpp"
* For conditions of distribution and use, see copyright notice in LICENSE.md
* Copyright (C) 2021-2023, by Matvey Cherevko (blackmatov@gmail.com)
******************************************************************************/
#if defined(META_HPP_HEADERS_BUILD)
# include <meta.hpp/meta_ucast.hpp>
#else
# include <meta.hpp/meta_all.hpp>
#endif
#include <doctest/doctest.h>
TEST_CASE("meta/meta_headers/ucast") {
}

View File

@@ -0,0 +1,16 @@
/*******************************************************************************
* This file is part of the "https://github.com/blackmatov/meta.hpp"
* For conditions of distribution and use, see copyright notice in LICENSE.md
* Copyright (C) 2021-2023, by Matvey Cherevko (blackmatov@gmail.com)
******************************************************************************/
#if defined(META_HPP_HEADERS_BUILD)
# include <meta.hpp/meta_uresult.hpp>
#else
# include <meta.hpp/meta_all.hpp>
#endif
#include <doctest/doctest.h>
TEST_CASE("meta/meta_headers/uresult") {
}

View File

@@ -0,0 +1,16 @@
/*******************************************************************************
* This file is part of the "https://github.com/blackmatov/meta.hpp"
* For conditions of distribution and use, see copyright notice in LICENSE.md
* Copyright (C) 2021-2023, by Matvey Cherevko (blackmatov@gmail.com)
******************************************************************************/
#if defined(META_HPP_HEADERS_BUILD)
# include <meta.hpp/meta_uvalue.hpp>
#else
# include <meta.hpp/meta_all.hpp>
#endif
#include <doctest/doctest.h>
TEST_CASE("meta/meta_headers/uvalue") {
}