From c4cf39ab680728694bf00e1490545e093e2e5d71 Mon Sep 17 00:00:00 2001 From: hsaturn Date: Mon, 9 Aug 2021 02:33:01 +0200 Subject: [PATCH] Fix aunit tests --- tests/local-tests/Makefile | 6 ++++-- tests/nowifi-tests/Makefile | 6 ++++-- tests/string-indexer-tests/Makefile | 6 ++++-- tests/string-indexer-tests/string-indexer-tests.ino | 2 +- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/tests/local-tests/Makefile b/tests/local-tests/Makefile index 08515f4..21bc2bf 100644 --- a/tests/local-tests/Makefile +++ b/tests/local-tests/Makefile @@ -2,5 +2,7 @@ # Makefile to compile and run Arduino programs natively on Linux or MacOS. APP_NAME := local-tests -ARDUINO_LIBS := AUnit AceCommon AceTime TinyMqtt EspMock -include ../../../EspMock/EspMock.mk +ARDUINO_LIBS := AUnit AceCommon AceTime TinyMqtt EspMock ESP8266WiFi ESPAsyncTCP +ARDUINO_LIB_DIRS := ../../../EspMock/libraries +EPOXY_CORE := EPOXY_CORE_ESP8266 +include ../../../EpoxyDuino/EpoxyDuino.mk diff --git a/tests/nowifi-tests/Makefile b/tests/nowifi-tests/Makefile index 5b1d53a..5e4a14e 100644 --- a/tests/nowifi-tests/Makefile +++ b/tests/nowifi-tests/Makefile @@ -2,5 +2,7 @@ # Makefile to compile and run Arduino programs natively on Linux or MacOS. APP_NAME := nowifi-tests -ARDUINO_LIBS := AUnit AceCommon AceTime TinyMqtt EspMock -include ../../../EspMock/EspMock.mk +ARDUINO_LIBS := AUnit AceCommon AceTime TinyMqtt EspMock ESP8266WiFi ESPAsyncTCP +ARDUINO_LIB_DIRS := ../../../EspMock/libraries +EPOXY_CORE := EPOXY_CORE_ESP8266 +include ../../../EpoxyDuino/EpoxyDuino.mk diff --git a/tests/string-indexer-tests/Makefile b/tests/string-indexer-tests/Makefile index 77befb8..c366385 100644 --- a/tests/string-indexer-tests/Makefile +++ b/tests/string-indexer-tests/Makefile @@ -2,5 +2,7 @@ # Makefile to compile and run Arduino programs natively on Linux or MacOS. APP_NAME := string-indexer-tests -ARDUINO_LIBS := AUnit AceCommon AceTime TinyMqtt EspMock -include ../../../EspMock/EspMock.mk +ARDUINO_LIBS := AUnit AceCommon AceTime TinyMqtt EspMock ESP8266WiFi ESPAsync +ARDUINO_LIB_DIRS := ../../../EspMock/libraries +EPOXY_CORE := EPOXY_CORE_ESP8266 +include ../../../EpoxyDuino/EpoxyDuino.mk diff --git a/tests/string-indexer-tests/string-indexer-tests.ino b/tests/string-indexer-tests/string-indexer-tests.ino index 4168946..f2a2e70 100644 --- a/tests/string-indexer-tests/string-indexer-tests.ino +++ b/tests/string-indexer-tests/string-indexer-tests.ino @@ -105,5 +105,5 @@ void setup() { void loop() { aunit::TestRunner::run(); - if (Serial.available()) ESP.reset(); + // if (Serial.available()) ESP.reset(); }