1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-08-01 03:47:23 +03:00

Stream::send() (#6979)

This commit is contained in:
david gauchard
2021-03-15 01:36:20 +01:00
committed by GitHub
parent 4cc1472821
commit c720c0d9e8
48 changed files with 2136 additions and 650 deletions

View File

@ -64,7 +64,7 @@ $(TEST_LIST):
$(SILENT)mkdir -p $(LOCAL_BUILD_DIR)
ifeq ("$(MOCK)", "1")
@echo Compiling $(notdir $@)
(cd ../host; make ULIBDIRS=../device/libraries/BSTest ../device/$(@:%.ino=%))
(cd ../host; make D=$(V) ULIBDIRS=../device/libraries/BSTest ../device/$(@:%.ino=%))
$(SILENT)source $(BS_DIR)/virtualenv/bin/activate && \
$(PYTHON) $(BS_DIR)/runner.py \
$(RUNNER_DEBUG_FLAG) \

View File

@ -0,0 +1,25 @@
#include <Arduino.h>
#include <BSTest.h>
#define check(what, res1, res2) CHECK(strcmp(res1, res2) == 0)
#include "../../../libraries/esp8266/examples/StreamString/StreamString.ino"
BS_ENV_DECLARE();
bool pretest ()
{
return true;
}
void setup ()
{
Serial.begin(115200);
BS_RUN(Serial);
}
TEST_CASE("StreamString tests", "[StreamString]")
{
testStream();
}

View File

@ -11,6 +11,7 @@ def setup_echo_server(e):
global stop_client_thread
global client_thread
def echo_client_thread():
time.sleep(1) # let some time for mDNS to start
server_address = socket.gethostbyname('esp8266-wfs-test.local')
count = 0
while count < 5 and not stop_client_thread: