fix catch2 build options not being applied + enable benchmarking

This commit is contained in:
jacqueline
2024-06-27 14:38:25 +10:00
parent 0bbf279e5e
commit ed44606162
3 changed files with 3 additions and 13 deletions
+3 -4
View File
@@ -2,7 +2,6 @@
#
# SPDX-License-Identifier: GPL-3.0-only
idf_component_register(
SRCS "catch_runner.cpp"
INCLUDE_DIRS "include"
REQUIRES "console")
idf_component_register(SRCS "catch_runner.cpp" INCLUDE_DIRS "include")
target_compile_options(${COMPONENT_LIB} PUBLIC -DCATCH_CONFIG_NO_POSIX_SIGNALS -DCATCH_CONFIG_FAST_COMPILE -DCATCH_CONFIG_ENABLE_BENCHMARKING)
-6
View File
@@ -9,12 +9,6 @@
#define CATCH_CONFIG_RUNNER
#include "catch2/catch.hpp"
#include <stdio.h>
#include <string.h>
#include "esp_console.h"
#include "esp_log.h"
#include "esp_system.h"
// There must be exactly on Session instance at all times; attempting to destroy
// this will result in memory corruption.
static Catch::Session sCatchSession;