From 865072da961fd8b6366f046e44504b123f0c3ec7 Mon Sep 17 00:00:00 2001 From: BlackMATov Date: Thu, 20 Jul 2023 22:01:06 +0700 Subject: [PATCH] add tests for headers --- develop/manuals/CMakeLists.txt | 6 ++++++ develop/unbench/CMakeLists.txt | 6 ++++++ develop/untests/CMakeLists.txt | 6 ++++++ develop/untests/meta_headers/binds_tests.cpp | 16 ++++++++++++++++ develop/untests/meta_headers/indices_tests.cpp | 16 ++++++++++++++++ develop/untests/meta_headers/invoke_tests.cpp | 16 ++++++++++++++++ develop/untests/meta_headers/registry_tests.cpp | 16 ++++++++++++++++ develop/untests/meta_headers/states_tests.cpp | 16 ++++++++++++++++ develop/untests/meta_headers/types_tests.cpp | 16 ++++++++++++++++ develop/untests/meta_headers/ucast_tests.cpp | 16 ++++++++++++++++ develop/untests/meta_headers/uresult_tests.cpp | 16 ++++++++++++++++ develop/untests/meta_headers/uvalue_tests.cpp | 16 ++++++++++++++++ 12 files changed, 162 insertions(+) create mode 100644 develop/untests/meta_headers/binds_tests.cpp create mode 100644 develop/untests/meta_headers/indices_tests.cpp create mode 100644 develop/untests/meta_headers/invoke_tests.cpp create mode 100644 develop/untests/meta_headers/registry_tests.cpp create mode 100644 develop/untests/meta_headers/states_tests.cpp create mode 100644 develop/untests/meta_headers/types_tests.cpp create mode 100644 develop/untests/meta_headers/ucast_tests.cpp create mode 100644 develop/untests/meta_headers/uresult_tests.cpp create mode 100644 develop/untests/meta_headers/uvalue_tests.cpp diff --git a/develop/manuals/CMakeLists.txt b/develop/manuals/CMakeLists.txt index 861c994..3bf0382 100644 --- a/develop/manuals/CMakeLists.txt +++ b/develop/manuals/CMakeLists.txt @@ -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) diff --git a/develop/unbench/CMakeLists.txt b/develop/unbench/CMakeLists.txt index 978c9b1..f226654 100644 --- a/develop/unbench/CMakeLists.txt +++ b/develop/unbench/CMakeLists.txt @@ -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) diff --git a/develop/untests/CMakeLists.txt b/develop/untests/CMakeLists.txt index 8396a48..41c9f30 100644 --- a/develop/untests/CMakeLists.txt +++ b/develop/untests/CMakeLists.txt @@ -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) diff --git a/develop/untests/meta_headers/binds_tests.cpp b/develop/untests/meta_headers/binds_tests.cpp new file mode 100644 index 0000000..7ebf157 --- /dev/null +++ b/develop/untests/meta_headers/binds_tests.cpp @@ -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 +#else +# include +#endif + +#include + +TEST_CASE("meta/meta_headers/binds") { +} diff --git a/develop/untests/meta_headers/indices_tests.cpp b/develop/untests/meta_headers/indices_tests.cpp new file mode 100644 index 0000000..3eaefd4 --- /dev/null +++ b/develop/untests/meta_headers/indices_tests.cpp @@ -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 +#else +# include +#endif + +#include + +TEST_CASE("meta/meta_headers/indices") { +} diff --git a/develop/untests/meta_headers/invoke_tests.cpp b/develop/untests/meta_headers/invoke_tests.cpp new file mode 100644 index 0000000..98af5af --- /dev/null +++ b/develop/untests/meta_headers/invoke_tests.cpp @@ -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 +#else +# include +#endif + +#include + +TEST_CASE("meta/meta_headers/invoke") { +} diff --git a/develop/untests/meta_headers/registry_tests.cpp b/develop/untests/meta_headers/registry_tests.cpp new file mode 100644 index 0000000..f29bf58 --- /dev/null +++ b/develop/untests/meta_headers/registry_tests.cpp @@ -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 +#else +# include +#endif + +#include + +TEST_CASE("meta/meta_headers/registry") { +} diff --git a/develop/untests/meta_headers/states_tests.cpp b/develop/untests/meta_headers/states_tests.cpp new file mode 100644 index 0000000..9ad8a6f --- /dev/null +++ b/develop/untests/meta_headers/states_tests.cpp @@ -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 +#else +# include +#endif + +#include + +TEST_CASE("meta/meta_headers/states") { +} diff --git a/develop/untests/meta_headers/types_tests.cpp b/develop/untests/meta_headers/types_tests.cpp new file mode 100644 index 0000000..9170b99 --- /dev/null +++ b/develop/untests/meta_headers/types_tests.cpp @@ -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 +#else +# include +#endif + +#include + +TEST_CASE("meta/meta_headers/types") { +} diff --git a/develop/untests/meta_headers/ucast_tests.cpp b/develop/untests/meta_headers/ucast_tests.cpp new file mode 100644 index 0000000..c774676 --- /dev/null +++ b/develop/untests/meta_headers/ucast_tests.cpp @@ -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 +#else +# include +#endif + +#include + +TEST_CASE("meta/meta_headers/ucast") { +} diff --git a/develop/untests/meta_headers/uresult_tests.cpp b/develop/untests/meta_headers/uresult_tests.cpp new file mode 100644 index 0000000..8183717 --- /dev/null +++ b/develop/untests/meta_headers/uresult_tests.cpp @@ -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 +#else +# include +#endif + +#include + +TEST_CASE("meta/meta_headers/uresult") { +} diff --git a/develop/untests/meta_headers/uvalue_tests.cpp b/develop/untests/meta_headers/uvalue_tests.cpp new file mode 100644 index 0000000..2350de8 --- /dev/null +++ b/develop/untests/meta_headers/uvalue_tests.cpp @@ -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 +#else +# include +#endif + +#include + +TEST_CASE("meta/meta_headers/uvalue") { +}