From 9b7b5ebfa8337c3efc8cf5c9f2b35e5bcc6bf6a2 Mon Sep 17 00:00:00 2001 From: Proddy Date: Wed, 11 Jan 2023 23:35:31 +0100 Subject: [PATCH] exclude most of tests when not in standalone --- src/test/test.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/test/test.cpp b/src/test/test.cpp index c48160456..66354eee4 100644 --- a/src/test/test.cpp +++ b/src/test/test.cpp @@ -24,6 +24,7 @@ namespace emsesp { // no shell, called via the API or 'call system test' command +// or http://ems-esp/api?device=system&cmd=test&data=boiler bool Test::run_test(const char * command, int8_t id) { if ((command == nullptr) || (strlen(command) == 0)) { return false; @@ -69,7 +70,7 @@ bool Test::run_test(const char * command, int8_t id) { // the tests take a lot of memory when built for the ESP32 // so only including the full set in standalone, otherwise a limited selection of basic tests // -#ifndef EMSESP_STANDALONE +#ifdef EMSESP_STANDALONE if (strcmp(command, "2thermostats") == 0) { EMSESP::logger().info("Testing with multiple thermostats..."); @@ -821,7 +822,7 @@ void Test::run_test(uuid::console::Shell & shell, const std::string & cmd, const */ /* - requestX.url("/api/thermostat/mode/auto"); + requestX.url("/api/thermostat/mode/auto"); EMSESP::webAPIService.webAPIService_get(&requestX); return; */