From 8b4d1488b53bac9777b09c38eb05ac7e18bc6110 Mon Sep 17 00:00:00 2001 From: tocic Date: Sun, 1 Dec 2024 11:00:17 +0300 Subject: [PATCH 1/2] Fix CE due to missing snitch_main.hpp Closes https://github.com/snitch-org/snitch/issues/199. --- CMakeLists.txt | 3 ++- meson.build | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5b60c17..e20f47f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required(VERSION 3.14) -project(snitch LANGUAGES CXX VERSION 1.3.0) +project(snitch LANGUAGES CXX VERSION 1.3.1) # Maximum lengths. set(SNITCH_MAX_TEST_CASES 5000 CACHE STRING "Maximum number of test cases in a test application.") @@ -83,6 +83,7 @@ set(SNITCH_INCLUDES ${PROJECT_SOURCE_DIR}/include/snitch/snitch_macros_test_case.hpp ${PROJECT_SOURCE_DIR}/include/snitch/snitch_macros_utility.hpp ${PROJECT_SOURCE_DIR}/include/snitch/snitch_macros_warnings.hpp + ${PROJECT_SOURCE_DIR}/include/snitch/snitch_main.hpp ${PROJECT_SOURCE_DIR}/include/snitch/snitch_matcher.hpp ${PROJECT_SOURCE_DIR}/include/snitch/snitch_registry.hpp ${PROJECT_SOURCE_DIR}/include/snitch/snitch_reporter_catch2_xml.hpp diff --git a/meson.build b/meson.build index e0b7e65..63626d9 100644 --- a/meson.build +++ b/meson.build @@ -1,6 +1,6 @@ project('snitch', 'cpp', default_options: ['cpp_std=c++20', 'default_library=static'], - version: '1.3.0' + version: '1.3.1' ) cpp_arguments = [] From d11ca821bb4219b81a4c6bfcd6a8df3bdd4d127c Mon Sep 17 00:00:00 2001 From: Corentin Schreiber Date: Sun, 1 Dec 2024 11:22:30 +0000 Subject: [PATCH 2/2] Use snitch.hpp in install test to catch missing exported headers --- tests/install_tests/standalone.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/install_tests/standalone.cpp b/tests/install_tests/standalone.cpp index a338f8b..4da4275 100644 --- a/tests/install_tests/standalone.cpp +++ b/tests/install_tests/standalone.cpp @@ -2,8 +2,7 @@ # define SNITCH_IMPLEMENTATION # include #else -# include -# include +# include #endif TEST_CASE("compiles and runs") {