exclude most of tests when not in standalone

This commit is contained in:
Proddy
2023-01-11 23:35:31 +01:00
parent b54777bccb
commit 9b7b5ebfa8

View File

@@ -24,6 +24,7 @@
namespace emsesp { namespace emsesp {
// no shell, called via the API or 'call system test' command // 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) { bool Test::run_test(const char * command, int8_t id) {
if ((command == nullptr) || (strlen(command) == 0)) { if ((command == nullptr) || (strlen(command) == 0)) {
return false; 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 // 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 // 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) { if (strcmp(command, "2thermostats") == 0) {
EMSESP::logger().info("Testing with multiple thermostats..."); EMSESP::logger().info("Testing with multiple thermostats...");