diff --git a/.github/workflows/aunit.yml b/.github/workflows/aunit.yml index 3b50f9c..d5fc357 100644 --- a/.github/workflows/aunit.yml +++ b/.github/workflows/aunit.yml @@ -17,6 +17,7 @@ jobs: - name: Setup run: | cd .. + git clone https://github.com/hsaturn/TinyConsole git clone https://github.com/bxparks/EpoxyDuino git clone https://github.com/bxparks/AceRoutine git clone https://github.com/bxparks/AUnit diff --git a/src/TinyMqtt.cpp b/src/TinyMqtt.cpp index b6de552..8900521 100644 --- a/src/TinyMqtt.cpp +++ b/src/TinyMqtt.cpp @@ -1,13 +1,13 @@ #include "TinyMqtt.h" #include +#ifdef TINY_MQTT_DEBUG static auto green = TinyConsole::green; static auto cyan = TinyConsole::cyan; static auto white = TinyConsole::white; static auto red = TinyConsole::red; static auto yellow = TinyConsole::yellow; -#ifdef TINY_MQTT_DEBUG int TinyMqtt::debug=2; #endif diff --git a/tests/debug-mode/Makefile b/tests/debug-mode/Makefile index 81d72a0..ef0228a 100644 --- a/tests/debug-mode/Makefile +++ b/tests/debug-mode/Makefile @@ -7,7 +7,7 @@ EXTRA_CXXFLAGS=-g3 -O0 -DTINY_MQTT_DEBUG CXXFLAGS = -Wextra -Wall -std=gnu++11 -fno-exceptions -fno-threadsafe-statics APP_NAME := debug-tests -ARDUINO_LIBS := AUnit AceCommon AceTime TinyMqtt EspMock ESP8266WiFi ESPAsyncTCP +ARDUINO_LIBS := AUnit AceCommon AceTime TinyMqtt EspMock ESP8266WiFi ESPAsyncTCP TinyConsole ARDUINO_LIB_DIRS := ../../../EspMock/libraries EPOXY_CORE := EPOXY_CORE_ESP8266 include ../../../EpoxyDuino/EpoxyDuino.mk diff --git a/tests/length-tests.todo/Makefile b/tests/length-tests.todo/Makefile index 7b8a374..cdaf9c3 100644 --- a/tests/length-tests.todo/Makefile +++ b/tests/length-tests.todo/Makefile @@ -4,7 +4,7 @@ EXTRA_CXXFLAGS=-g3 -O0 APP_NAME := length-tests -ARDUINO_LIBS := AUnit AceCommon AceTime TinyMqtt EspMock ESP8266WiFi ESPAsyncTCP +ARDUINO_LIBS := AUnit AceCommon AceTime TinyMqtt EspMock ESP8266WiFi ESPAsyncTCP TinyConsole ARDUINO_LIB_DIRS := ../../../EspMock/libraries EPOXY_CORE := EPOXY_CORE_ESP8266 include ../../../EpoxyDuino/EpoxyDuino.mk diff --git a/tests/local-tests/Makefile b/tests/local-tests/Makefile index 4ffcbc9..e1c23a9 100644 --- a/tests/local-tests/Makefile +++ b/tests/local-tests/Makefile @@ -7,7 +7,7 @@ EXTRA_CXXFLAGS=-g3 -O0 CXXFLAGS = -Wextra -Wall -std=gnu++11 -fno-exceptions -fno-threadsafe-statics APP_NAME := local-tests -ARDUINO_LIBS := AUnit AceCommon AceTime TinyMqtt EspMock ESP8266WiFi ESPAsyncTCP +ARDUINO_LIBS := AUnit AceCommon AceTime TinyMqtt EspMock ESP8266WiFi ESPAsyncTCP TinyConsole ARDUINO_LIB_DIRS := ../../../EspMock/libraries EPOXY_CORE := EPOXY_CORE_ESP8266 include ../../../EpoxyDuino/EpoxyDuino.mk diff --git a/tests/network-tests/Makefile b/tests/network-tests/Makefile index cedb61a..94f4d89 100644 --- a/tests/network-tests/Makefile +++ b/tests/network-tests/Makefile @@ -7,7 +7,7 @@ EXTRA_CXXFLAGS=-g3 -O0 CXXFLAGS = -Wextra -Wall -std=gnu++11 -fno-exceptions -fno-threadsafe-statics APP_NAME := network-tests -ARDUINO_LIBS := AUnit AceCommon AceTime TinyMqtt EspMock ESP8266WiFi ESPAsyncTCP +ARDUINO_LIBS := AUnit AceCommon AceTime TinyMqtt EspMock ESP8266WiFi ESPAsyncTCP TinyConsole ARDUINO_LIB_DIRS := ../../../EspMock/libraries EPOXY_CORE := EPOXY_CORE_ESP8266 include ../../../EpoxyDuino/EpoxyDuino.mk